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

Method GenExplodeEvent

ogsr_engine/xrGame/Explosive.cpp:580–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580void CExplosive::GenExplodeEvent(const Fvector& pos, const Fvector& normal)
581{
582 if (cast_game_object()->Remote())
583 return;
584
585 // if( m_bExplodeEventSent )
586 // return;
587 VERIFY(!m_explosion_flags.test(flExplodEventSent)); //! m_bExplodeEventSent
588 VERIFY(0xffff != Initiator());
589
590 NET_Packet P;
591 cast_game_object()->u_EventGen(P, GE_GRENADE_EXPLODE, cast_game_object()->ID());
592 P.w_u16(Initiator());
593 P.w_vec3(pos);
594 P.w_vec3(normal);
595 cast_game_object()->u_EventSend(P);
596
597 // m_bExplodeEventSent = true;
598 m_explosion_flags.set(flExplodEventSent, TRUE);
599}
600
601void CExplosive::FindNormal(Fvector& normal)
602{

Callers 2

explodeMethod · 0.80
explode_initiatorMethod · 0.80

Calls 7

w_vec3Method · 0.80
cast_game_objectFunction · 0.70
testMethod · 0.45
u_EventGenMethod · 0.45
w_u16Method · 0.45
u_EventSendMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected