AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ZR] Antidote - (Infection Cure) [1.0] (https://forums.alliedmods.net/showthread.php?t=219104)

Furibaito 06-25-2013 11:34

[ZR] Antidote - (Infection Cure) [1.0]
 
2 Attachment(s)
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. :bee:

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 :D

Changelog
Code:

[25/6/13] [0.1]
 - Initial release


Jargon 06-26-2013 08:16

Re: [ZR] Antidote - (Infection Cure) [1.0]
 
Nice!

django 06-30-2013 11:28

Re: [ZR] Antidote - (Infection Cure) [1.0]
 
Nice .


All times are GMT -4. The time now is 01:58.

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