MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / initialize

Method initialize

ogsr_engine/xrGame/stalker_kill_wounded_actions.cpp:73–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71CStalkerActionReachWounded::CStalkerActionReachWounded(CAI_Stalker* object, LPCSTR action_name) : inherited(object, action_name) {}
72
73void CStalkerActionReachWounded::initialize()
74{
75 inherited::initialize();
76
77 m_storage->set_property(eWorldPropertyWoundedEnemyPrepared, false);
78 m_storage->set_property(eWorldPropertyWoundedEnemyAimed, false);
79 object().movement().set_desired_direction(0);
80 object().movement().set_path_type(MovementManager::ePathTypeLevelPath);
81 object().movement().set_detail_path_type(DetailPathManager::eDetailPathTypeSmooth);
82 object().movement().set_body_state(eBodyStateStand);
83 object().movement().set_mental_state(eMentalStateFree);
84 object().sight().setup(CSightAction(SightManager::eSightTypePathDirection, false));
85 object().movement().set_movement_type(eMovementTypeWalk);
86 object().set_goal(eObjectActionIdle, weapon_to_kill(&object()), MIN_QUEUE, MAX_QUEUE, MIN_INTERVAL, MAX_INTERVAL);
87}
88
89void CStalkerActionReachWounded::finalize()
90{

Callers

nothing calls this directly

Calls 15

CSightActionClass · 0.85
weapon_to_killFunction · 0.85
movementMethod · 0.80
wounded_processedMethod · 0.80
visible_nowMethod · 0.80
soundMethod · 0.80
initializeFunction · 0.50
objectFunction · 0.50
set_propertyMethod · 0.45
set_desired_directionMethod · 0.45
set_path_typeMethod · 0.45
set_detail_path_typeMethod · 0.45

Tested by

no test coverage detected