[ZP] Zombie Class : Mirror Zombie
Description:
A zombie class that reflect damage(Only reflect to the attacker)
Include needed:
Code:
amxmodx.inc
fun.inc
zombieplague.inc
Cvars:
Code:
zp_mirror_swarm 1 - Default(1: Allow mirror on swarm | 0: Disable mirror on swarm)
zp_mirror_plague 1 - Default(1: Allow mirror on plague | 0: Disable mirror on plague)
zp_mirror_survivor 0 - Default(1: Allow mirror on survivor | 0: Disable mirror on survivor)
zp_mirror_glow_r 250 - Default(Red glow)
zp_mirror_glow_g 0 - Default(Green glow)
zp_mirror_glow_b 0 - Default(Blue glow)
Changelog:
Code:
v1.0 - Intial release.
v1.1 - Bug fix: Human doesn't die.
v1.2 - Bug fix: Check if user is not alive, not mirror zombie, is a nemesis or a survivor.
v1.3 - Bug fix: Stops reflecting damage if mode is Swarm, Plague, Survivor(Nemesis not needed).
v1.4 - Feature: Added glow so user know it's a Mirror Zombie.
v1.5 - Bug fix: Before infection, if the user is at T and another guy is CT. The CT becomes a zombie but T(transferred to CT) shoots the CT but doesn't die.
v1.6 - Feature: Sniper doesn't have effect on Mirror Zombies.
v1.6a - Little optimization.
v1.7 - Bug fix: Glow will be gone when frozen(Thanks Merc3y.)
- Bug fix: Glow will be replaced by nemesis if user zombie class is Mirror Zombie.(Thanks meTaLiCroSS)
- Remove survivor check(Thanks meTaLiCroSS)
- Change to static.(Thanks Javivi)
v1.8 - Added CVars to enable/disable for swarm,plague and survivor
- Major Bug Fix: Mirror Effect wont work(Not using static anymore)