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

Method Process

src/SB/Game/zNPCTypeDutchman.cpp:1149–1191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1147}
1148
1149void zNPCDutchman::Process(xScene* xscn, F32 dt)
1150{
1151 xVec3 player_loc;
1152
1153 if (flag.fighting == 0)
1154 {
1155 zNPCCommon::Process(xscn, dt);
1156 }
1157 else
1158 {
1159 delay = delay + dt;
1160 psy_instinct->Timestep(dt, NULL);
1161 if (flag.fighting == 0)
1162 {
1163 zNPCCommon::Process(xscn, dt);
1164 }
1165 else
1166 {
1167 if (flag.face_player != 0)
1168 {
1169 player_loc = globals.player.ent.model->Scale;
1170 get_center();
1171 }
1172 update_turn(dt);
1173 update_move(dt);
1174 update_animation(dt);
1175 update_flames(dt);
1176 update_eye_glow(dt);
1177 update_hand_trail(dt);
1178 update_fade(dt);
1179 update_slime(dt);
1180
1181 if ((check_player_damage() & 0xff) != 0)
1182 {
1183 zEntPlayer_Damage((xBase*)this, 1);
1184 }
1185 update_camera(dt);
1186 refresh_reticle();
1187 flg_xtrarend = flg_xtrarend | 1;
1188 zNPCCommon::Process(xscn, dt);
1189 }
1190 }
1191}
1192
1193S32 zNPCDutchman::SysEvent(xBase* from, xBase* to, U32 toEvent, const F32* toParam,
1194 xBase* toParamWidget, S32* handled)

Callers

nothing calls this directly

Calls 15

update_moveFunction · 0.85
update_flamesFunction · 0.85
update_eye_glowFunction · 0.85
update_fadeFunction · 0.85
update_slimeFunction · 0.85
goal_delayMethod · 0.80
zEntPlayer_DamageFunction · 0.70
ProcessFunction · 0.50
update_turnFunction · 0.50
update_animationFunction · 0.50
check_player_damageFunction · 0.50
TimestepMethod · 0.45

Tested by

no test coverage detected