MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / MeleeAttackBoundCollide

Function MeleeAttackBoundCollide

src/SB/Game/zEntPlayer.cpp:3614–3630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3612}
3613
3614static S32 MeleeAttackBoundCollide(xEnt* ent, zScene* zscn, xBound* meleeB)
3615{
3616 Melee_cbData cbdata;
3617 xVec3 pos;
3618
3619 cbdata.ent = ent;
3620 cbdata.zsc = zscn;
3621 cbdata.meleeB = meleeB;
3622 cbdata.hitsomething = 0;
3623 xVec3Copy(&pos, xBoundCenter(meleeB));
3624
3625 xGridCheckPosition(&colls_grid, &pos, &meleeB->qcd, CheckObjectAgainstMeleeBound, &cbdata);
3626 xGridCheckPosition(&colls_oso_grid, &pos, &meleeB->qcd, CheckObjectAgainstMeleeBound, &cbdata);
3627 xGridCheckPosition(&npcs_grid, &pos, &meleeB->qcd, CheckObjectAgainstMeleeBound, &cbdata);
3628
3629 return cbdata.hitsomething;
3630}
3631
3632static S32 CheckObjectAgainstMeleeBound(xEnt* ent, void* data)
3633{

Callers

nothing calls this directly

Calls 3

xVec3CopyFunction · 0.85
xBoundCenterFunction · 0.85
xGridCheckPositionFunction · 0.50

Tested by

no test coverage detected