by Bricktop on Sat Aug 16, 2008 8:38 am
Nope, can't be done with plain Jaymod.
The problem is, that even if you use the team_maxPanzers [num%] syntax, the value gets rounded incorrectly (always being rounded up). So you'd think that if you set team_maxPanzers 10% and there are 9 players on a team, therefore the resulting amount of players allowed to use panzer is 0.9, panzer would be disabled. Even 1%, resulting in 0.09, leads to one player being allowed to use panzer.
You can achieve it with etadmin_mod though, but I'd much rather see this calculation fixed in Jaymod.
Since I don't like etadmin_mod (crappy code, lousy documentation, inactive developement) I'm working on a python script that lets you implement these kinds of advanced weapon restrictions. Will post it here as soon as I'm done.