Opened 10 years ago

Last modified 10 years ago

#50 new enhancement

Zombie spawn protection with LP blocks

Reported by: Alloc Owned by: Alloc
Priority: major Component: Server fixes
Keywords: Cc:

Change History (2)

comment:1 Changed 10 years ago by Alloc

  • Description modified (diff)

comment:2 Changed 10 years ago by Alloc

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 Alloc (previous) (diff)
Note: See TracTickets for help on using tickets.