Advertisement
Chronos_Ouroboros

Ozymandias81

Apr 19th, 2015
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. #DEFINE MAXPLAYERS 8 // Change to 64 for Zandronum or if the maximum amount of players is changed while your mod is being made
  2. bool compassActive [MAXPLAYERS];
  3.  
  4. script "BoA_Enter" ENTER {
  5. thing_ChangeTID (0, -40000 - playerNumber ()); // Change the player's TID.
  6. }
  7.  
  8. script "BoA_Return" RETURN {
  9. acs_ExecuteNamedAlways ("BoA_Enter", 0); // Call BoA_Enter
  10. }
  11.  
  12. script "BoA_Respawn" RESPAWN {
  13. thing_ChangeTID (-40000 - playerNumber (), 0); // Change our dead body's TID to zero
  14. acs_ExecuteNamedAlways ("BoA_Enter", 0); // Call BoA_Enter
  15. }
  16.  
  17. script "BoA_Objective1" (void) { // Call this script to activate the compass and draw the compass
  18. compassActive [playerNumber ()] = TRUE; // Change compassActive [playerNumber()] to TRUE
  19.  
  20. while (compassActive [playerNumber()]) { // Loop if compassActive [playerNumber()] is TRUE.
  21. drawCompass (activatorTID (), 900, 0); // Draw the compass
  22. delay (1);
  23. }
  24. }
  25.  
  26. script "BoA_DeactivateCompass" (void) NET { // Call this script to deactivate the compass
  27. compassActive [playerNumber ()] = FALSE; // Change to "compassActive [playerNumber ()] = !compassActive [playerNumber ()];" if you want it to toggle it instead of deactivating it.
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement