monstermaker: Prevent monster DropToFloor().

NSMoverEntity: Remove eager MoveToPosition check that broke func_button's NOMOVE variants.
This commit is contained in:
Marco Cawthorne 2024-03-05 23:27:16 -08:00
parent 3a1a5d66f5
commit d9d579478a
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
3 changed files with 5 additions and 3 deletions

View File

@ -102,6 +102,7 @@ func_train::Save(float handle)
SaveFloat(handle, "m_flWait", m_flWait);
SaveFloat(handle, "m_flSpeed", m_flSpeed);
SaveFloat(handle, "m_flDamage", m_flDamage);
SaveFloat(handle, "m_flCurrentSpeed", m_flCurrentSpeed);
SaveString(handle, "m_strMoveSnd", m_strMoveSnd);
SaveString(handle, "m_strStopSnd", m_strStopSnd);
}
@ -119,6 +120,9 @@ func_train::Restore(string strKey, string strValue)
case "m_flDamage":
m_flDamage = ReadFloat(strValue);
break;
case "m_flCurrentSpeed":
m_flCurrentSpeed = ReadFloat(strValue);
break;
case "m_strMoveSnd":
m_strMoveSnd = ReadString(strValue);
break;

View File

@ -217,6 +217,7 @@ monstermaker::Spawner(void)
unit.m_oldOrigin = GetOrigin();
unit.m_oldAngle = GetAngles();
unit.targetname = m_strChildName;
unit.ReleaseThink();
m_iMonsterSpawned++;

View File

@ -203,9 +203,6 @@ NSMoverEntity::GetMoverRotation2(void)
void
NSMoverEntity::MoveToPosition(vector vecDest, float flSpeed)
{
if (vecDest == origin)
return;
MoveAndRotateToPosition(vecDest, GetAngles(), flSpeed);
}