Raised This Month: $ Target: $400
 0% 

Biohazard v2.00 Beta 3b (Zombie Mod)


Post New Thread Reply   
 
Thread Tools Display Modes
Old 10-28-2008, 16:09
hectorz0r
This message has been deleted by hectorz0r. Reason: ...
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-29-2008 , 09:33   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2

hey , i had try to change the colors of smokes in Biohazard v2.00 Beta 3b, but ill become a error on compiler :

home/groups/amxmodx/tmp3/textduEII8.sma(6) : fatal error 110: assertion failed: Biohazard functions file required!

there is the code,i hope anyone can help me :



Code:
#include <amxmodx>
#include <fakemeta>
#tryinclude <biohazard>

#if !defined _biohazard_included
        #assert Biohazard functions file required!
#endif

#define pev_flare pev_iuser4
#define flare_id 1337
#define is_ent_flare(%1) (pev(%1, pev_flare) == flare_id) ? 1 : 0

new const g_flare_model[] = "models/w_flare.mdl"

new cvar_smokeflare, cvar_smokeflare_dur
public plugin_init()
{
    register_plugin("smoke flare", "0.1", "mini_midget/cheap_suit")
    is_biomod_active() ? plugin_init2() : pause("ad")
}

public plugin_precache() 
    precache_model(g_flare_model)

public plugin_init2()
{
    register_forward(FM_SetModel, "fwd_setmodel")    
    register_forward(FM_Think, "fwd_think")
    cvar_smokeflare = register_cvar("bh_flare_enable",   "1")
    cvar_smokeflare_dur = register_cvar("bh_flare_duration", "999.9")
}

public fwd_setmodel(ent, const model[]) 
{
    if(!pev_valid(ent) || !equal(model[9], "smokegrenade.mdl"))
        return FMRES_IGNORED
    
    static classname[32]; pev(ent, pev_classname, classname, 31)
    if(equal(classname, "grenade") && get_pcvar_num(cvar_smokeflare))
    {
        engfunc(EngFunc_SetModel, ent, g_flare_model)
        set_pev(ent, pev_effects, EF_BRIGHTLIGHT)
        set_pev(ent, pev_flare,   flare_id)
        set_pev(ent, pev_nextthink, get_gametime() + get_pcvar_float(cvar_smokeflare_dur))
        fm_set_rendering(ent, kRenderFxGlowShell, 150, 150, 250, kRenderNormal, 16)
        
        return FMRES_SUPERCEDE
    }
    return FMRES_IGNORED
}

public fwd_think(ent) if(pev_valid(ent) && is_ent_flare(ent))
    engfunc(EngFunc_RemoveEntity, ent)

stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16) 
{
    static Float:color[3]; color[2] = float(b), color[0] = float(r), color[1] = float(g)
    
    set_pev(entity, pev_renderfx, fx)
    set_pev(entity, pev_rendercolor, color)
    set_pev(entity, pev_rendermode,  render)
    set_pev(entity, pev_renderamt,   float(amount))

    return 1
}
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
marcellus
Senior Member
Join Date: Mar 2004
Old 10-29-2008 , 13:45   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3

Quote:
Originally Posted by farzad View Post
hey , i had try to change the colors of smokes in Biohazard v2.00 Beta 3b, but ill become a error on compiler :

home/groups/amxmodx/tmp3/textduEII8.sma(6) : fatal error 110: assertion failed: Biohazard functions file required!

there is the code,i hope anyone can help me :



Code:
#include <amxmodx>
#include <fakemeta>
#tryinclude <biohazard>

#if !defined _biohazard_included
        #assert Biohazard functions file required!
#endif

#define pev_flare pev_iuser4
#define flare_id 1337
#define is_ent_flare(%1) (pev(%1, pev_flare) == flare_id) ? 1 : 0

new const g_flare_model[] = "models/w_flare.mdl"

new cvar_smokeflare, cvar_smokeflare_dur
public plugin_init()
{
    register_plugin("smoke flare", "0.1", "mini_midget/cheap_suit")
    is_biomod_active() ? plugin_init2() : pause("ad")
}

public plugin_precache() 
    precache_model(g_flare_model)

public plugin_init2()
{
    register_forward(FM_SetModel, "fwd_setmodel")    
    register_forward(FM_Think, "fwd_think")
    cvar_smokeflare = register_cvar("bh_flare_enable",   "1")
    cvar_smokeflare_dur = register_cvar("bh_flare_duration", "999.9")
}

public fwd_setmodel(ent, const model[]) 
{
    if(!pev_valid(ent) || !equal(model[9], "smokegrenade.mdl"))
        return FMRES_IGNORED
    
    static classname[32]; pev(ent, pev_classname, classname, 31)
    if(equal(classname, "grenade") && get_pcvar_num(cvar_smokeflare))
    {
        engfunc(EngFunc_SetModel, ent, g_flare_model)
        set_pev(ent, pev_effects, EF_BRIGHTLIGHT)
        set_pev(ent, pev_flare,   flare_id)
        set_pev(ent, pev_nextthink, get_gametime() + get_pcvar_float(cvar_smokeflare_dur))
        fm_set_rendering(ent, kRenderFxGlowShell, 150, 150, 250, kRenderNormal, 16)
        
        return FMRES_SUPERCEDE
    }
    return FMRES_IGNORED
}

public fwd_think(ent) if(pev_valid(ent) && is_ent_flare(ent))
    engfunc(EngFunc_RemoveEntity, ent)

stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16) 
{
    static Float:color[3]; color[2] = float(b), color[0] = float(r), color[1] = float(g)
    
    set_pev(entity, pev_renderfx, fx)
    set_pev(entity, pev_rendercolor, color)
    set_pev(entity, pev_rendermode,  render)
    set_pev(entity, pev_renderamt,   float(amount))

    return 1
}
the biohazard.inc file is missing ?
__________________
www.war-cs.com
french cz community
marcellus is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-29-2008 , 14:45   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #4

Quote:
Originally Posted by marcellus View Post
the biohazard.inc file is missing ?

yea but how can i add the include ? i just edit the text & paste in in amx webcompiler and click on compile :-( how can i add this there? & wehere can i find the right include. is this the .inc file ? must i add all .inc text after this plugin & compile it ? sry but im a newbi
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-29-2008 , 14:17   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #5

Quote:
Originally Posted by hectorz0r View Post
I know dude, but i want the knife in 3rd person, not first...

[IMG]http://img227.**************/img227/4537/imagemii1.jpg[/IMG]
[IMG]http://img55.**************/img55/2189/imagemii0.jpg[/IMG]

Search in the biohazard.sma and see if you can find v_knife
Also the game you have above is CS:S, this is for HL1, games like counter-strike 1.6 and cz, not HL2 such as CS:S and Hl2: Deathmatch
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
hectorz0r
Senior Member
Join Date: Oct 2008
Old 10-29-2008 , 14:35   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #6

Quote:
Originally Posted by DruGzOG View Post
Search in the biohazard.sma and see if you can find v_knife
Also the game you have above is CS:S, this is for HL1, games like counter-strike 1.6 and cz, not HL2 such as CS:S and Hl2: Deathmatch
I know, its css zm, but for sure theres a way to fix knife for zombies with hl1 engine... i spread more than 2 days trying to fix it, looking over whole code of biohazard.sma, nothing work.

I still need help.

Last edited by hectorz0r; 06-29-2010 at 23:22.
hectorz0r 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:55.


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