Talk:Weapon Limits
Step 3: Allow 2+ weapons from each category (WIP)
[insert sigh here] I can't figure out how to do this. I'm sure you can code this in somehow, but I can't find it. I know I need to do this:
0. Check what primary weapons are in what position in slot 2 and if either of them are drawn.
1. If you have no primary weapons, put the equipped weapon in position 0.
2. If there is a primary weapon in position 0 but not in position 1, but the equipped weapon in position 1.
3. If there is a weapon in both positions, drop either the weapon in position 1, or if the weapon in position 0 is currently drawn, the weapon in position 0, and put the equipped weapon in its place.
If anyone can do this, put it here! I got you one step of the way, maybe you can help me get the last step. Thanks!
Lonkfania (talk) 02:04, 9 August 2016 (UTC)
EDIT: I've got an idea, but it has to do with HL2MPBaseCombatWeapon. Basically, I add a "Primary" or "WeaponType" variable, and I assign it to the weapons I want. I can change another variable that determines their slot (I think) and I'm done. I'm just not sure how to put it into code. Again, can someone help me? I'll take all further discussion on the Discussion page. Thanks!