Script:Files:script/vehicles/trojan.script
From Mod Wiki
object vehicle_trojan : vehicle_base { void init(); void OnCollision( object traceObject, float velocity, vector mins, vector maxs ); void OnWeaponSelected( entity p, float index ); } void vehicle_trojan::init() { setLightsEnabled( 0, false ); } void vehicle_trojan::OnCollision( object traceObject, float velocity, vector mins, vector maxs ) { OnCollision_Base( traceObject, velocity, mins, maxs ); } void vehicle_trojan::OnWeaponSelected( entity p, float index ) { if ( index == 0 ) { FireDecoy( p ); } }