Quote:
Originally Posted by OciXCrom
If it wasn't, would I be writing this in a thread that says "OPTIMIZE PLUGIN"?
|
Wow, you are right. So can you give me some examples about using "stock bool or nothing"
For example;
First; there is anything tag of command. What if I add a tag (stock or public)
Second; there is stock and bool. What if I delete stock or bool?
Code:
rg_set_user_rendering(index, fx = kRenderFxNone, {Float,_}:color[3] = {0.0,0.0,0.0}, render = kRenderNormal, Float:amount = 0.0)
{
set_entvar(index, var_renderfx, fx);
set_entvar(index, var_rendercolor, color);
set_entvar(index, var_rendermode, render);
set_entvar(index, var_renderamt, amount);
}
stock bool:Stuck(index)
{
static Float:origin[3];
get_entvar(index, var_origin, origin);
engfunc(EngFunc_TraceHull, origin,origin, IGNORE_MONSTERS, get_entvar(index, var_flags) & FL_DUCKING ? HULL_HEAD : HULL_HUMAN, 0, 0);
return (get_tr2(0, TR_StartSolid)) ? true:false;
}
__________________