Script:Files:script/vehicles/bumblebee.script

From Mod Wiki
Revision as of 09:59, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
object vehicle_bumblebee : vehicle_heli_earth {
    void            OnWeaponSelected( entity p, float index );
};

void vehicle_bumblebee::OnWeaponSelected( entity p, float index ) {
    if ( index == 0 ) {
        FireDecoy( p );
    } else if ( index == 1 ) {
        selectVehicleWeapon( p, "gpmg_front" );
    }
}