MCPcopy Create free account
hub / github.com/Norbyte/ositools / HitExecuteRetStatus

Function HitExecuteRetStatus

OsiInterface/Functions/DamageFunctions.cpp:461–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459 }
460
461 bool HitExecuteRetStatus(OsiArgumentDesc & args)
462 {
463 auto helper = HelperHandleToHelper(args[0].Int64);
464 auto & statusHandle = args[1].Int64;
465
466 if (helper == nullptr) return false;
467
468 if (helper->Type != DamageHelpers::HT_CustomHit) {
469 OsiError("Called on a DamageHelper that is not a custom hit!");
470 return false;
471 }
472
473 auto status = helper->Execute();
474 gOsirisProxy->GetExtensionState().DamageHelpers.Destroy(helper->Handle);
475 if (status == nullptr) {
476 return false;
477 } else {
478 statusHandle = (int64_t)status->StatusHandle;
479 return true;
480 }
481 }
482
483 void HitSetInt(OsiArgumentDesc const & args)
484 {

Callers

nothing calls this directly

Calls 3

HelperHandleToHelperFunction · 0.85
ExecuteMethod · 0.80
DestroyMethod · 0.80

Tested by

no test coverage detected