| 1147 | } |
| 1148 | |
| 1149 | void 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 | |
| 1193 | S32 zNPCDutchman::SysEvent(xBase* from, xBase* to, U32 toEvent, const F32* toParam, |
| 1194 | xBase* toParamWidget, S32* handled) |
nothing calls this directly
no test coverage detected