@@ -559,7 +559,7 @@ void CStalkerActionTakeCover::execute()
559559 }
560560 else
561561 {
562- if (_abs (object ().Position ().y - mem_object.m_object_params .m_position .y ) > 3 .f )
562+ if (_abs (object ().Position ().y - mem_object.m_object_params .m_position .y ) > 3 .5f )
563563 {
564564 Fvector3 Vpos = { mem_object.m_object_params .m_position .x , object ().Position ().y + 1 .f , mem_object.m_object_params .m_position .z };
565565 object ().sight ().setup (CSightAction (SightManager::eSightTypePosition, Vpos, true ));
@@ -644,7 +644,7 @@ void CStalkerActionLookOut::execute()
644644 return ;
645645
646646 // Alundaio: Prevent stalkers from staring at floor or ceiling for this action
647- if (_abs (object ().Position ().y - mem_object.m_object_params .m_position .y ) > 3 .f )
647+ if (_abs (object ().Position ().y - mem_object.m_object_params .m_position .y ) > 3 .5f )
648648 {
649649 Fvector3 Vpos = { mem_object.m_object_params .m_position .x , object ().Position ().y + 1 .f , mem_object.m_object_params .m_position .z };
650650 object ().sight ().setup (CSightAction (SightManager::eSightTypePosition, Vpos, true ));
@@ -745,7 +745,7 @@ void CStalkerActionHoldPosition::execute()
745745 m_storage->set_property (eWorldPropertyLookedOut, false );
746746
747747 // Alundaio: Prevent stalkers from staring at floor or ceiling for this action
748- if (_abs (object ().Position ().y - mem_object.m_object_params .m_position .y ) > 3 .f )
748+ if (_abs (object ().Position ().y - mem_object.m_object_params .m_position .y ) > 3 .5f )
749749 {
750750 Fvector3 Vpos = { mem_object.m_object_params .m_position .x , object ().Position ().y + 1 .f , mem_object.m_object_params .m_position .z };
751751 object ().sight ().setup (CSightAction (SightManager::eSightTypePosition, Vpos, true ));
@@ -870,7 +870,7 @@ void CStalkerActionDetourEnemy::execute()
870870 }
871871
872872 // Alundaio: Prevent stalkers from staring at floor or ceiling for this action
873- if (_abs (object ().Position ().y - mem_object.m_object_params .m_position .y ) > 3 .f )
873+ if (_abs (object ().Position ().y - mem_object.m_object_params .m_position .y ) > 3 .5f )
874874 {
875875 Fvector3 Vpos = { mem_object.m_object_params .m_position .x , object ().Position ().y + 1 .f , mem_object.m_object_params .m_position .z };
876876 object ().sight ().setup (CSightAction (SightManager::eSightTypePosition, Vpos, true ));
0 commit comments