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

Method UpdateCondition

ogsr_engine/xrGame/script_game_object4.cpp:326–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void CScriptGameObject::UpdateCondition()
327{
328 CEntityAlive* e = smart_cast<CEntityAlive*>(&object());
329 if (!e)
330 {
331 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CEntityAlive : cannot access class member UpdateCondition!");
332 return;
333 }
334 // в CEntityAlive::shedule_Update() вызовы идут именно в этом порядке
335 e->conditions().UpdateConditionTime();
336 e->conditions().UpdateCondition();
337 e->conditions().UpdateWounds();
338}
339
340void CScriptGameObject::ChangeBleeding(float _delta)
341{

Callers

nothing calls this directly

Calls 5

script_logMethod · 0.80
UpdateConditionTimeMethod · 0.80
conditionsMethod · 0.80
UpdateWoundsMethod · 0.80
objectFunction · 0.50

Tested by

no test coverage detected