Opened 10 years ago

Last modified 10 years ago

#50 new enhancement

Zombie spawn protection with LP blocks

Reported by: Christian Illy Owned by: Christian Illy
Priority: major Component: Server fixes
Keywords: Cc:

Description (last modified by Christian Illy)

Change History (2)

comment:1 by Christian Illy, 10 years ago

Description: modified (diff)

comment:2 by Christian Illy, 10 years ago

public bool CanSpawnAtPos (Vector3 _pos)

public virtual bool IsPositionAvailable (Vector3 _position)

private bool md0024 (Vector3 par0001)

=> private, nonVirtual, bool(v3)

private bool md0024 (Vector3 par0001)
{
	for (int i = 0; i < this.playerEntities.list.get_Count (); i++)
	{
		for (int j = 0; j < this.playerEntities.list.get_Item (i).SpawnPoints.Count; j++)
		{
			float sqrMagnitude = (this.playerEntities.list.get_Item (i).SpawnPoints [j].ToVector3 () - par0001).sqrMagnitude;
			if (sqrMagnitude < 225f)
			{
				return true;
			}
		}
	}
	return false;
}
Last edited 10 years ago by Christian Illy (previous) (diff)
Note: See TracTickets for help on using tickets.