Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname WZONES_Bulwark_Armory extends ObjectReference
- ;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.
- ;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.
- ;1.3 - Fixed missing Imperial Soldiers from the vanilla outfit toggle
- ;1.2 - Added Vspawners
- ;1.1 - Added missing Imperial Soldier
- ;1.0 - Initial Release
- GlobalVariable Property WZonesArmory Auto ;Should be set to 1 when armory is on.
- GlobalVariable Property WZArmoryModded Auto ;Should be set to 0 when Armory is on, 100 when off !SHOULD not be altered to any other parameter!
- GlobalVariable Property WZArmoryVanilla Auto ;Should be set to 100 when armory is on, 100 when off. !SHOULD not be altered to any other parameter!
- WZones_MCM Property WZMCM Auto
- State WZArmorySwitch ;State and Global Variable "WZonesArmory" are determined in the WZones_MCM script
- Event OnBeginState()
- If GetState() == "WZArmorySwitch"
- ;Debug.Notification("The WARZONES armory is now on")
- If WZonesArmory.GetValueInt() == 1 ;1 is the armory on
- WZArmoryModded.SetValue(0)
- WZArmoryVanilla.SetValue(100);these globals turn off or on the distribution of modded/vanilla armors in the ALL mainlist.
- Debug.Notification("WARZONES Armory ON")
- Else
- WZArmoryModded.SetValue(100)
- WZArmoryVanilla.SetValue(0);these globals turn off or on the distribution of modded/vanilla armors in the ALL mainlists.
- Debug.Notification("WARZONES Armory OFF")
- Endif
- ;Debug.Trace("WARZONES - Armory Configured")
- Else
- Endif
- EndEvent
- EndState
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement