Цитата:
You can change base classes (entites). I mean that CRpgRocket is derived from CGrenade and you can't change that. Also you can't make so that CGauss to be derived from CGrenade.
i create new classname! according to what I understood from your answer:
Код:
public plugin_precache()
{
register_forward(FM_Spawn, "fw_Spawn")
}
public fw_Spawn(iEntity)
{
if(!pev_valid(iEntity))
return FMRES_IGNORED
static ClassName[32]
pev(iEntity, pev_classname, ClassName, charsmax(ClassName))
if(equal(ClassName, "nuke"))
{
remove_entity( iEntity );
static NewEntity
NewEntity = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "rpg_rocket"))
dllfunc(DLLFunc_Spawn, NewEntity)
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
Lev писал(а):
But I suppose you again asked a wrong question.
I'm trying to rounding