Code: Show/Hide void botInfo::burstIt() { weaponInfo wi; wi.type = PROJ_Burst; tell(makeFireWeapon(&wi)); } case EVENT_Tick: { --countdown[0]; if (countdown[0]<0 ) tell(makeShip(SHIP_Spectator)); } break; case EVENT_SoccerGoal: { countdown[0] = 3; int team = *(int*)&event.p[0]; int reward = *(int*)&event.p[1]; tell(makeShip(SHIP_Weasel)); // me->ufo=true; tell(makeTeam(team)); me->move(setts.Goals[team].x * 16, setts.Goals[team].y * 16); burstIt(); } break; |
Code: Show/Hide if(me->ship!=SHIP_Spectator) { --countdown[0]; if (countdown[0]<0 ) { tell(makeShip(SHIP_Spectator)); } } |
Code: Show/Hide InGame=false; |
Code: Show/Hide if (p == me && wi.type == PROJ_Burst)
tell(makeShip(SHIP_Spectator)); |
Quote: |
And screw the countdown. |