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:
parent
e9669129a7
commit
e50273e024
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue