From e50273e0242e4d7bc2cc07a5d72174edb236a5e1 Mon Sep 17 00:00:00 2001 From: Dexter Date: Tue, 5 Nov 2013 03:28:34 +0000 Subject: [PATCH] spawn only at spawns w/ same teamnum as me, temporary thing until lua is rigged up (also doesnt work on first spawn cuz hl2dm code :P) --- mp/src/game/shared/ff/ff_sh_gamerules.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mp/src/game/shared/ff/ff_sh_gamerules.cpp b/mp/src/game/shared/ff/ff_sh_gamerules.cpp index 49f66e59..ca43a958 100644 --- a/mp/src/game/shared/ff/ff_sh_gamerules.cpp +++ b/mp/src/game/shared/ff/ff_sh_gamerules.cpp @@ -1356,7 +1356,11 @@ bool CFF_SH_Rules::IsSpawnPointValid( CBaseEntity *pSpot, CBasePlayer *pPlayer if ( !pFFPlayer ) return false; + // FF TODO: run lua predicate against spot + // in meantime: check team + if ( pSpot->GetTeamNumber( ) != pFFPlayer->GetTeamNumber( ) ) + return false; /* CFFLuaSC hAllowed; hAllowed.Push( pFFPlayer );