monstermaker: Prevent monster DropToFloor().
NSMoverEntity: Remove eager MoveToPosition check that broke func_button's NOMOVE variants.
This commit is contained in:
parent
3a1a5d66f5
commit
d9d579478a
3 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -217,6 +217,7 @@ monstermaker::Spawner(void)
|
|||
unit.m_oldOrigin = GetOrigin();
|
||||
unit.m_oldAngle = GetAngles();
|
||||
unit.targetname = m_strChildName;
|
||||
unit.ReleaseThink();
|
||||
|
||||
m_iMonsterSpawned++;
|
||||
|
||||
|
|
|
@ -203,9 +203,6 @@ NSMoverEntity::GetMoverRotation2(void)
|
|||
void
|
||||
NSMoverEntity::MoveToPosition(vector vecDest, float flSpeed)
|
||||
{
|
||||
if (vecDest == origin)
|
||||
return;
|
||||
|
||||
MoveAndRotateToPosition(vecDest, GetAngles(), flSpeed);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue