summaryrefslogtreecommitdiff
path: root/source/sourcemod/scripting/gokz-core/misc.sp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-04-26 21:30:30 +0200
committeraura <nw@moneybot.cc>2026-04-26 21:30:30 +0200
commit0f45999d7208f9288e6b38b6286a3f2a37e7c3dc (patch)
tree187558fda3de8ef05910c2fc8e2219247ad87acc /source/sourcemod/scripting/gokz-core/misc.sp
parent216c729c8762f4d0388d8750905a91fe1de64ccf (diff)
Diffstat (limited to 'source/sourcemod/scripting/gokz-core/misc.sp')
-rw-r--r--source/sourcemod/scripting/gokz-core/misc.sp19
1 files changed, 11 insertions, 8 deletions
diff --git a/source/sourcemod/scripting/gokz-core/misc.sp b/source/sourcemod/scripting/gokz-core/misc.sp
index ae44a1d..6c322e9 100644
--- a/source/sourcemod/scripting/gokz-core/misc.sp
+++ b/source/sourcemod/scripting/gokz-core/misc.sp
@@ -208,7 +208,10 @@ void OnPlayerRunCmd_Turnbinds(int client, int buttons, int tickcount, float angl
void OnPlayerSpawn_PlayerCollision(int client)
{
// Let players go through other players
- // SetEntProp(client, Prop_Send, "m_CollisionGroup", GOKZ_COLLISION_GROUP_STANDARD);
+
+ int warmup = GameRules_GetProp( "m_bWarmupPeriod" );
+ if( warmup )
+ SetEntProp(client, Prop_Send, "m_CollisionGroup", GOKZ_COLLISION_GROUP_STANDARD);
}
void OnSetModel_PlayerCollision(int client)
@@ -348,13 +351,13 @@ void JoinTeam(int client, int newTeam, bool restorePos, bool forceBroadcast = fa
player.StopTimer();
// Just joining a team alone can put you into weird invalid spawns.
// Need to teleport the player to a valid one.
- float spawnOrigin[3];
- float spawnAngles[3];
- if (newTeam == CS_TEAM_CT)
- GetValidSpawnCT(spawnOrigin, spawnAngles);
- else
- GetValidSpawnT(spawnOrigin, spawnAngles);
- TeleportPlayer(client, spawnOrigin, spawnAngles);
+ // float spawnOrigin[3];
+ // float spawnAngles[3];
+ // if (newTeam == CS_TEAM_CT)
+ // GetValidSpawnCT(spawnOrigin, spawnAngles);
+ // else
+ // GetValidSpawnT(spawnOrigin, spawnAngles);
+ // TeleportPlayer(client, spawnOrigin, spawnAngles);
}
hasSavedPosition[client] = false;
Call_GOKZ_OnJoinTeam(client, newTeam);