Script:Files:script/vehicles/trojan.script

From Mod Wiki
Revision as of 10:01, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 );
    }
}