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)
This commit is contained in:
Dexter 2013-11-05 03:28:34 +00:00 committed by squeek
parent e9669129a7
commit e50273e024
1 changed files with 4 additions and 0 deletions

View File

@ -1356,7 +1356,11 @@ bool CFF_SH_Rules::IsSpawnPointValid( CBaseEntity *pSpot, CBasePlayer *pPlayer
if ( !pFFPlayer ) if ( !pFFPlayer )
return false; return false;
// FF TODO: run lua predicate against spot // FF TODO: run lua predicate against spot
// in meantime: check team
if ( pSpot->GetTeamNumber( ) != pFFPlayer->GetTeamNumber( ) )
return false;
/* /*
CFFLuaSC hAllowed; CFFLuaSC hAllowed;
hAllowed.Push( pFFPlayer ); hAllowed.Push( pFFPlayer );