Wednesday, December 22, 2010

Loadout restrictions

If you check the dvar section, there is a massive list of pretty much every weapon, perk, nade, equipment, attachments, etc in the game.  Right now before a class is selected, it will go and scan all those dvars and make sure the selected class does not violate any of the restrictions.  If it does the game will make you choose another class.

When testing I only have the ability to choose from the default 3 classes, but the logic is the same for custom classes.  In this video I used: setdvar("gm_assault_allow_m16", false);

No comments:

Post a Comment