Raised This Month: $51 Target: $400
 12% 

Subplugin Submission [ZP][Model Support] Addon: Bodyguard Mode[v3.1]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 09-29-2010 , 10:44   [ZP][Model Support] Addon: Bodyguard Mode[v3.1]
Reply With Quote #1

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.
Attached Files
File Type: inc zombieplague_vip.inc (329 Bytes, 1201 views)
File Type: cfg bodyguard.cfg (1.2 KB, 978 views)
File Type: sma Get Plugin or Get Source (zp_addon_bodyguard.sma - 1934 views - 15.4 KB)

Last edited by Excalibur.007; 06-20-2011 at 08:15.
Excalibur.007 is offline
Hezerf
BANNED
Join Date: Mar 2010
Old 09-29-2010 , 11:03   Re: [ZP] Addon: Bodyguard Mode[v1.1]
Reply With Quote #2

You shall tell the peoples that they need the new natives ZP.
Hezerf is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 09-29-2010 , 11:08   Re: [ZP] Addon: Bodyguard Mode[v1.1]
Reply With Quote #3

Thanks for posting, Credits for Nihilanth for this idea..
Vechta is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 09-29-2010 , 11:18   Re: [ZP] Addon: Bodyguard Mode[v1.1]
Reply With Quote #4

Quote:
Originally Posted by Vechta View Post
Thanks for posting, Credits for Nihilanth for this idea..
Actually, it was tempito's idea.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Vechta
Veteran Member
Join Date: Jun 2010
Old 09-29-2010 , 11:23   Re: [ZP] Addon: Bodyguard Mode[v1.1]
Reply With Quote #5

Who is that? xD
Vechta is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 09-29-2010 , 11:25   Re: [ZP] Addon: Bodyguard Mode[v1.1]
Reply With Quote #6

Im talking about this guy.And he asked in this topic for Bodyguard Mode.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 09-29-2010 , 11:29   Re: [ZP] Addon: Bodyguard Mode[v1.1]
Reply With Quote #7

wtf copy & paste from our vip mode ? oO

__________________

sunx is offline
ollegicch
Member
Join Date: May 2010
Location: Ukraine
Old 09-29-2010 , 11:50   Re: [ZP] Addon: Bodyguard Mode[v1.1]
Reply With Quote #8

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

Last edited by ollegicch; 09-29-2010 at 11:54.
ollegicch is offline
Send a message via Skype™ to ollegicch
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-29-2010 , 12:57   Re: [ZP] Addon: Bodyguard Mode[v1.1]
Reply With Quote #9

@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
__________________

My Plugins For ZP

Inactive due to College and Studies

Last edited by abdul-rehman; 09-29-2010 at 13:08.
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 09-29-2010 , 17:47   Re: [ZP] Addon: Bodyguard Mode[v1.1]
Reply With Quote #10

Quote:
Originally Posted by NiHiLaNTh View Post
Im talking about this guy.And he asked in this topic for Bodyguard Mode.
Thnx to u and excalibur
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:29.


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