SERVER: Have player spawns use targets on use

This commit is contained in:
cypress 2023-11-08 14:16:21 -05:00
parent fd6cb138a2
commit 8cc1f70e7a

View file

@ -30,6 +30,7 @@
void(entity e) Light_None; void(entity e) Light_None;
void() Spawns_Init; void() Spawns_Init;
void() Perk_UpdateQuickRevive; void() Perk_UpdateQuickRevive;
void() SUB_UseTargets;
#define PLAYER_START_HEALTH 100 #define PLAYER_START_HEALTH 100
@ -578,6 +579,12 @@ void() Player_PickSpawnPoint =
// Assign their starting weapon // Assign their starting weapon
Weapon_GiveWeapon(spawn_point.weapon, spawn_point.currentmag, spawn_point.currentammo); Weapon_GiveWeapon(spawn_point.weapon, spawn_point.currentmag, spawn_point.currentammo);
// Activate anything the Spawn was targeting
entity tempe = self;
self = spawn_point;
SUB_UseTargets();
self = tempe;
}; };
void() PlayerSpawn = void() PlayerSpawn =