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

Method wounded

ogsr_engine/xrGame/script_game_object4.cpp:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168int CScriptGameObject::active_sound_count() { return (active_sound_count(false)); }
169
170bool CScriptGameObject::wounded() const
171{
172 const CAI_Stalker* stalker = smart_cast<const CAI_Stalker*>(&object());
173 if (!stalker)
174 {
175 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CAI_Stalker : cannot access class member wounded!");
176 return (false);
177 }
178
179 return (stalker->wounded());
180}
181
182void CScriptGameObject::wounded(bool value)
183{

Callers 11

evaluateMethod · 0.45
change_from_woundedMethod · 0.45
predicateMethod · 0.45
process_woundedMethod · 0.45
need_updateMethod · 0.45
update_enemiesMethod · 0.45
evaluateMethod · 0.45
operator()Method · 0.45
fill_enemiesMethod · 0.45
KillHitMethod · 0.45

Calls 2

script_logMethod · 0.80
objectFunction · 0.50

Tested by

no test coverage detected