Raised This Month: $ Target: $400
 0% 

[ZP] Extra Item: Freeze Ability & Immunity v1.0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
A.Madjid
Junior Member
Join Date: Apr 2011
Old 06-03-2011 , 08:13   [ZP] Extra Item: Freeze Ability & Immunity v1.0
Reply With Quote #1

  • Description :

This plugin adds two extra items to zombie plague mode :

1 - Freaze ability for zombies : it allows them to freeze humans by aiming on their bodies then press "+use" button.

2 - Immunity from freeze abilty for humans : it prevents zombies from freezing humans .( Anti freeze )

Note : Idea comes to me when i have seen the frost zombie class so most credit goes to "Excalibur.007" for his plugin .
and I have tried to transform it to an extra item + some other cvars and stuff .



  • Cvars :
* Freeze Ability *

-enable_plugin 1
Enable/Disable Freeze ability plugin .

-frost_mode 0
There are two modes :
"0" means that zombies don't loose frosts if they aim on non-victim object

"1" means that each press will cause you to loos a frost .

-frost_distance 650
Max distance that zombies can freeze humans .

-freeze_time 3
Seconds of being freezed .

-max_frost 4
Like it said , it's the number of frosts that zombie can obtain when he buys this extra item .
.
-bonus_frost 0
Number of bonus-frosts for each infect . (right now it's off)

-frost_cooldown 0.0
Seconds of waiting between frosts .

-strip_victim_armor 0
Set this to "1" means to strip victim armor when he gets freezed ,"0" means to let everything as usual .

-save_ability_on_death 0
wether to save ability or not when zombie dies .

-enable_freeze_ability_with_survivors 0
Enable/Disable Ability with survivors .
Note : survivor glow will be removed if he gets freezed .

-enable_freeze_ability_with_snipers 0
Enable/Disable Ability with snipers ( zombie_plague advance )
Note : sniper glow will be removed if he gets freezed .

- red_glow 250
- green_glow 0
- blue_glow 0
Set glow color when victim gets freezer, I think red is good because it's a zombie ability, not a human frost nade. (just to make difference)
Note : If you want to set the color just like human frost nade set the following options :
red_glow 0
green_glow 100
blue_glow 250

- glow_size 50
the size of glow color .


* Anti Freeze Ability *

- all_the_map 1
"1" ===> Immunity stills until mapchange .
"0" ===> Immunity only for one round .



  • Credits:

Excalibur.007 =====> His frost zombie class plugin .


  • Important Notes:

1 - This plugin works with both zombie plague 4.3 and zombie plague advance, if you are using zombie plague advance just uncomment the following line
Code:
//#define EDITED_VERSION

2 - You must download the new natives to run this plugin , you can find them here : http://forums.alliedmods.net/showthread.php?t=119431

3 - to disable Immunity plugin just add // to #define IMMUNITY_ABILITY
Code:
#define IMMUNITY_ABILITY

4 - If you want to change the cost of the Freeze ability please edit the line
number 143 and edit in the zpa_extraitems.ini also .
Code:
 new const item_cost = 15

5 - Last thing : I'm beginner at this so if you find any stupid thing in my code don't be surprised and tell me what you think that it's better to do.

  • Some Suggestions:
* Decrease the price of Immunity if you set it to All map .

* Cooldown should be 0.0 since players don't get this ability for free . (unlike zombie frost class)

* Increase the price of the ability in case if you enable to save it on death or to strip victim armor or anything else .

*** ANY WAY IT'S UP TO YOU ... JUST TRY TO MAKE IT FAIR BECAUSE THIS IS THE REAL PURPOSE : TO BALANCE BETWEEN HUMANS AND ZOMBIES. ***

HAVE FUN ...
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_freeze_with_immunity.sma - 2670 views - 12.5 KB)

Last edited by A.Madjid; 06-03-2011 at 17:14.
A.Madjid is offline
Send a message via Skype™ to A.Madjid
 



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


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