How to remove crooked aiming for NPC bots in PM? (STALKER: Shadow of Chernobyl)
When bots shoot and aim at me, they have a crooked pose and look sideways. How to fix this?You can partially correct:
Option # 1:
in the state_mgr.script file, comment out lines from 370 to 375, they should contain the following code:
- 'If we switch from a running position to a standing position, we need to override the move
if state_lib.states [self.target_state ] .movement ~ = move.stand and
state_lib.states [state_name] .movement == move.stand
then
self.npc: movement_enabled (false)
end
Option # 2:
As you can see, threat, hide_fire and hide_sniper_fire have animation = nil and it was by playing these animations that the npc was mowed down.
Do not remove those lines in state_mgr.script, but change them as follows:
before
- 'If we switch from a walking position to a standing position, we must suppress the movement
if state_lib.states [self.target_state] .movement ~ = move.stand and
state_lib.states [state_name] .movement == move.stand
then
self.npc: movement_enabled (false)
end
after
- 'If we switch from a walking position to a standing position, we must disable movement
if state_lib.states [self.target_state] .movement ~ = move.stand and
state_lib.states [self.target_state] .animation ~ = nil and
state_lib.states [state_name] .movement == move.stand
then
self.npc: movement_enabled (false)
end