AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP][Model Support] Addon: Bodyguard Mode[v3.1] (https://forums.alliedmods.net/showthread.php?t=139301)

Excalibur.007 09-29-2010 10:44

[ZP][Model Support] Addon: Bodyguard Mode[v3.1]
 
7 Attachment(s)
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" 0Plague   |   1Swarm(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 RRRGGGBBB format
zp_vip_unlimited_ammo 
"0" 0Off   |   1On
zp_vip_allow_pick_up 
"1" 0Strip weapons Only knife No pickup   |   1No change
zp_zombie_inf_respawn 
"1" 0Disable 1Enable
zp_zombie_respawn_delay 
"5.0" Respawn delay
zp_vip_aura 
"255 255 255" VIP aura in RRRGGGBBB 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 enableBut 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 disconnectsnew 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 CVarsRGradius)
     - 
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 crashRemoved 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 AMXMiscChanged 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.

Hezerf 09-29-2010 11:03

Re: [ZP] Addon: Bodyguard Mode[v1.1]
 
You shall tell the peoples that they need the new natives ZP.

Vechta 09-29-2010 11:08

Re: [ZP] Addon: Bodyguard Mode[v1.1]
 
Thanks for posting, Credits for Nihilanth for this idea..

NiHiLaNTh 09-29-2010 11:18

Re: [ZP] Addon: Bodyguard Mode[v1.1]
 
Quote:

Originally Posted by Vechta (Post 1311321)
Thanks for posting, Credits for Nihilanth for this idea..

Actually, it was tempito's idea. :grrr:

Vechta 09-29-2010 11:23

Re: [ZP] Addon: Bodyguard Mode[v1.1]
 
Who is that? xD

NiHiLaNTh 09-29-2010 11:25

Re: [ZP] Addon: Bodyguard Mode[v1.1]
 
Im talking about this guy.And he asked in this topic for Bodyguard Mode.

sunx 09-29-2010 11:29

Re: [ZP] Addon: Bodyguard Mode[v1.1]
 
wtf copy & paste from our vip mode ? oO

http://sunxgaming.de/vip.JPG

ollegicch 09-29-2010 11:50

Re: [ZP] Addon: Bodyguard Mode[v1.1]
 
zp_addon_bodyguard.sma(128 ) : error 017: undefined symbol "zp_set_user_unlimited_clip"
zp_addon_bodyguard.sma(191) : error 017: undefined symbol "zp_set_user_model"
zp_addon_bodyguard.sma(205) : error 017: undefined symbol "zp_set_user_unlimited_clip"

3 Errors.
Could not locate output file zp_addon_bodyguard.amx (compile failed).


ERROR: Your plugin failed to compile

abdul-rehman 09-29-2010 12:57

Re: [ZP] Addon: Bodyguard Mode[v1.1]
 
@Exaclibur
Can you make it for ZPA as well

By using zp_register_game_mode and then adding this as a seperate game mode
:)

And i think its better to use engine module in this one as compared to fakemeta

tempito 09-29-2010 17:47

Re: [ZP] Addon: Bodyguard Mode[v1.1]
 
Quote:

Originally Posted by NiHiLaNTh (Post 1311331)
Im talking about this guy.And he asked in this topic for Bodyguard Mode.

Thnx to u and excalibur :)


All times are GMT -4. The time now is 21:34.

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