AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Rank Mod (Lite) (https://forums.alliedmods.net/showthread.php?t=131778)

Seta00 07-08-2010 19:20

Rank Mod (Lite)
 
4 Attachment(s)
Rank Mod v1.0

This was made by request.
I don't need it to be approved, I don't care if you don't like it, I'm just releasing it here because I don't code private (at least not for free).

Playing the mod
  • You kill people and get XP.
  • There are ranks and classes, ranks can have an arbitrary number of classes.
  • For each class you pass, you're provided with a set of improvements to choose from:
    • Increase max health
    • Increase max armor
    • Increase max speed
    • Decrease gravity
    • Decrease visibility
  • There are limits for all improvements
  • Every value is customizable by CVars

Configuring the mod
  • First of all, you have to create the config file 'addons/amxmodx/configs/rank_mod.cfg'. This file will describe the ranks and classes. Here's an example:
    Code:

    -- This is a comment. Comments start at line start only. (Well, the parser will ignore everything after the upper bound of the class, but I suggest leaving the comments on their own lines)
    Vegetables
    - Tomato : 0..100
    - Pickle : 101..250

    Fruits
    - Apple : 251..450
    - Orange : 451..700
    - Banana : 701..1000
    - Cherry : 1001..1350

    Meat
    - Beef : 1351..1750
    - Pork : 1750..2200
    - Lamb : 2201..2700

  • After customizing the config file, you can move on to customizing cvars if you don't like the default values:
    Code:

    amx_rm_headshot_xp (4) - XP gained by hs
    amx_rm_bodyshot_xp (2) - XP gained by normal kill
    amx_rm_knifestab_xp (3) - XP gained by knife kill
    amx_rm_knife_hs_xp (5)  - XP gained by headstab kill (very rare, but who knows, it was requested)
    amx_rm_grenade_kill_xp (3) - XP gained by nade kill

    amx_rm_health_increase (5) - Max health increase by class
    amx_rm_max_health (125) - The maximum health a player can get

    amx_rm_armor_increase (5) - Armor increase by class
    amx_rm_max_armor (125) - The maximum armor a player can get

    amx_rm_speed_increase (5) - Speed increase by class (in units/sec)
    amx_rm_max_speed (400) - The maximum speed a player can get (WHICH MEANS DON'T USE THIS WITH KZ/BHOP)

    amx_rm_gravity_decrease (2) - The percentage of gravity a player loses by class
    amx_rm_min_gravity (85) - The minimum percentage of gravity a player can reach

    amx_rm_visibility_decrease (5) - How much visibility a player loses by class, full visible = 255 so 5 = ~2%
    amx_rm_min_visibility (200) - The minimum visibility a player can reach

  • Important: if you change the plugin in a way that changes how things are saved, increment the value of RM_VAULT_VERSION to avoid compatibility issues between old entries. This also applies if you uncomment SAVE_BY_IP.

Please report bugs.
Request features here!

DruGzOG 07-08-2010 19:54

Re: Rank Mod (Lite)
 
Add ML :)

Seta00 07-08-2010 20:21

Re: Rank Mod (Lite)
 
Quote:

Originally Posted by DruGzOG (Post 1232540)
Add ML :)

Added just because I'm happy today. I've also removed some debug things left in the code.

Muscle Brazil 07-09-2010 01:59

Re: Rank Mod (Lite)
 
big seta. nice man

drekes 07-09-2010 06:25

Re: Rank Mod (Lite)
 
awesome, this makes it a lot easier to make an xp mod

fezh 07-09-2010 11:02

Re: Rank Mod (Lite)
 
PHP Code:

    for (new 0playersnum; ++i) {
        new 
id players[i]; 

Man..

Seta00 07-09-2010 12:08

Re: Rank Mod (Lite)
 
Quote:

Originally Posted by fezh (Post 1233117)
PHP Code:

    for (new 0playersnum; ++i) {
        new 
id players[i]; 

Man..

Prove me wrong.

fezh 07-09-2010 12:38

Re: Rank Mod (Lite)
 
Quote:

Originally Posted by Seta00 (Post 1233166)
Prove me wrong.

What about this? And it's quite logical, with your code in a 32 slots server you will be creating 32 variables instead of only 1.

DaxProxy 07-09-2010 14:20

Re: Rank Mod (Lite)
 
Not very good idea, not that my post has any point.
Im curious, that how much performance such fault sucks?

Seta00 07-09-2010 18:12

Re: Rank Mod (Lite)
 
Quote:

Originally Posted by fezh (Post 1233196)
What about this? And it's quite logical, with your code in a 32 slots server you will be creating 32 variables instead of only 1.

Oh!! I thought you were talking about another thing... lol Yeah, it's lame, I'll fix it.


All times are GMT -4. The time now is 20:42.

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