Originally posted by me at HaloPCE
Try this if your desperate, it'll lag a little on a bad server, but should be fine otherwise.
Chop off the gun from the warthog and move the gunner marker (and move it to the standard frame), more on that below
Get the turret vehicle tags (the warthog one)
now, make a new vehicle with only a node at 0,0 and 1 triangle (preferrably about a foot to the left and a few inches down) as the model.
Make the vehicle a turret and give it a seat with the same paramaters as the warthog's passenger seat. Make sure the hud text message is set up the same as the warthog.
Now, make sure the hog turret (the one you downloaded) has the same HUD message text number as the warthog
Stick them both in globals
Now, more on the hog itself:
No turret, and only a driver seat.
Make sure you keep the node for the passenger seat and have a new node at the base of the turret (facing in the proper direction - just move the gunner one down and about .03 forward)
Now, stick your new hog into the globals if you haven't already
Now let's piece this thing together!
Open up sapien, whatever map you want your new cool hog in.
Stick the following in there:
1 Warthog (name it 'hog')
1 passenger vehicle (name it 'hogp')
1 gunner turret (name it 'hogg')
set 'em up so that they spawn properly
save it, and close it if you need to.
open up notepad.
C+P the following:
Code: Select all
(script continuous build_hog
(sleep_until (= 1 1) 0)
(objects_attach hog "gunner" hogg "")
(objects_detach hog hogg)
(objects_attach hog "passenger" hogp "")
(objects_detach hog hogp)
)
Now, for me to explain:
What we just did is made the warthog into 3 separate vehicles, which means 3 differenet people can sit in it.
Then, through a simple script, we've "built" the warthog from the pieces.
Now, I know this will lag slightly, but it'll be fine on a good server.
The first line in the script helps a problem I found while running some, um, tests, on the new Draco. It makes the script sleep slightly, allowing you to get in / out and shoot the turret (or your gun)
You can try to remove it, but believe me, it won't work...
The second line attaches the turret to the hog.
The third detaches it, which causes its location to sync across the server.
The fourth line does the same as the second line but with the passenger seat vehicle we made a few minutes ago.
The fifth, of course, detaches it, blah blah blah.
So, there you have it! Now enemies can enter your warthog! Now I'de just like an explanation of why you wanted that...
Coming soon: Working vehicle, um, stealing I gues... With a very simple script!