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

Function PatrickGrabThrowCB

src/SB/Game/zEntPlayer.cpp:3072–3092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3070}
3071
3072static U32 PatrickGrabThrowCB(xAnimTransition*, xAnimSingle*, void* object)
3073{
3074 zEntPlayer_SNDPlay(ePlayerSnd_Throw, 0.0f);
3075 zEnt* ent = (zEnt*)object;
3076 if (gReticleTarget && sTypeOfTarget == 3)
3077 {
3078 globals.player.carry.throwTarget = gReticleTarget;
3079 }
3080 else
3081 {
3082 globals.player.carry.throwTarget = GetPatrickTarget(ent);
3083 }
3084
3085 globals.player.carry.flyingToTarget = NULL;
3086 if (globals.player.carry.grabbed && globals.player.carry.grabbed->baseType == eBaseTypeNPC)
3087 {
3088 ((zNPCCommon*)globals.player.carry.grabbed)->SetCarryState(zNPCCARRY_THROW);
3089 }
3090
3091 return 0;
3092}
3093
3094static class zNPCLassoInfo* sCurrentNPCInfo;
3095void zEntPlayer_LassoNotify(en_LASSO_EVENT event)

Callers

nothing calls this directly

Calls 3

zEntPlayer_SNDPlayFunction · 0.85
GetPatrickTargetFunction · 0.70
SetCarryStateMethod · 0.45

Tested by

no test coverage detected