mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Reset state to STAND when the player has no physics
This commit is contained in:
parent
35e6435382
commit
a67dbff603
1 changed files with 4 additions and 0 deletions
|
@ -9979,6 +9979,10 @@ void Player::EventGetCurrentDMWeaponType(Event *ev)
|
|||
|
||||
void Player::PhysicsOff(Event *ev)
|
||||
{
|
||||
// Added in 2.0
|
||||
// Reset the state to STAND before disabling physics
|
||||
EvaluateState(statemap_Torso->FindState("STAND"), statemap_Legs->FindState("STAND"));
|
||||
|
||||
flags |= FL_IMMOBILE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue