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

[ZR] Antidote - (Infection Cure) [1.0]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Furibaito
Member
Join Date: Aug 2012
Location: Colossal Titan
Plugin ID:
3710
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
Servers with this Plugin:
5 
Plugin Description:
Zombies could buy an antidote to turn themselves back to human.
Old 06-25-2013 , 11:34   [ZR] Antidote - (Infection Cure) [1.0]
Reply With Quote #1

Zombie:Reloaded

Antidote

Version 1.0 by Furibaito


Requirements
  • Zombie:Reloaded 3.1 latest stable version
  • SDKHooks (Included in Sourcemod 1.5)
  • Sourcemod 1.4+

Description
Simply allows zombies to buy a cure to turns them back to human for a price. The default price is $10.000 and the default command is "!antidote" in chat. You can change them however you like. When a zombie have been cured, they are given a set of free weapons that you can configure.
This plugin could make cash more valuable in Zombie:Reloaded. Zombies could achieve something good with their hard-earned cash from infecting other humans. And could balance the gameplay if zombies team seems to be always wins.

And also, this plugin detects the zombie count so that if there is only 1 zombies left, he's unable to use antidote to instantly ending the round.

Installation
  • Get Zombie:Reloaded running fine on your server.
  • Put the zr_antidote.smx in the addons/sourcemod/plugins/ folder
  • Put the zr_antidote.sp in the addons/sourcemod/scripting/ folder (Optional)
  • Copy these cvars into server.cfg or anything you prefer.

Code:
// Enable or disable the plugin
zr_antidote_enable 1

// Price of an antidote
zr_antidote_price 10000

// Command in chat to buy an antidote
zr_antidote_command "!antidote"

// What weapons will be given to those players just used an antidote? Separates with semi-colons( ; ) and dont put any empty spaces.
zr_antidote_weapons "weapon_mp5navy;weapon_usp;weapon_hegrenade"

// Path to the sound played when a zombie using an Antidote. 0 = Disable sound. The default is from HL2 so no download. If it's custom, it's automatically set to the downloads table.
zr_antidote_sound "items/battery_pickup.wav"

// The length (in milliseconds) of the fade when a zombie using an Antidote. Set 0 to disable fade.
zr_antidote_fade_length "300"

// The color R G B A value of the fade.
zr_antidote_fade_color "255 255 255 255"
Notes
* I would recommend setting the price relatively high to balance the gameplay.
* You probably need to edit Zombie:Reloaded translation file to edit or set blank the "Infect human" part. Why? It could get weird when you bought an antidote then suddenly a message telling the merciful gods (admins) resurrected your soul.

It's on line 386
Code:
"Infect human"
	{
		"en"		""
	}
To-Do
  • CVar to disable antidote on Mother Zombies (Probably need to wait for next ZR updates for natives)
  • Announcement of antidote to inform players
  • Ability for humans to buy antidote for another zombie, probably through Antidote-Bullet or Antidote-Nade
  • Cool visual effects?
  • Translation, currently the messages are Hard Coded, I do not know how to use translation
  • Make a request And if you find a bug, please report it.

Special Thanks to...
- rhelgeby and GreyScale , creators of Zombie:Reloaded for making an incredible fun plugin.
- All Sourcemod developers and the community
- You for taking your time reading this post

Changelog
Code:
[25/6/13] [0.1] 
 - Initial release
Attached Files
File Type: sp Get Plugin or Get Source (zr_antidote.sp - 854 views - 7.1 KB)
File Type: smx zr_antidote.smx (7.9 KB, 527 views)
__________________
フリー

Currently making : ZRiot - like mod in CS:GO - - 45%

Can do private plugins or private community maps for small money.

Last edited by Furibaito; 06-25-2013 at 13:05.
Furibaito is offline
Jargon
SourceMod Donor
Join Date: Jun 2012
Location: Sydney, Australia
Old 06-26-2013 , 08:16   Re: [ZR] Antidote - (Infection Cure) [1.0]
Reply With Quote #2

Nice!
Jargon is offline
django
New Member
Join Date: Jun 2013
Location: FRANCE
Old 06-30-2013 , 11:28   Re: [ZR] Antidote - (Infection Cure) [1.0]
Reply With Quote #3

Nice .
__________________

Last edited by thetwistedpanda; 06-30-2013 at 14:11. Reason: <snipped advertise>
django is offline
Reply


Thread Tools
Display Modes

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 04:22.


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