Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. Scriptname WZONES_Bulwark_Armory extends ObjectReference
  2.  
  3.  
  4. ;1.5 Complete Overhaul bringing a 400 line script down to what you see here. Going this way ensures that NO future work will need to be done to this script. All patches/addons that use the outfits I(Eli) made for WZones will automatically conform to the McM Toggle.
  5. ;1.4 - Declared two new Gvars to Implement failsafe for potentially missed outfits. It would have been better had we used that method to begin with for the entire thing but hey, wouldn't have learned as much. Commented out the Imperial and Stormcloak soldiers; we no longer need to swap their outfits.
  6. ;1.3 - Fixed missing Imperial Soldiers from the vanilla outfit toggle
  7. ;1.2 - Added Vspawners
  8. ;1.1 - Added missing Imperial Soldier
  9. ;1.0 - Initial Release
  10.  
  11. GlobalVariable Property WZonesArmory Auto ;Should be set to 1 when armory is on.
  12. GlobalVariable Property WZArmoryModded Auto ;Should be set to 0 when Armory is on, 100 when off !SHOULD not be altered to any other parameter!
  13. GlobalVariable Property WZArmoryVanilla Auto ;Should be set to 100 when armory is on, 100 when off. !SHOULD not be altered to any other parameter!
  14.  
  15. WZones_MCM Property WZMCM Auto
  16.  
  17. State WZArmorySwitch ;State and Global Variable "WZonesArmory" are determined in the WZones_MCM script
  18.  
  19. Event OnBeginState()
  20. If GetState() == "WZArmorySwitch"
  21. ;Debug.Notification("The WARZONES armory is now on")
  22. If WZonesArmory.GetValueInt() == 1 ;1 is the armory on
  23.  
  24. WZArmoryModded.SetValue(0)
  25. WZArmoryVanilla.SetValue(100);these globals turn off or on the distribution of modded/vanilla armors in the ALL mainlist.
  26. Debug.Notification("WARZONES Armory ON")
  27.  
  28. Else
  29.  
  30. WZArmoryModded.SetValue(100)
  31. WZArmoryVanilla.SetValue(0);these globals turn off or on the distribution of modded/vanilla armors in the ALL mainlists.
  32. Debug.Notification("WARZONES Armory OFF")
  33. Endif
  34. ;Debug.Trace("WARZONES - Armory Configured")
  35. Else
  36. Endif
  37. EndEvent
  38. EndState
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement