this.velocity += randomvec() * 30;
if(this.vehicle_flags & VHF_DMGROLL)
+ {
if(this.vehicle_flags & VHF_DMGHEADROLL)
this.tur_head.angles += randomvec();
else
this.angles += randomvec();
+ }
}
}
if(GetResourceAmount(this, RESOURCE_HEALTH) <= 0)
{
if(this.owner)
+ {
if(this.vehicle_flags & VHF_DEATHEJECT)
vehicles_exit(this, VHEF_EJECT);
else
vehicles_exit(this, VHEF_RELEASE);
-
+ }
antilag_clear(this, this);
void vehicles_enter(entity pl, entity veh)
{
- // Remove this when bots know how to use vehicles
+ // Remove this when bots know how to use vehicles
if((IS_BOT_CLIENT(pl) && !autocvar_g_vehicles_allow_bots))
return;