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

Method ApplyDamage

ogsr_engine/xrGame/Car.cpp:611–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611void CCar::ApplyDamage(u16 level)
612{
613 CDamagableItem::ApplyDamage(level);
614 switch (level)
615 {
616 case 1: m_damage_particles.Play1(this); break;
617 case 2: {
618 if (!CDelayedActionFuse::isActive())
619 {
620 CDelayedActionFuse::CheckCondition(GetfHealth());
621 }
622 m_damage_particles.Play2(this);
623 }
624 break;
625 case 3: m_fuel = 0.f;
626 }
627}
628void CCar::detach_Actor()
629{
630 if (!Owner())

Callers

nothing calls this directly

Calls 3

GetfHealthFunction · 0.85
Play1Method · 0.80
Play2Method · 0.80

Tested by

no test coverage detected