Fix jetpack sound continuing when entering vehicle
authorMario <mario@smbclan.net>
Wed, 8 Feb 2017 17:36:16 +0000 (03:36 +1000)
committerMario <mario@smbclan.net>
Wed, 8 Feb 2017 17:36:16 +0000 (03:36 +1000)
qcsrc/common/vehicles/sv_vehicles.qc

index e8ab69a..82e1abf 100644 (file)
@@ -970,6 +970,7 @@ void vehicles_enter(entity pl, entity veh)
 
        veh.event_damage        = vehicles_damage;
        veh.nextthink           = 0;
+       pl.items &= ~IT_USING_JETPACK;
        pl.angles                       = veh.angles;
        pl.takedamage           = DAMAGE_NO;
        pl.solid                        = SOLID_NOT;