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

Method SetAttackMode

src/SB/Game/zNPCGoalRobo.cpp:3183–3199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3181}
3182
3183void zNPCGoalAttackArf::SetAttackMode(S32 a, S32 b)
3184{
3185 flg_attack &= 0xfffffff8;
3186 if (a != 0)
3187 {
3188 flg_attack |= 2;
3189 if (b != 0)
3190 {
3191 flg_attack |= 4;
3192 }
3193 }
3194 else
3195 {
3196 flg_attack |= 1;
3197 }
3198 flg_info |= 0x10;
3199}
3200
3201S32 zNPCGoalAttackArf::LaunchBone(F32 dt, S32 param_2)
3202{

Callers 2

EnterMethod · 0.95
DecideAttackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected