| 1227 | } |
| 1228 | |
| 1229 | void zNPCB_SB2::Reset() |
| 1230 | { |
| 1231 | if(this->newsfish != 0) |
| 1232 | { |
| 1233 | this->newsfish->Reset(); |
| 1234 | } |
| 1235 | |
| 1236 | reset_sound(); |
| 1237 | zNPCCommon::Reset(); |
| 1238 | memset(&flag.face_player, 0 , 0x10); |
| 1239 | |
| 1240 | for (S32 i = 0; i < 9; i++) |
| 1241 | { |
| 1242 | if (nodes[i].ent != NULL) |
| 1243 | { |
| 1244 | zEntDestructObj_Reset(nodes[i].ent, globals.sceneCur); |
| 1245 | xEntShow(nodes[i].ent); |
| 1246 | } |
| 1247 | } |
| 1248 | |
| 1249 | for (S32 i = 0; i < 16; i++) |
| 1250 | { |
| 1251 | if (platforms[i].ent != NULL) |
| 1252 | { |
| 1253 | zEntEvent(this, platforms[i].ent, 10); |
| 1254 | } |
| 1255 | } |
| 1256 | |
| 1257 | this->life = 0; |
| 1258 | this->round = 0; |
| 1259 | |
| 1260 | this->check_life(); |
| 1261 | this->choose_hand(); |
| 1262 | this->reset_speed(); |
| 1263 | this->show_nodes(); |
| 1264 | |
| 1265 | this->turn.vel = 0.0f; |
| 1266 | this->node_pulse = 0.0f; |
| 1267 | this->flag.face_player = TRUE; |
| 1268 | this->flag.move = MOVE_NONE; |
| 1269 | this->player_damage_timer = 0.0f; |
| 1270 | this->old_player_health = 0; |
| 1271 | |
| 1272 | this->reset_stage(); |
| 1273 | this->set_vulnerable(TRUE); |
| 1274 | zCameraDisableTracking(CO_BOSS); |
| 1275 | boss_cam.start(globals.camera); |
| 1276 | psy_instinct->GoalSet(NPC_GOAL_BOSSSB2INTRO, 0); |
| 1277 | |
| 1278 | } |
| 1279 | |
| 1280 | void zNPCB_SB2::Destroy() |
| 1281 | { |
nothing calls this directly
no test coverage detected