| 523 | } |
| 524 | |
| 525 | void CScriptGameObject::explode_initiator(u16 who_id) |
| 526 | { |
| 527 | ASSERT_FMT(!object().H_Parent(), "[%s]: cannot explode %s with parent", __FUNCTION__, cName().c_str()); |
| 528 | CExplosive* explosive = smart_cast<CExplosive*>(&object()); |
| 529 | ASSERT_FMT(explosive, "[%s]: %s not a CExplosive", __FUNCTION__, cName().c_str()); |
| 530 | Fvector normal; |
| 531 | explosive->FindNormal(normal); |
| 532 | explosive->SetInitiator(who_id); |
| 533 | explosive->GenExplodeEvent(object().Position(), normal); |
| 534 | } |
| 535 | |
| 536 | bool CScriptGameObject::is_exploded() |
| 537 | { |
nothing calls this directly
no test coverage detected