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

View file

@ -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 );