NSMonster: call setorigin_safe after DropToFloor to get entities out the ground, if they're stuck in it (of1a1)

This commit is contained in:
Marco Cawthorne 2023-09-22 16:34:08 -07:00
parent a91122ccbe
commit 0be11bd948
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 2 additions and 1 deletions

View File

@ -144,6 +144,6 @@ trigger_once::Touch(entity eToucher)
return;
}
print(sprintf("%s is triggering %s in trigger_once\n", eToucher.classname, target));
NSLog("^2trigger_once::^3Touch^7: %S is triggering %S", eToucher.classname, target);
UseTargets(eToucher, TRIG_TOGGLE, m_flDelay);
}

View File

@ -1683,6 +1683,7 @@ NSMonster::Respawn(void)
static void AdjustSpawnPos(void) {
SetOrigin(GetSpawnOrigin());
DropToFloor();
setorigin_safe(this, origin);
}
v_angle = GetSpawnAngles();