Game Scene Split up
This commit is contained in:
@@ -40,6 +40,13 @@ namespace ProjectM.Server
|
||||
{
|
||||
if (dmg.Length == 0)
|
||||
continue;
|
||||
// Dev god-mode: while enabled, this entity ignores ALL damage (server-authoritative, once per tick).
|
||||
if (SystemAPI.HasComponent<DebugGodMode>(entity) && SystemAPI.IsComponentEnabled<DebugGodMode>(entity))
|
||||
{
|
||||
dmg.Clear();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
// Respawn invulnerability: a freshly-recovered player ignores damage for a window.
|
||||
if (haveTick && netTime.ServerTick.IsValid && SystemAPI.HasComponent<RespawnInvuln>(entity))
|
||||
|
||||
Reference in New Issue
Block a user