Raised This Month: $ Target: $400
 0% 

[ZP] Zombie Class: Blinding Zombie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fiendshard
Senior Member
Join Date: Dec 2009
Location: In Water
Old 10-24-2010 , 20:59   [ZP] Zombie Class: Blinding Zombie
Reply With Quote #1

Another ZM class:

Blinding zombie


What is his ability:

If human gets him on the crosshair, human's screen will be filled with green blinding haze and will make zombie harder to hit.

Blinding haze lasts for a 1/2 second.
Attached Files
File Type: sma Get Plugin or Get Source (zp_extra_blinder.sma - 1925 views - 1.3 KB)
__________________

Last edited by fiendshard; 10-24-2010 at 21:07.
fiendshard is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 10-25-2010 , 00:58   Re: [ZP] Zombie Class: Blinding Zombie
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <zombieplague>

new const zclass_name[] = "Blinding Zombie"
new const zclass_info[] = "Blinding humans" 
new const zclass_model[] = "zombie_source" 
new const zclass_clawmodel[] = "v_knife_zombie.mdl" 
const zclass_health 1800 
const zclass_speed 200 
const Float:zclass_gravity 1.0 
const Float:zclass_knockback 1.0 

new g_blindergmsgFadecvar_fadecolorcvar_fadealphafadealpha

public plugin_init()
{
    
register_event("StatusValue""EventStatusValue""b""1>0""2>0" );
    
    
//                                               RRR, GGG, BBB format
    
cvar_fadecolor register_cvar("zp_blinding_color""10 150 10")
    
cvar_fadealpha register_cvar("zp_blinding_alpha""250")
    
    
gmsgFade get_user_msgid("ScreenFade")
}

public 
plugin_precache()
{
    
register_plugin("[ZP] Extra Class: Blinding Zombie""0.1""fiendshard")
    
g_blinder zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)    
}

public 
plugin_cfg()
{
    
fadealpha get_pcvar_num(cvar_fadealpha)
}

public 
EventStatusValue( const id 
{
    if(!
is_user_bot(id) && is_user_connected(id) && !zp_get_user_zombie(id))     
    {
        new 
blinder read_data(2)
        
        if(
zp_get_user_zombie_class(blinder) == g_blinder)
            
blind(id)
    }
}

public 
blind(id)
{
    new 
szColor[12], szRed[4], szGreen[4], szBlue[4]
    
get_pcvar_string(cvar_fadecolorszColor11)
    
parse(szColorszRed3szGreen3szBlue4)

    new 
iRed clamp(str_to_num(szRed), 0255)
    new 
iGreen clamp(str_to_num(szGreen), 0255)
    new 
iBlue clamp(str_to_num(szBlue) , 0255)
    
    
message_begin(MSG_ONE_UNRELIABLEgmsgFade, {000}, id)
    
write_short(1<<2// fade duration 
    
write_short(1<<11// fade hold time 
    
write_short(1<<12// fade type (in / out) 
    
write_byte(iRed//  red 
    
write_byte(iGreen//  green 
    
write_byte(iBlue// blue 
    
write_byte(fadealpha//  alpha 
    
message_end()

???
Excalibur.007 is offline
FeAr.1337
Senior Member
Join Date: Sep 2010
Old 10-25-2010 , 07:11   Re: [ZP] Zombie Class: Blinding Zombie
Reply With Quote #3

can u make zombie when human gets him on the crosshair it will be effect like concussion grenade plz
FeAr.1337 is offline
fiendshard
Senior Member
Join Date: Dec 2009
Location: In Water
Old 10-25-2010 , 08:01   Re: [ZP] Zombie Class: Blinding Zombie
Reply With Quote #4

Quote:
Originally Posted by FeAr.1337 View Post
can u make zombie when human gets him on the crosshair it will be effect like concussion grenade plz
Yeah, it is just what i planned
__________________
fiendshard is offline
FeAr.1337
Senior Member
Join Date: Sep 2010
Old 10-25-2010 , 08:17   Re: [ZP] Zombie Class: Blinding Zombie
Reply With Quote #5

tnx
FeAr.1337 is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-25-2010 , 08:25   Re: [ZP] Zombie Class: Blinding Zombie
Reply With Quote #6

Great Idea!
__________________
alan_el_more is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-03-2013 , 17:59   Re: [ZP] Zombie Class: Blinding Zombie
Reply With Quote #7

is there a way to make this plugin work on my server, without the zombie class? i mean, to make this screen fade to everyone all time, i plan to use this as a fog since advanced fog works just on opengl
Depresie 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 16:26.


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