Quote:
Originally Posted by salesman
I think the system checks for an this.isEventDisabled variable or something similar, I'll go through and add it to all the weapons that should be disabled
|
Pretty sloppy to have to edit each weapon individually to add the same line of code to all of them, not to mention not very efficient. You would do better to run the checks in the weapon-wielding system itself (and/or the item-using system for non-weapon items), rather than each weapon individually. Make an array of the items that cannot be used there and make it so the player can't wield certain weapons or use certain items while in the event levels.
Also makes it easier to re-allow these weapons/items in the future if you guys ever decide to lift the "ban," since all you would have to do is remove the names from the array.