Advanced Human Classes
Description:
By default(Unless you edited the file), there is 5 human classes.
- Weapon Specialist[Faster Rate.Of.Fire]
- Medic[Heal/Disinfect]
- Marksman[Lesser recoil]
- Improved Bullet[Damage multiplier]
- Hardened Bullet[Knockback]
CVars(Everything in the " " is the default):
Code:
zp_hclass_ROF_*WeaponName* "0.85" - Rate of fire multiplier
zp_hclass_recoil_*WeaponName* "0.8" - Recoil multiplier
zp_hclass_heal_amt "66" - Amt. of HP should be healed.
zp_hclass_disinfect_mindist "300" - The least distance to disinfect zombies(NOT NEMESIS)
zp_hclass_medic_cmd_delay "0.5" - To prevent spamming.
zp_hclass_max_medic "3" - The max numbers of medic to prevent overpowered class
zp_hclass_dmg_multi "1.1" - Damage multiplier
zp_hclass_kbpower_*WeaponName* "10" - Knockback
Instructions on how medic works:
Yes. It's complicated during you first used it.
If you press the fire button, it would heal you if you have 99 HP or below.
If you press the zoom in/out button, it would change the mode of your medkit(knife)
If you press the defuse/plant button, it would disinfect the aimed zombie OR heal the aimed teammate.
Commands:
PHP Code:
Weapon Specialist - None
Medic - Attack button = Heal self | Alt. fire = Change mode of med kit. | Defuse/Plant button = Disinfect aimed zombie/Heal aimed teammate
Marksman - None
Improved Bullets - None
Hardened Bullets - None
Open menu: /hclass
Reset saving current class: /hclass_reenable
Changelog:
PHP Code:
v1.0 - Intial Release
v1.1 - Bug fix: No more disinfect during Swarm/Plague mode.
v1.2 - Saving of classes, a little bug fix that survivor can choose class at plague round.
v1.2a - Optimization
v1.3 BETA - New class(Just a test, optional)
v1.3a BETA - Optimization
v1.3 - Fixed save current class not working
- Removed "Made by:" I trust you all :)
v1.4 - Fixed when not medic, knife model is medkit.
v1.5 - Round start CVars caching instead of restarting server
- ZPA support. Look below for ZPA support.
- Support zp_human_health
v1.5a - Register CZ Bots spawn and take damage
- attacker != victim
ZPA SUPPORT
How to use ZPA support:
Open the sma file, In the first few lines, you will see this
PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >
#include < fun >
#include < zombieplague >
//#include < zombie_plague_advance >
Change it to this to make it works for ZPA
PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >
#include < fun >
//#include < zombieplague >
#include < zombie_plague_advance >
You need the new natives to work(ZPA Supported as well)
http://forums.alliedmods.net/showthread.php?t=119431
Credits:
ot_207 - Recoil Control
fxfighter - Fire Rate Control
Emp` - New AMXX menu system tutorial