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;
else
this.nextthink = time + game_starttime;
- if(!MUTATOR_CALLHOOK(VehicleInit, this))
+ if(MUTATOR_CALLHOOK(VehicleSpawn, this))
return false;
return true;
/**
* called when a vehicle initializes
- * return false to remove the vehicle
+ * return true to remove the vehicle
*/
-#define EV_VehicleInit(i, o) \
+#define EV_VehicleSpawn(i, o) \
/** vehicle */ i(entity, MUTATOR_ARGV_0_entity) \
/**/
-MUTATOR_HOOKABLE(VehicleInit, EV_VehicleInit);
+MUTATOR_HOOKABLE(VehicleSpawn, EV_VehicleSpawn);
/**
* called when a player enters a vehicle
turret.team = 5; // this gets reversed when match starts?
}
-MUTATOR_HOOKFUNCTION(as, VehicleInit)
+MUTATOR_HOOKFUNCTION(as, VehicleSpawn)
{
entity veh = M_ARGV(0, entity);
- if(veh.active != ACTIVE_NOT)
- veh.nextthink = time + 0.5;
- return true;
+ veh.nextthink = time + 0.5;
}
MUTATOR_HOOKFUNCTION(as, HavocBot_ChooseRole)