Yet another dumb little contraption. It uses Expression Gate 2 and a Cam Controller for anyone curious.
Here's the code (it's kind of sloppy, I was in a hurry):
@name Projectile Cam
@inputs On Targeted Ent:entity Reverse
@outputs Active X Y Z Pitch Yaw Roll RevText
@persist DX DY DZ RevCount
interval(20)
Active=On*Targeted
if (~Reverse & Reverse) { RevCount=!RevCount RevText=RevCount+1 }
if (RevCount==1) { Pmul=-1 } else { Pmul=1 }
Pitch = Ent:angles():pitch()*Pmul
Yaw = Ent:angles():yaw()+(RevCount*-180)
Roll = Ent:angles():roll()
X = Ent:pos():x()
Y = Ent:pos():y()
Z = Ent:pos():z()+Ent:height()
DX=X DY=Y DZ=Z
if (X==0 & Y==0 & Z==0) { X=DX Y=DY Z=DZ
}
Just starting out on E2, and this code is very interesting. I am wondering, are you using a target finder that tracks missiles to get the entity ID?
elseagoat 1 month ago
tutorial on how to set it up?
gerock8 1 year ago
haha projectile VOMIT
gerock8 1 year ago
is the crossbow set with the original parameters? looks kind of fast
steffankaizer 1 year ago
@lexach1 its not possible to do it with weapons but yer can make like a missile ur own and control that
GGmod 1 year ago
COOL! Can you make a e2 that when you kill a npc, it goes in special slo-mo? Kinda fast slomo, since not all kills are your first. xD It will be like playing killing floor.
Computergeew 2 years ago
no, not possible. I tried recently
arcooke 2 years ago
how do you use cam controller so when u sit in a chair you see through a camera?
oldman32123 2 years ago
This would be cool with the RPG, you could aim so much easier!
spinafire 2 years ago
Looks like crossbow arrows don't come down after all.
moojoedude 3 years ago 2