Description
It replaces Swarm/Plague(Default: Swarm) game play by adding a random VIP(Bots will not be chosen). VIP must be protected by the humans or zombies will take the good chance to get the VIP head's off and the round will end with extra ammo packs.
CVars
PHP Code:
zp_enable_bodyguard "1" - Enable/Disables plug-in
zp_bodyguard_swarm "1" - 0: Plague | 1: Swarm(Better than plague)
zp_bodyguard_zombie_rewards "5" - Zombie win ammo packs
zp_bodyguard_human_rewards "5" - Human win ammo packs
zp_vip_extra_rewards "5" - VIP extra winning ammo packs (This DOES NOT include human winnings)
zp_vip_health "255" - VIP health
zp_vip_extra_health "100" - VIP extra health if his the last human
zp_vip_armor "255" - VIP armor
zp_vip_gravtity "0.75" - VIP gravity
zp_vip_glow_r "255 255 255" - VIP glow in RRR, GGG, BBB format
zp_vip_unlimited_ammo "0" - 0: Off | 1: On
zp_vip_allow_pick_up "1" - 0: Strip weapons + Only knife + No pickup | 1: No change
zp_zombie_inf_respawn "1" - 0: Disable | 1: Enable
zp_zombie_respawn_delay "5.0" - Respawn delay
zp_vip_aura "255 255 255" - VIP aura in RRR, GGG, BBB format
zp_vip_aura_radius "20" - VIP aura radius
zp_vip_painshockfree "1" - VIP Pain Shock Free
zp_vip_modelindex "0" - More accurate hit boxes if enable. But could lag the server heavily if hit boxes are in bad shape.
Plugins Requirements
AMXModX 1.8.0 or higher
Version History
PHP Code:
v1.0 - Initial release
v1.1 - Improved zp_vip_allow_pick_up CVar
v1.2 - FM => Engine
v1.3 - If VIP disconnects, a new VIP with the same armor and HP
- Zombie will respawn if CVar zp_zombie_inf_respawn is enabled and delay is X sec(zp_zombie_respawn_delay)
v1.4 - Fix glow bug even CVar is set
v1.5 - VIP packs system added
- Intergrated bank with auto-save/auto-load + say commands to manual save/load
- VIP aura(4 CVars, R, G, B & radius)
- Some bug fixes(New VIP doesnt get glow)
- 1 forward + 2 natives
- Little optimization
v1.6 - Compile error if VIP packs is disabled
v1.7 - Gah stupid server crash. Removed VIP packs.
v1.8 - Fixed zombie gets to be VIP
- Removed useless checks and codes
v1.9 - Fixed zombie respawning on other modes
- Plugin should now be bugs-free
v2.0 - Randomize VIP fixed
- Aura not removing
- Tested 5 rounds with friends :) | No bugs found yet.
- Bug fixed thanks for ZP Main Core and thanks to my friends.
v2.1 - Fixed that some CTs doesnt get killed after VIP dies.
v2.2 - Fixed bugs such as deathmsg is not calling for a 1 people for only a death.
- VIP Glow and Aura uses RRR GGG BBB format for easier customization
- CVars are now loaded with a config file.(bodyguard.cfg)
v2.3 - NO NEW NATIVES NEEDED
v2.4 - Fix a bug where CVars doesnt update.
- Fix console error when there are no players in the server
v2.5 - Fix a bug where bots still get chosen
- Added Pain Shock Free for VIPs
- Added another CVar for VIP ammo packs
- Clean up some useless codes such as models stuff which are totally not working.
v2.5a - Removed AMXMisc. Changed get_configsdir to get_localinfo.
v3.0 - Gravity added
- Last human VIP health added
- Code optimized heavily
v3.1 - Model support
Forwards/Natives
Native - zp_is_user_vip(id) - If user is VIP
Forward - zp_round_is_vip() - Called when VIP round started(ONLY WHEN THE CVAR TOGGLE IS ENABLED)
Unable to compile
- It will only work on
Zombie Plague 4.3 Fix 3 and above only.
Credits
Me! - Whole plugin
meTaLiCroSS - zp_get_user_infection_nade & Swarm Zombie
tempito & albert123 - Idea
Zombie Plague Main Core - Aura + Random.