Opened 11 years ago
Last modified 11 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: |
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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; }