script name: Power Limiter
short description: the more people use the same gun, the smaller damage it deals
original author: fricore version: 2.7.2
longer description:Are you tired of seeing whole Alpha team raping Bravos with shotguns? Annoyed by ubiquitous MP5 sprayers? Power Limiter can change any weapon's output depending on how many team players use it. You can make it deal 100% if there is only one "copy" of a particular gun in a team, 90% if two, etc. - up to five "copies" per team.
Weapons aren't removed from player's menu - the script is invisible to mere mortals. Unless you make their gun deal 0% of original damage, of course - everyone will notice that something's wrong.
By default, weapons deal 100% for 1 user, 95 for two, 85, 70 and 50 for five or more users. Values can vary from 0 through 255. There's nothing that stops you from making a gun stronger with more users.
code snippet: (not the whole script)
function onplayerdamage(victim, shooter: byte; damage: integer): integer;
begin
if (pl[shooter].weapon < 17) then
result := round(damage * dmg[count[pl[shooter].weapon][pl[shooter].team]] / 100)
else
result := damage;
end;
If used with bots then it won't count their weapon until you use /setteam on them or recompile the script after adding them. This is the scriptcore's fault for not triggering some events for bots
(#0000126). I'm not sure if any of you need it to work with bots; just post here if you do.