Raised This Month: $51 Target: $400
 12% 

Rank Mod (Lite)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 07-08-2010 , 19:20   Rank Mod (Lite)
Reply With Quote #1

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!
Attached Files
File Type: sma Get Plugin or Get Source (rank_mod.sma - 1071 views - 14.0 KB)
File Type: cfg rank_mod.cfg (217 Bytes, 419 views)
File Type: txt rank_mod.txt (524 Bytes, 346 views)

Last edited by Seta00; 08-17-2010 at 00:31. Reason: Nope
Seta00 is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 07-08-2010 , 19:54   Re: Rank Mod (Lite)
Reply With Quote #2

Add ML
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 07-08-2010 , 20:21   Re: Rank Mod (Lite)
Reply With Quote #3

Quote:
Originally Posted by DruGzOG View Post
Add ML
Added just because I'm happy today. I've also removed some debug things left in the code.
Seta00 is offline
Muscle Brazil
Senior Member
Join Date: Apr 2009
Location: Brazil
Old 07-09-2010 , 01:59   Re: Rank Mod (Lite)
Reply With Quote #4

big seta. nice man
Muscle Brazil is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-09-2010 , 06:25   Re: Rank Mod (Lite)
Reply With Quote #5

awesome, this makes it a lot easier to make an xp mod
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 07-09-2010 , 11:02   Re: Rank Mod (Lite)
Reply With Quote #6

PHP Code:
    for (new 0playersnum; ++i) {
        new 
id players[i]; 
Man..
__________________
"There is no knowledge, that is not power"
fezh is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 07-09-2010 , 12:08   Re: Rank Mod (Lite)
Reply With Quote #7

Quote:
Originally Posted by fezh View Post
PHP Code:
    for (new 0playersnum; ++i) {
        new 
id players[i]; 
Man..
Prove me wrong.
Seta00 is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 07-09-2010 , 12:38   Re: Rank Mod (Lite)
Reply With Quote #8

Quote:
Originally Posted by Seta00 View Post
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.
__________________
"There is no knowledge, that is not power"
fezh is offline
DaxProxy
Senior Member
Join Date: Sep 2007
Old 07-09-2010 , 14:20   Re: Rank Mod (Lite)
Reply With Quote #9

Not very good idea, not that my post has any point.
Im curious, that how much performance such fault sucks?
DaxProxy is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 07-09-2010 , 18:12   Re: Rank Mod (Lite)
Reply With Quote #10

Quote:
Originally Posted by fezh View Post
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.

Last edited by Seta00; 11-03-2010 at 06:18.
Seta00 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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