Wolfenstein

Sprawdzanie objectivow questa

Jun 27th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. void PassengerBoarded(Unit* passenger, int8 /*seatId*/, bool /*apply*/)
  2. {
  3. if (Player *player = passenger->ToPlayer())
  4. {
  5. printf("Player jest Playerem\n");
  6. int wave_count = 0;
  7. if (player->GetReqKillOrCastCurrentCount(QUEST_ID, OBJECTIVE_1))
  8. wave_count++;
  9. if (player->GetReqKillOrCastCurrentCount(QUEST_ID, OBJECTIVE_2))
  10. wave_count++;
  11. if (player->GetReqKillOrCastCurrentCount(QUEST_ID, OBJECTIVE_3))
  12. wave_count++;
  13. if (player->GetReqKillOrCastCurrentCount(QUEST_ID, OBJECTIVE_4))
  14. wave_count++;
  15. std::cout << "Fale zrobione przez gracza: " << wave_count << "\n";
  16. SetData(1, wave_count);
  17. printf("Przeslane do set data\n");
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment