NSMonster: call setorigin_safe after DropToFloor to get entities out the ground, if they're stuck in it (of1a1)
This commit is contained in:
parent
a91122ccbe
commit
0be11bd948
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1683,6 +1683,7 @@ NSMonster::Respawn(void)
|
|||
static void AdjustSpawnPos(void) {
|
||||
SetOrigin(GetSpawnOrigin());
|
||||
DropToFloor();
|
||||
setorigin_safe(this, origin);
|
||||
}
|
||||
|
||||
v_angle = GetSpawnAngles();
|
||||
|
|
Loading…
Reference in a new issue