Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #DEFINE MAXPLAYERS 8 // Change to 64 for Zandronum or if the maximum amount of players is changed while your mod is being made
- bool compassActive [MAXPLAYERS];
- script "BoA_Enter" ENTER {
- thing_ChangeTID (0, -40000 - playerNumber ()); // Change the player's TID.
- }
- script "BoA_Return" RETURN {
- acs_ExecuteNamedAlways ("BoA_Enter", 0); // Call BoA_Enter
- }
- script "BoA_Respawn" RESPAWN {
- thing_ChangeTID (-40000 - playerNumber (), 0); // Change our dead body's TID to zero
- acs_ExecuteNamedAlways ("BoA_Enter", 0); // Call BoA_Enter
- }
- script "BoA_Objective1" (void) { // Call this script to activate the compass and draw the compass
- compassActive [playerNumber ()] = TRUE; // Change compassActive [playerNumber()] to TRUE
- while (compassActive [playerNumber()]) { // Loop if compassActive [playerNumber()] is TRUE.
- drawCompass (activatorTID (), 900, 0); // Draw the compass
- delay (1);
- }
- }
- script "BoA_DeactivateCompass" (void) NET { // Call this script to deactivate the compass
- compassActive [playerNumber ()] = FALSE; // Change to "compassActive [playerNumber ()] = !compassActive [playerNumber ()];" if you want it to toggle it instead of deactivating it.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement