]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
VehicleSpawn --> VehicleInit
authorterencehill <piuntn@gmail.com>
Sun, 23 Oct 2016 19:00:35 +0000 (21:00 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 23 Oct 2016 19:00:35 +0000 (21:00 +0200)
qcsrc/common/vehicles/sv_vehicles.qc
qcsrc/server/mutators/events.qh
qcsrc/server/mutators/mutator/gamemode_assault.qc

index 60a8ee07760fbe897e58cd58fab2e22904337728..788f095b8fbc90e1a59fab8b278650bffab8007d 100644 (file)
@@ -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;
index f75b74748de5b90d81e3c05c44be651b0bf9f2cc..9d7d8af916e5d621230698b9accc6b2d1d840bae 100644 (file)
@@ -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
index 6af1c1c4658163fcf4abd705d7df1e20110db1be..1a1d7959fd2799b4e3908d3e13736b314106aced 100644 (file)
@@ -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);