gmod spacebuild turret
Uploader Comments (dpidcoe)
All Comments (7)
-
that is so cool
-
Check Wikipedia for info on vectors in math
Check wiremod website for info on how to use E2 and a few other wired components
Check gmod wiki for the E2 commands you need to use to work with vectors.
-
It's simple enough to build yourself, just split it into 2 projects:
1: Make a prop point at a given vector
2: Decide if a vector is above or below a given plane (hint: multiply by a vector perpendicular to the desired plane and check the sign), then work out the logic for how the gun should behave depending on what fireing arc the target is in.
Then it's only a matter of feeding the correct vector to the correct prop acting as the barrel.
-
god i wish e2 wasnt so buggy during saving/loading
-
nice easy using e2 but cool makes good gunner turret i bet
-
Nice
Dude.. how did you accomplish this? I must know, it's too awesome :D
BalZdk 2 years ago
it's mostly E2. The targeting part figures the vector to the target, then it decides if the vector is below or above the midline and then feeds the vector to the appropriate gun.
The target vector is also projected onto the plane of the midline (google vector projection if you want to know how to do it) and then fed to the inactive turret.
dpidcoe 2 years ago