Sry bumb this but, want mention that I found very funny
renderFX mode
The bug is maybe this kind.
PHP Code:
SetEntityRenderFx(client, RenderFx:23);
or same as
PHP Code:
SetEntityRenderFx(client, RENDERFX_RAGDOLL);
When you set this on player, player model
freeze in place and move normally,
not walk or run.
Actually player itself play normally and run on map, but his model not.
Looks funny when try shoot that model and player itself is somewhere else in invisible.
I have tested only bots and it works but when you set yourself, you not see it.
I go try now real players
*edit
Heha, it works
Here plugin if want playe RenderMode and RenderModeFX
Then make fun to other players,
bind v "sm_renderfx @me 23"
bind h "sm_renderfx @me 0"
Code:
alias fake "fake_on"
alias fake_on "sm_renderfx @me 23; alias fake fake_off"
alias fake_off "sm_renderfx @me 0; alias fake fake_on"
bind v "fake"
You not see your model standing like other players when hit v-button,
with h-button v-button again you get model in right place.
*script what make
toggle button to v-letter
PHP Code:
public OnPluginStart()
{
RegAdminCmd("sm_renderfx", admincmd_render, ADMFLAG_SLAY, "Set RenderFX mode on player");
RegAdminCmd("sm_render", admincmd_render, ADMFLAG_SLAY, "Set Render mode on player");
LoadTranslations("common.phrases");
}
public Action:admincmd_render(client, args)
{
decl bool:render, String:arg[65];
GetCmdArg(0, arg, sizeof(arg));
render = StrEqual(arg, "sm_render");
if (args < 2)
{
if(render)
{
ReplyToCommand(client, "[SM] Usage: %s <#userid|name> [value]\n0 = RENDER_NORMAL\n1 = RENDER_TRANSCOLOR\n2 = RENDER_TRANSTEXTURE\n3 = RENDER_GLOW\n4 = RENDER_TRANSALPHA\n5 = RENDER_TRANSADD\n6 = RENDER_ENVIRONMENTAL\n7 = RENDER_TRANSADDFRAMEBLEND\n8 = RENDER_TRANSALPHAADD\n9 = RENDER_WORLDGLOW\n10 = RENDER_NONE", arg);
}
else
{
ReplyToCommand(client, "[SM] Usage: %s <#userid|name> [value]\n0 = RENDERFX_NONE\n 1 = RENDERFX_PULSE_SLOW\n 2 = RENDERFX_PULSE_FAST\n 3 = RENDERFX_PULSE_SLOW_WIDE\n 4 = RENDERFX_PULSE_FAST_WIDE\n 5 = RENDERFX_FADE_SLOW\n 6 = RENDERFX_FADE_FAST\n 7 = RENDERFX_SOLID_SLOW\n 8 = RENDERFX_SOLID_FAST\n 9 = RENDERFX_STROBE_SLOW\n 10 = RENDERFX_STROBE_FAST\n 11 = RENDERFX_STROBE_FASTER\n 12 = RENDERFX_FLICKER_SLOW\n 13 = RENDERFX_FLICKER_FAST\n 14 = RENDERFX_NO_DISSIPATION\n 15 = RENDERFX_DISTORT\n 16 = RENDERFX_HOLOGRAM\n 17 = RENDERFX_EXPLODE\n 18 = RENDERFX_GLOWSHELL\n 19 = RENDERFX_CLAMP_MIN_SCALE\n 20 = RENDERFX_ENV_RAIN\n 21 = RENDERFX_ENV_SNOW\n 22 = RENDERFX_SPOTLIGHT\n 23 = RENDERFX_RAGDOLL\n 24 = RENDERFX_PULSE_FAST_WIDER\n 25 = RENDERFX_MAX", arg);
}
return Plugin_Handled;
}
GetCmdArg(2, arg, sizeof(arg));
new value = StringToInt(arg);
if(render && (value < 0 || value > 10))
{
ReplyToCommand(client, "[SM] INVALID amount\n0 = RENDER_NORMAL\n1 = RENDER_TRANSCOLOR\n2 = RENDER_TRANSTEXTURE\n3 = RENDER_GLOW\n4 = RENDER_TRANSALPHA\n5 = RENDER_TRANSADD\n6 = RENDER_ENVIRONMENTAL\n7 = RENDER_TRANSADDFRAMEBLEND\n8 = RENDER_TRANSALPHAADD\n9 = RENDER_WORLDGLOW\n10 = RENDER_NONE");
return Plugin_Handled;
}
else if(!render && (value < 0 || value > 25))
{
ReplyToCommand(client, "[SM] INVALID amount\n0 = RENDERFX_NONE\n 1 = RENDERFX_PULSE_SLOW\n 2 = RENDERFX_PULSE_FAST\n 3 = RENDERFX_PULSE_SLOW_WIDE\n 4 = RENDERFX_PULSE_FAST_WIDE\n 5 = RENDERFX_FADE_SLOW\n 6 = RENDERFX_FADE_FAST\n 7 = RENDERFX_SOLID_SLOW\n 8 = RENDERFX_SOLID_FAST\n 9 = RENDERFX_STROBE_SLOW\n 10 = RENDERFX_STROBE_FAST\n 11 = RENDERFX_STROBE_FASTER\n 12 = RENDERFX_FLICKER_SLOW\n 13 = RENDERFX_FLICKER_FAST\n 14 = RENDERFX_NO_DISSIPATION\n 15 = RENDERFX_DISTORT\n 16 = RENDERFX_HOLOGRAM\n 17 = RENDERFX_EXPLODE\n 18 = RENDERFX_GLOWSHELL\n 19 = RENDERFX_CLAMP_MIN_SCALE\n 20 = RENDERFX_ENV_RAIN\n 21 = RENDERFX_ENV_SNOW\n 22 = RENDERFX_SPOTLIGHT\n 23 = RENDERFX_RAGDOLL\n 24 = RENDERFX_PULSE_FAST_WIDER\n 25 = RENDERFX_MAX");
return Plugin_Handled;
}
GetCmdArg(1, arg, sizeof(arg));
decl String:target_name[MAX_TARGET_LENGTH];
decl target_list[MAXPLAYERS], target_count, bool:tn_is_ml;
if ((target_count = ProcessTargetString(
arg,
client,
target_list,
MAXPLAYERS,
COMMAND_FILTER_CONNECTED,
target_name,
sizeof(target_name),
tn_is_ml)) <= 0)
{
ReplyToTargetError(client, target_count);
return Plugin_Handled;
}
decl temp;
for (new i = 0; i < target_count; i++)
{
temp = target_list[i];
render ? (SetEntityRenderMode(temp, RenderMode:value)):(SetEntityRenderFx(temp, RenderFx:value));
ShowActivity2(client, "[SM] ", "%s %N value %i", render ? "Render":"RenderFX", temp, value);
}
return Plugin_Handled;
}