NSEntity: Respect 'team_no' entity key in all team games to filter out which team can touch what
This commit is contained in:
parent
cf5a4da751
commit
87c706ded7
1 changed files with 8 additions and 0 deletions
|
@ -202,6 +202,14 @@ NSEntity::EndTouch(entity eToucher)
|
|||
void
|
||||
NSEntity::TouchHandler(void)
|
||||
{
|
||||
#ifdef SERVER
|
||||
if (g_grMode.IsTeamPlay())
|
||||
if (m_iTeam > 0)
|
||||
if (m_iTeam != other.team) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* start touch in case we haven't */
|
||||
if (m_beingTouched != true)
|
||||
StartTouch(other);
|
||||
|
|
Loading…
Reference in a new issue