Thread: [Subplugin Submission] [T] List of Modified + Requested Plugins
View Single Post
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-11-2014 , 22:41   Re: [ZP] List of Modified + Requested Plugin (2/9/2014)
Reply With Quote #134

New update!
Quote:
Addon: Random Lighting_v2
What new!

The map light will be changed into three states, Day, Evening and Midnigt. At every different lighting, the zombie will get different health multiply. This plugin is the modified version from this plugin: https://forums.alliedmods.net/showthread.php?t=163838

What can you edit:
PHP Code:
cvar_health_multi1 register_cvar("zp_zombie_health_multi""2.0"// The value of zombie health mutliply during night
cvar_health_multi2 register_cvar("zp_zombie_health_multi""0.5"// The value of zombie health mutliply during day
cvar_health_multi3 register_cvar("zp_zombie_health_multi""1.0"// The value of zombie health mutliply during evening 
Cons:
Quote:
The health multiply will only works if the player become a zombie before the light is changed. If the player is being infected after that, the zombie health will not be multiplied. ;)


Attached Files
File Type: sma Get Plugin or Get Source (random_lighting_v2.sma - 767 views - 3.0 KB)

Last edited by zmd94; 09-12-2014 at 23:20.
zmd94 is offline