etqw-sdk/base/script/vehicles/hornet.script

25 lines
621 B
Text
Raw Normal View History

2008-05-29 00:00:00 +00:00
/*
===================================================================================================
HORNET
===================================================================================================
*/
object vehicle_hornet : vehicle_heli {
void OnWeaponSelected( entity p, float index );
};
void vehicle_hornet::OnWeaponSelected( entity p, float index ) {
if ( !sys.isClient() ) {
if ( index == 0 ) {
FireDecoy( p );
} else if ( index == 1 ) {
selectVehicleWeapon( p, "plasmacannon" );
} else if ( index == 2 ) {
selectVehicleWeapon( p, "strockets" );
}
}
}