Idea from:
Zombie Plague Special
This is a really simple zombie class. It's 99% invisible but it becomes visible when it's hurt. It has a very low HP and a really high speed, which makes him hard to get hit.
Also, added an addon to make nemesis this kind of zombie.
Cvars:
Code:
ZP: Class Nightcrawler
zp_nc_invisibility_amount 2 // How visible is nightcrawler [0 (invisible) - 15 (totally visible)]
zp_nc_R 20 // Red color amount when it's invisible [0-255]
zp_nc_G 20 // Green color amount when it's invisible [0-255]
zp_nc_B 20 // Guess
ZP: Addon nemesis to nightcrawler
zp_nemesis_invisible_amount 2
zp_nemesis_invisible_red 4
zp_nemesis_invisible_green 4
zp_nemesis_invisible_blue 4
zp_nemesis_silent_footsteps 1 // Should nemesis have silent footsteps?
* Adjust nemesis health to this addon!! *
* Open addon sma and adjust default values for lighting and thunderclap!! *
Natives:
Code:
/* Returns 1 if user has nightcrawler ZombieClass */
native zp_is_user_nightcrawler(id);
Changelog:
Code:
09/04/2015 - 0.1 - First release (ZP Class)
04/05/2015 - 0.1 - First release (ZP Addon)
Discussion:
- Bugs? Errors?
- How can I improve my code?
- What features shall I add to the zombie class?
- Is it better to use
fm_set_user_rendering? I think the effect is cooler, but I've always used
set_user_rendering instead
- Would it be better not to use PlayerPreThink? How to avoid using it?