///////////////////////////////////////////////////////////////////
// Light Grenade //
/////////////////////////////////////////////////////////////////
public fm_set_model(ent, model[])
{
if(!pev_valid(ent) || !is_user_alive(pev(ent, pev_owner)))
{
return FMRES_IGNORED
}
new Float: duration = 999.0
if(equali(model,"models/w_flashbang.mdl"))
{
new className[33]
pev(ent, pev_classname, className, 32)
set_pev(ent, pev_nextthink, get_gametime() + duration)
set_pev(ent,pev_effects,EF_BRIGHTLIGHT)
}
return FMRES_IGNORED
}
public fm_think(ent)
{
if(!pev_valid(ent) || !is_user_alive(pev(ent, pev_owner)))
{
return FMRES_IGNORED
}
static classname[33]
pev(ent, pev_classname, classname, sizeof classname - 1)
static model[33]
pev(ent, pev_model, model, sizeof model - 1)
if(equal(model, "models/w_flashbang.mdl") && equal(classname, "grenade"))
{
engfunc(EngFunc_RemoveEntity, ent)
}
return FMRES_IGNORED
}
Jak zmniejszyć pole oświetlane przez tą flarę?


Dodatki SourceMod



Temat jest zamknięty









