AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   AntiRoxx 5 (05 jan 2014) (https://forums.alliedmods.net/showthread.php?t=220834)

ConnorMcLeod 07-15-2013 04:42

AntiRoxx 5 (05 jan 2014)
 
6 Attachment(s)
ANTIROXX V5



.: Description :.


This plugin combines few features, in order to make game more fair between skilled players and beginners.
Players with too high ratio can be kicked according to cvars, for beginner servers for example.
  • Weapons Mode
    Skilled players can be restricted according to their K/D ratio, each weapon has a dedicated ratio above which players can't use / buy / collect it.
  • Newbies Mode
    According to their ratio, players can be protected against any other damage than knife, in that case, those players are glowing.
  • Health Mode
    According to their ratio, players can have a health bonus or malus at spawn, there are 3 bonuses ratios, and 3 maluses ratios.
  • Damage Mode
    According to their repective ratios, damage between 2 players are computed in order to make the game more fair.
    Damage between 2 players with rhoughly the same ratio won't be changed.
    Damage between a skilled players shooting a beginner gonna be decreased.
    Damage between a beginner shooting a skilled players gonna be increased.
    There are cvars in order to set min and max factor that can be applied to weapons damage and HE damage.




.: Cvars :.

! Any cvar change is taken in account on new round.
! For any ratio cvar, put a negative value to disable.
  • antiroxx_active < 0/1 >
    Switches ON or OFF the plugin
  • antiroxx_always_count < 0/1 >
    Keep counting frags and deaths when antiroxx_active is 0
  • antiroxx_ratio_kick < float value >
    Above that ratio, player is kicked from server
  • antiroxx_kick_min_frags < integer value >
    Min frags required in order to cvar antiroxx_ratio_kick can be taken in account
  • antiroxx_default_score < integer value >
    Default score attributed to player on first time he joins server
    This is usefull for 2 things, 1: player won't have deaths=0 so ratio can be safely computed, 2: ratio gonna be more accurate with high values
  • antiroxx_maxcumul < integer value >
    Once player kills or deaths have reached that value, score is divided by 2
  • antiroxx_prune_days < integer value >
    Stored players older than this value are deleted from nvault save file


  • antiroxx_newbie_mode < 0/1 >
    Switches Newbie Mode ON or OFF
  • antiroxx_ratio_newbie < float value >
    Players with ratios lower than this value will be protected against shooting (only knife allowed on them) and gonna glow
  • antiroxx_glow_newbie_t < RRR GGG BBB AAA >
    Color and Alpha for glowing Terrorists
  • antiroxx_glow_newbie_ct < RRR GGG BBB AAA >
    Color and Alpha for glowing Counter-Terrorists


  • antiroxx_weapons_mode < 0/1 >
    Switches ON or OFF Weapons Restrictions Mode
  • antiroxx_ratio_*** < float value >
    Players with higher ratio that this value have no more access to that weapon
    Replace *** with weapon shortname
    Weapons short names are :
    • shield
    • p228
    • scout
    • hegrenade
    • xm1014
    • mac10
    • aug
    • smokegrenade
    • elite
    • fiveseven
    • ump45
    • sg550
    • galil
    • famas
    • usp
    • glock18
    • awp
    • mp5navy
    • m249
    • m3
    • m4a1
    • tmp
    • g3sg1
    • flashbang
    • deagle
    • sg552
    • ak47
    • knife
    • p90


  • antiroxx_health_mode < 0/1 >
    Switches ON or OFF Health Mode
  • antiroxx_health_bonus_ratio3 < float value >
  • antiroxx_health_bonus3 < integer value >
  • antiroxx_health_bonus_ratio2 < float value >
  • antiroxx_health_bonus2 < integer value >
  • antiroxx_health_bonus_ratio1 < float value >
  • antiroxx_health_bonus1 < integer value >
    If player has ratio < antiroxx_health_bonus_ratio3 he receives antiroxx_health_bonus3 health,
    else if ratio is between antiroxx_health_bonus_ratio3 and antiroxx_health_bonus_ratio2, he receives antiroxx_health_bonus2,
    else if ratio is between antiroxx_health_bonus_ratio2 and antiroxx_health_bonus_ratio1, he receives antiroxx_health_bonus1
  • antiroxx_health_malus_ratio3 < float value >
  • antiroxx_health_malus3 < integer value >
  • antiroxx_health_malus_ratio2 < float value >
  • antiroxx_health_malus2 < integer value >
  • antiroxx_health_malus_ratio1 < float value >
  • antiroxx_health_malus1 < integer value >
    If player has ratio > antiroxx_health_malus_ratio3 he is taken antiroxx_health_malus3 health,
    else if ratio is between antiroxx_health_malus_ratio3 and antiroxx_health_malus_ratio2, he is taken antiroxx_health_malus2,
    else if ratio is between antiroxx_health_malus_ratio2 and antiroxx_health_malus_ratio1, he is taken antiroxx_health_malus1


  • antiroxx_damage_mode < 0/1 >
    Switches ON or OFF Damage Mode
  • antiroxx_max_adv_factor < float value >
    Max factor which can be applied to damage when a beginner is shooting a skilled player
  • antiroxx_max_handicap_factor < float value >
    Min factor which can be applied to damage when a skilled player is shooting at a beginner
  • antiroxx_max_adv_factor_he < float value >
    Max factor which can be applied to damage when a beginner is hurting a skilled player with HE grenade
  • antiroxx_max_handicap_factor_he < float value >
    Min factor which can be applied to damage when a skilled player is hurting a beginner with HE grenade


.: Commands :.


The 2 admin commands are also avalaible as the menu 2 last items.
  • say(_tem) /antiroxx
    Opens AntiRoxx menu
  • antiroxx_motd (Admin)
    Displays players Kills Deaths and Ratios in a motd window
  • antiroxx_con (Admin)
    Displays players Kills Deaths and Ratios in admin or server console



.: Notes :.

For administrators using old (amx or amxx) versions, in order to keep old players ratio, you have to edit .sma, on current version at line 23 :
Code:
new OLD_ANTIROXX_PATH[] = "";
and you have to put old folder path here, something like :
Code:
new OLD_ANTIROXX_PATH[] = "addons/amx/config/antiroxx_logs";
or
Code:
new OLD_ANTIROXX_PATH[] = "addons/amxmodx/configs/antiroxx_logs";

Once you have run that recompile plugin, old files should have been deleted, you can either keep the plugin as it is, either recompile it without old folder path.


.: Installation :.

Put antiroxx.amxx in addons/amxmodx/plugins/ folder
Put antiroxx.txt in addons/amxmodx/data/lang/ folder
Put antiroxx.cfg in addons/amxmodx/configs/antiroxx/ folder

For specific maps, you can put mapname.cfg in addons/amxmodx/configs/antiroxx/maps/ folder
For specific maps prefixes, you can put prefix_***.cfg in addons/amxmodx/configs/antiroxx/maps/ folder, where *** stands for prefix names

Examples :
addons/amxmodx/configs/antiroxx/maps/fun_matrix.cfg
addons/amxmodx/configs/antiroxx/maps/prefix_aim.cfg
addons/amxmodx/configs/antiroxx/maps/prefix_awp.cfg
addons/amxmodx/configs/antiroxx/maps/prefix_fy.cfg


Priority config file is : 1 mapname cfg file, 2 prefix cfg file, 3 default cfg file.
If a file is executed, plugin won't check for other files, means that if there is awp_map.cfg, prefix_awp.cfg and antiroxx.cfg won't be checked.


.: ChangeLog :.


Code:

v5.0.12 (05 jan 2014)
- Make per map cfg file works if map has been set with some uppercase chars
- Added amxx1.8.3 support
v5.0.11 (29 oct 2013)
- Attempt to fix an errorlog on invalid player in Killed() callback (my guess is invalid one is killer, we'll see)
- Added possibility to change say /antiroxx command access level via cmdaccess.ini
v5.0.10 (03 aug 2013)
- Added support for uft-8 in motd, so russian or other languages can work.
v5.0.9 (30 jul 2013)
- Fixed little error on armoury touch when armouries were vest or vesthelm
v5.0.8 (15 jul 2013)
- Official Release


ConnorMcLeod 07-15-2013 04:55

Re: AntiRoxx 5 (15 jul 2013)
 
* Reserved *

Smatify 07-15-2013 06:40

AW: AntiRoxx 5 (15 jul 2013)
 
Sounds nice

Jhob94 07-15-2013 06:48

Re: AntiRoxx 5 (15 jul 2013)
 
So the plugin marks some players as noob in order to them get prizes for fair game?

ConnorMcLeod 07-15-2013 06:51

Re: AntiRoxx 5 (15 jul 2013)
 
Not really.

TheDS1337 07-15-2013 09:44

Re: AntiRoxx 5 (15 jul 2013)
 
Nice plugin, you didn't approve a plugin a long time ago

bLacK-bLooD 07-15-2013 10:03

Re: AntiRoxx 5 (15 jul 2013)
 
I think he means that you haven't submitted new plugins lately.

Nice plugin.

Mofforg 07-16-2013 09:45

Re: AntiRoxx 5 (15 jul 2013)
 
Connor, nice plugin.

Why don't you return PLUGIN_HANDLED on ClCmd_AntiRoxx? It's better to hide all commands from chat.

DruGzOG 07-17-2013 00:59

Re: AntiRoxx 5 (15 jul 2013)
 
You noob :up:
Makes it fun and exciting for new players. Nice work.

Roccoxx 07-17-2013 01:11

Re: AntiRoxx 5 (15 jul 2013)
 
good idea ;)


All times are GMT -4. The time now is 19:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.