Gordon Freeman is back! Half-Life 2 picks up some time after the original Half-Life left off, with Gordon Freeman working for the G-Man. Along with scientist Eli Vance and his daughter Alyx, your mission is to... well, that would be telling.
Because some sections of Highway 17 are just too dark!
Posted by razvan252 on Jul 21st, 2007 digg this super bookmark
Basic Server Side Coding.
[page=The Tutorial]
This tutorial explains how to add headlights to the Jeep. It requires basic understanding of C++
The actual code is very simple
First open vehicle_jeep.h. Find:
and replace them with
Now for vehicle_jeep.cpp. Go to void CPropJeep::Precache( void ) and add these
Then in void CPropJeep::DriveVehicle( ... ) uncomment
At the end of the file add:
Next in void CPropJeep::ExitVehicle( int nRole ) replace
with
And we're done! All we needed to do was uncomment some code and add a sound to play.
Only registered members can share their thoughts. So come on! Join the Mod DB community today (totally free) and do things you never thought possible.
or is that the airboat?
i think that was the airboat !
the
PrecachescriptSound( "Airboat_headlight_on" );
PrecachescriptSound( "Airboat_headlight_off" );
should be notice the capitals.
PrecacheScriptSound( "Airboat_headlight_on" );
PrecacheScriptSound( "Airboat_headlight_off" );