Say commands : /players /water, to toggle players and water visibility
/invis to open menu with those 2 options in it.
Note that you can allow players to use weapons with this plugin because you don't hear them shooting or walking unless you are dead.
I highly recommand it on kz servers.
Spoiler
PHP Code:
#define SEMICLIP_RENDERING_RADIUS 400.0
// #define CHATCOLOR // if you are runing plugin : http://forums.alliedmods.net/showthread.php?p=851160
new const CLASS_PLAYER[] = "player";
new const CLASS_FUNC_WATER[] = "func_water";
new const CLASS_FUNC_ILLUSIONARY[] = "func_illusionary";
new const CLASS_FUNC_CONVEYOR[] = "func_conveyor";
new const CLASS_ENV_SPRITE[] = "env_sprite";
new const PATH_MODEL_XSMOKE1[] = "sprites/xsmoke1.spr";
public ClCmd_Invis(id)
{
set_pdata_int(id, m_iMenu, 0);
menu_display(id, g_iInvisMenu);
}
public ClCmd_Players(id)
{
TogglePlayerSeeing(id);
#if defined CHATCOLOR
client_print_color(id, Red, "^4[Invis] ^1Players are now %sisible.", IsPlayerSeeing(id) ? "^4V" :"^3Inv");
#else
client_print(id, print_chat, "[Invis] Players are now %sisible.", IsPlayerSeeing(id) ? "V" :"Inv");
#endif
}
public ClCmd_Water(id)
{
TogglePlayerHideWater(id);
#if defined CHATCOLOR
client_print_color(id, Red, "^4[Invis] ^1Water is now %sisible.", IsPlayerHidingWater(id) ? "^3Inv" : "^4V");
#else
client_print(id, print_chat, "[Invis] Water is now %sisible.", IsPlayerHidingWater(id) ? "V" :"Inv");
#endif
}
Edit 20may2013 : v0.3.3 fixed bugged /invis menu because of bugged menu_addtext native.
21may2013 : v0.3.31 little fix if player spawned furing pfnClientCommand.
// maybe this could be moved to first UpdateClientData ??
// in any ways, SV_Physics gonna be executed with clipping players
public server_frame()
{
g_iLastPlayerIndex = 0;
g_bReadPackets = false;
g_bClientMessages = false;
// maybe this could be moved to first UpdateClientData ??
// in any ways, SV_Physics gonna be executed with clipping players
public server_frame()
{
g_iLastPlayerIndex = 0;
g_bReadPackets = false;
g_bClientMessages = false;
Which one ? doors not opening or prediction making player feel a little block before they pass through each other ?
I haven't worked enough on rendering part, so i guess it is about prediction, if it is about doors, i'm affraid there is nothing i can do.
Which one ? doors not opening or prediction making player feel a little block before they pass through each other ?
I haven't worked enough on rendering part, so i guess it is about prediction, if it is about doors, i'm affraid there is nothing i can do.
It's not about the doors, it's about that you can't really walk into each other, you feel this little block, and even if its a little block, you can't stand in each other, when you go through someone you're getting kicked away up or back or idk where, but yeah, this little block, I gave you a link to my thread! you should have got that.
Connor, just don't even bother man, sorry but I had the unstuck plugin on my server, that when you get stuck you pop out, so, everytime I went through another players it kicked me back, it wasn't your plugin. It works great now, thanks...
hey connor,
I tried to put your kz semi clip in my surf server, but there are 2 problems:
1. you cant kill each other.
2. when you close to a player, he is almost looks invisible.
So i gut that this plugin is only for kz, but maybe you can add it so it will support games like surf ?
the semiclip should be on for every one, without those problems ^.