From 7f5fcd81a60bab0e1c89517a1b8f5b310f871b2f Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 23 Oct 2016 21:00:35 +0200 Subject: [PATCH] VehicleSpawn --> VehicleInit --- qcsrc/common/vehicles/sv_vehicles.qc | 2 +- qcsrc/server/mutators/events.qh | 4 ++-- qcsrc/server/mutators/mutator/gamemode_assault.qc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index 60a8ee077..788f095b8 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -1224,7 +1224,7 @@ bool vehicle_initialize(entity this, Vehicle info, bool nodrop) else this.nextthink = time + game_starttime; - if(MUTATOR_CALLHOOK(VehicleSpawn, this)) + if(MUTATOR_CALLHOOK(VehicleInit, this)) return false; return true; diff --git a/qcsrc/server/mutators/events.qh b/qcsrc/server/mutators/events.qh index f75b74748..9d7d8af91 100644 --- a/qcsrc/server/mutators/events.qh +++ b/qcsrc/server/mutators/events.qh @@ -542,10 +542,10 @@ MUTATOR_HOOKABLE(HelpMePing, EV_HelpMePing); * called when a vehicle initializes * return true to remove the vehicle */ -#define EV_VehicleSpawn(i, o) \ +#define EV_VehicleInit(i, o) \ /** vehicle */ i(entity, MUTATOR_ARGV_0_entity) \ /**/ -MUTATOR_HOOKABLE(VehicleSpawn, EV_VehicleSpawn); +MUTATOR_HOOKABLE(VehicleInit, EV_VehicleInit); /** * called when a player enters a vehicle diff --git a/qcsrc/server/mutators/mutator/gamemode_assault.qc b/qcsrc/server/mutators/mutator/gamemode_assault.qc index 6af1c1c46..1a1d7959f 100644 --- a/qcsrc/server/mutators/mutator/gamemode_assault.qc +++ b/qcsrc/server/mutators/mutator/gamemode_assault.qc @@ -529,7 +529,7 @@ MUTATOR_HOOKFUNCTION(as, TurretSpawn) turret.team = 5; // this gets reversed when match starts? } -MUTATOR_HOOKFUNCTION(as, VehicleSpawn) +MUTATOR_HOOKFUNCTION(as, VehicleInit) { entity veh = M_ARGV(0, entity); -- 2.39.2