From 8cc1f70e7a3e89dd027c1f2bbe5c3aaa813d6b65 Mon Sep 17 00:00:00 2001 From: cypress Date: Wed, 8 Nov 2023 14:16:21 -0500 Subject: [PATCH] SERVER: Have player spawns use targets on use --- source/server/player.qc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/server/player.qc b/source/server/player.qc index be3a9c7..d74a119 100644 --- a/source/server/player.qc +++ b/source/server/player.qc @@ -30,6 +30,7 @@ void(entity e) Light_None; void() Spawns_Init; void() Perk_UpdateQuickRevive; +void() SUB_UseTargets; #define PLAYER_START_HEALTH 100 @@ -578,6 +579,12 @@ void() Player_PickSpawnPoint = // Assign their starting weapon 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 =