Raised This Month: $ Target: $400
 0% 

[help] How to add aura in certain zombie classes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[-X-ViSi0N]
Member
Join Date: Jul 2009
Old 07-19-2009 , 23:34   [help] How to add aura in certain zombie classes
Reply With Quote #1

I notice that Zombie Rage and Crow Zombie has an aura around his body
Zombie rage - Green
Crow zombie - Red


How to add an aura (Not glowing) to certain zombie classes?, because one of my zombie class is powerful, and I want that class to have an aura covering his body to make it more visible in dark so people will shoot it before it come to you...

Help please
[-X-ViSi0N] is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 07-20-2009 , 00:18   Re: [help] How to add aura in certain zombie classes
Reply With Quote #2

post the zm class here and i'll modify it
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
[-X-ViSi0N]
Member
Join Date: Jul 2009
Old 07-20-2009 , 01:52   Re: [help] How to add aura in certain zombie classes
Reply With Quote #3

PHP Code:
#include <amxmodx> 
#include <zombieplague>
#include <fakemeta>
#include <engine>
#include <fun>

#define PLUGINNAME        "^x04[ZP]^x01 Class Boomer"
#define VERSION           "1.2.2"
#define AUTHOR            "tii"

new g_zclass_boomer,  g_maxplayers
spr_smoke_steam1,cvar_max_damage,cvar_damage_radius,mdl_gib_legbone,
mdl_gib_flesh,mdl_gib_meat,mdl_gib_head,spr_blood_drop,spr_blood_spray
new bool:lamuerteexplosiva[33] = false

new g_sndExplode[] = "weapons/c4_explode1.wav"
new spr_zerogxplode
new gmsgDeathMsg,gmsgScoreInfo,mdl_gib_lung,mdl_gib_spine

new const zclass_name[] = { "Boomer" }
new const 
zclass_info[] = { "Explode after die" }
new const 
zclass_model[] = { "zboomer" }
new const 
zclass_clawmodel[] = { "v_knife_zombie.mdl" }
const 
zclass_health 2020
const zclass_speed 200
const Float:zclass_gravity 1.0
const Float:zclass_knockback 0.2

public plugin_init(){  
    
register_plugin(PLUGINNAMEVERSIONAUTHOR)
    
register_event("DeathMsg""boomer_death""a")
    
cvar_max_damage register_cvar("zp_bomer_maxdmg","200")
    
cvar_damage_radius register_cvar("zp_bomer_raius","350")
    
g_maxplayers get_maxplayers() 
    
gmsgDeathMsg get_user_msgid("DeathMsg")
    
gmsgScoreInfo get_user_msgid("ScoreInfo")
}

public 
plugin_precache() 
{
    
g_zclass_boomer zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)    
    
mdl_gib_lung precache_model("models/GIB_Lung.mdl")
    
mdl_gib_meat precache_model("models/GIB_B_Gib.mdl")
    
mdl_gib_head precache_model("models/GIB_Skull.mdl")
    
mdl_gib_flesh precache_model("models/Fleshgibs.mdl")
    
mdl_gib_spine precache_model("models/GIB_B_Bone.mdl")
    
mdl_gib_legbone precache_model("models/GIB_Legbone.mdl")
    
precache_sound("weapons/mortarhit.wav")
    
spr_blood_drop precache_model("sprites/blood.spr")
    
spr_blood_spray precache_model("sprites/bloodspray.spr")
    
spr_zerogxplode precache_model("sprites/zerogxplode.spr")
    
spr_smoke_steam1 precache_model("sprites/steam1.spr")
    
precache_sound(g_sndExplode
    
spr_zerogxplode precache_model("sprites/zerogxplode.spr")
    
precache_model("models/w_egon.mdl")


public 
zp_user_infected_post(playerinfector)
{
    if (
zp_get_user_zombie_class(player) == g_zclass_boomer) {
        
lamuerteexplosiva[player] = true
        client_print
(playerprint_chat"^x04[ZP]^x01 Explode after die!"
    }


public 
zp_user_humanized_post(player)
{
    
lamuerteexplosiva[player] = false
}

public 
boomer_death() { 
    new 
attacker read_data(1)
    new 
victim read_data(2)
    if(
lamuerteexplosiva[victim]) { 
        static 
victim_name[33]
        static 
attacker_name[33]
        
get_user_name(victimvictim_namesizeof victim_name -1)
        
get_user_name(attackerattacker_namesizeof attacker_name -1)
        new 
Float:origin[3], origin2[3]
        
entity_get_vector(victim,EV_VEC_origin,origin)
        
origin2[0] = floatround(origin[0])
        
origin2[1] = floatround(origin[1])
        
origin2[2] = floatround(origin[2]) 
        for (new 
id2id2 <= g_maxplayersid2++)
        {
            if (
zp_get_user_zombie_class(id2) == g_zclass_boomer && zp_get_user_zombie(id2) && !zp_get_user_nemesis(id2))
            {  
                
emit_sound(victimCHAN_WEAPON"weapons/mortarhit.wav"1.00.50PITCH_NORM)
                
emit_sound(victimCHAN_VOICE"weapons/mortarhit.wav"1.00.50PITCH_NORM
                
                for (new 
18e++) {
                    
// Random Explosion 8 Times
                    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
                    
write_byte(TE_SPRITE)
                    
write_coord(origin2[0] + random_num(-60,60))
                    
write_coord(origin2[1] + random_num(-60,60))
                    
write_coord(origin2[2] +128)
                    
write_short(spr_zerogxplode)
                    
write_byte(random_num(30,65))
                    
write_byte(255)
                    
message_end()
                    
                }

                for (new 
13e++) {
                    
// Random Smoke 3 Times
                    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
                    
write_byte(TE_SMOKE)
                    
write_coord(origin2[0])
                    
write_coord(origin2[1])
                    
write_coord(origin2[2] + 256)
                    
write_short(spr_smoke_steam1)
                    
write_byte(random_num(80,150))
                    
write_byte(random_num(5,10))
                    
message_end()
                }
                
                
// Create the burn decal
                
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
                
write_byte(TE_GUNSHOTDECAL)
                
write_coord(origin2[0])
                
write_coord(origin2[1])
                
write_coord(origin2[2])
                
write_short(0)            
                
write_byte(random_num(46,48))  // decal
                
message_end()

                new 
Max_Damage get_pcvar_num(cvar_max_damage)
                new 
Damage_Radius get_pcvar_num(cvar_damage_radius)  
                new 
PlayerPos[3], DistanceDamage
                
for (new 132i++) {
                    if (
is_user_alive(i) == 1) {
                        
get_user_origin(iPlayerPos)
                        
Distance get_distance(PlayerPosorigin2)
                        if (
Distance <= Damage_Radius) {  // Screenshake Radius
                            
                            
message_begin(MSG_ONEget_user_msgid("ScreenShake"), {0,0,0}, i)  // Shake Screen
                            
write_short(1<<14)
                            
write_short(1<<14)
                            
write_short(1<<14)
                            
message_end()

                            
Damage Max_Damage floatround(floatmul(float(Max_Damage), floatdiv(float(Distance), float(Damage_Radius))))
                            
//if(!zp_get_user_zombie(id2) && !zp_get_user_nemesis(id2))
                            
do_victim(i,victim,Damage,0)
                        }
                        
                    }
                    
                }
            }
        }
        
lamuerteexplosiva[victim] = false
    
}
}

public 
do_victim (victim,attacker,Damage,team_kill) {

    new 
namek[32],namev[32],authida[35],authidv[35],teama[32],teamv[32]

    
get_user_name(victim,namev,31)
    
get_user_name(attacker,namek,31)
    
get_user_authid(victim,authidv,34)
    
get_user_authid(attacker,authida,34)
    
get_user_team(victim,teamv,31)
    
get_user_team(attacker,teama,31)

    if(
Damage >= get_user_health(victim)) {

        if(
get_cvar_num("mp_logdetail") == 3) {
            
            
log_message("^"%s<%d><%s><%s>^" attacked ^"%s<%d><%s><%s>^" with ^"bomber^" (hit ^"chest^") (Damage ^"%d^") (health ^"0^")",
            
namek,get_user_userid(attacker),authida,teama,namev,get_user_userid(victim),authidv,teamv,Damage)
        
        }

        
client_print(attacker,print_chat,"[AMXX] You killed %s with that bomber",namev)
        
client_print(victim,print_chat,"[AMXX] You were killed by %s's bomber",namek)

        if(
team_kill == 0) {
            
            
set_user_frags(attacker,get_user_frags(attacker) + )
        
        }
        
        
set_msg_block(gmsgDeathMsg,BLOCK_ONCE)
        
set_msg_block(gmsgScoreInfo,BLOCK_ONCE)

        
user_kill(victim,1)

        
replace_dm(attacker,victim,0)

        
log_message("^"%s<%d><%s><%s>^" killed ^"%s<%d><%s><%s>^" with ^"bomber^"",
        
namek,get_user_userid(attacker),authida,teama,namev,get_user_userid(victim),authidv,teamv)

        if (
Damage 100) {
                                    
            new 
iOrigin[3]
            
get_user_origin(victim,iOrigin)
            
set_user_rendering(victim,kRenderFxNone,0,0,0,kRenderTransAlpha,0)
            
fx_gib_explode(iOrigin,3)
            
fx_blood_large(iOrigin,5)
            
fx_blood_small(iOrigin,15)
            
iOrigin[2] = iOrigin[2] - 20
            set_user_origin
(victim,iOrigin)

        }
        
    }

    else {
        
set_user_health(victim,get_user_health(victim) - Damage )

        if(
get_cvar_num("mp_logdetail") == 3) {
            
            
log_message("^"%s<%d><%s><%s>^" attacked ^"%s<%d><%s><%s>^" with ^"bomber^" (hit ^"chest^") (Damage ^"%d^") (health ^"%d^")",
            
namek,get_user_userid(attacker),authida,teama,namev,get_user_userid(victim),authidv,teamv,Damage,get_user_health(victim))
        
        }

        
client_print(attacker,print_chat,"[AMXX] You hurt %s with that bomber",namev)
        
client_print(victim,print_chat,"[AMXX] You were hurt by %s's bomber",namek)

    }
    
}

public 
client_disconnect(id
{
    
lamuerteexplosiva[id] = false
}  

public 
client_putinserver(id
{
    
lamuerteexplosiva[id] = false
}  

public 
replace_dm (id,tid,tbody) {

    
//Update killers scorboard with new info
    
message_begin(MSG_ALL,gmsgScoreInfo)
    
write_byte(id)
    
write_short(get_user_frags(id))
    
write_short(get_user_deaths(id))
    
write_short(0)
    
write_short(get_user_team(id))
    
message_end()

    
//Update victims scoreboard with correct info
    
message_begin(MSG_ALL,gmsgScoreInfo)
    
write_byte(tid)
    
write_short(get_user_frags(tid))
    
write_short(get_user_deaths(tid))
    
write_short(0)
    
write_short(get_user_team(tid))
    
message_end()

    
//Headshot Kill
    
if (tbody == 1) {

        
message_beginMSG_ALLgmsgDeathMsg,{0,0,0},0)
        
write_byte(id)
        
write_byte(tid)
        
write_string(" missile")
        
message_end()
        
    }

    
//Normal Kill
    
else {
        
        
message_beginMSG_ALLgmsgDeathMsg,{0,0,0},0)
        
write_byte(id)
        
write_byte(tid)
        
write_byte(0)
        
write_string("missile")
        
message_end()
        
    }

    return 
PLUGIN_CONTINUE
    
}
static 
fx_blood_small (origin[3],num) {
    
    
// Small splash
    
for (new 0numj++) {
        
        
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
        
write_byte(TE_WORLDDECAL)
        
write_coord(origin[0]+random_num(-100,100))
        
write_coord(origin[1]+random_num(-100,100))
        
write_coord(origin[2]-36)
        
        
write_byte(random_num(190,197)) // Blood decals

        
message_end()
        
    }
    
}

static 
fx_blood_large (origin[3],num) {
    
    
// Large splash
    
for (new 0numi++) {
        
        
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
        
write_byte(TE_WORLDDECAL)
        
write_coord(origin[0] + random_num(-50,50))
        
write_coord(origin[1] + random_num(-50,50))
        
write_coord(origin[2]-36)

        
write_byte(random_num(204,205)) // Blood decals
        
        
message_end()
        
    }
    
}

static 
fx_gib_explode (origin[3],num) {
    
    new 
flesh[3], xyz
    flesh
[0] = mdl_gib_flesh
    flesh
[1] = mdl_gib_meat
    flesh
[2] = mdl_gib_legbone
    
    
// Gib explosion
    // Head
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
    
write_byte(TE_MODEL)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(random_num(-100,100))
    
write_coord(random_num(-100,100))
    
write_coord(random_num(100,200))
    
write_angle(random_num(0,360))
    
write_short(mdl_gib_head)
    
write_byte(0)
    
write_byte(500)
    
message_end()
    
    
// Spine
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
    
write_byte(TE_MODEL)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(random_num(-100,100))
    
write_coord(random_num(-100,100))
    
write_coord(random_num(100,200))
    
write_angle(random_num(0,360))
    
write_short(mdl_gib_spine)
    
write_byte(0)
    
write_byte(500)
    
message_end()
    
    
// Lung
    
for(new 0random_num(1,2); i++) {
        
        
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
        
write_byte(TE_MODEL)
        
write_coord(origin[0])
        
write_coord(origin[1])
        
write_coord(origin[2])
        
write_coord(random_num(-100,100))
        
write_coord(random_num(-100,100))
        
write_coord(random_num(100,200))
        
write_angle(random_num(0,360))
        
write_short(mdl_gib_lung)
        
write_byte(0)
        
write_byte(500)
        
message_end()
        
    }
    
    
// Parts, 5 times
    
for(new 05i++) {
        
        
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
        
write_byte(TE_MODEL)
        
write_coord(origin[0])
        
write_coord(origin[1])
        
write_coord(origin[2])
        
write_coord(random_num(-100,100))
        
write_coord(random_num(-100,100))
        
write_coord(random_num(100,200))
        
write_angle(random_num(0,360))
        
write_short(flesh[random_num(0,2)])
        
write_byte(0)
        
write_byte(500)
        
message_end()
        
    }
    
    
// Blood
    
for(new 0numi++) {
        
        
random_num(-100,100)
        
random_num(-100,100)
        
random_num(0,100)
        
        for(new 
05j++) {
            
            
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
            
write_byte(TE_BLOODSPRITE)
            
write_coord(origin[0]+(x*j))
            
write_coord(origin[1]+(y*j))
            
write_coord(origin[2]+(z*j))
            
write_short(spr_blood_spray)
            
write_short(spr_blood_drop)
            
write_byte(248)
            
write_byte(15)
            
message_end()
            
        }
        
    }
    


Last edited by [-X-ViSi0N]; 07-20-2009 at 04:52.
[-X-ViSi0N] is offline
Lonely2oo9
Junior Member
Join Date: Jun 2009
Old 07-20-2009 , 04:05   Re: [help] How to add aura in certain zombie classes
Reply With Quote #4

ohhh.....Why has not issued in php a code???? = (
Lonely2oo9 is offline
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 07-20-2009 , 04:40   Re: [help] How to add aura in certain zombie classes
Reply With Quote #5

Put [PHP] or [QUOTE],I can't see anything ..
__________________
5c0r-|3i0 is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 07-20-2009 , 10:22   Re: [help] How to add aura in certain zombie classes
Reply With Quote #6

please put it as an attatchement this messes up the lines
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
TheKidz
Senior Member
Join Date: May 2009
Old 07-20-2009 , 11:32   Re: [help] How to add aura in certain zombie classes
Reply With Quote #7

aura plugin by: Zombie Lurker
i just put then together
didnt tested
Attached Files
File Type: sma Get Plugin or Get Source (zp_zclass_boomer.sma - 506 views - 14.6 KB)
__________________
TheKidz 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 20:11.


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