Bug when switching camera on first mode

Сообщения
125
Реакции
50
H guys, you probably know about this bug, i have a pub server 5 x 5 with first view of teammates only with sv_alltalk 2 like csgo, the problem is, when you are dead, you switch camera on players on your team fast, sometimes you can see where the enemy is, and since you can talk with them while dead is bad since you can tell where the enimy is, is there any way to fix this?
 
Сообщения
2,751
Реакции
3,017
Помог
61 раз(а)
perforator вроде бы копал в эту сторону. (При быстром переключении между игроками в режиме наблюдателя - видно где находится противник)
 
Сообщения
187
Реакции
319
Помог
1 раз(а)
tarsisd2,
Код:
#include <amxmodx>

#define PLUGIN "smoothtime_fix"
#define VERSION "0.1.1"
#define AUTHOR "perf"

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR);
    register_event("SpecHealth2","spec_target","bd");
}

public spec_target(id)
{
    if(is_user_steam(id))
        send_director_cmd(id, "cl_smoothtime 0");
    else
        client_cmd(id, "cl_smoothtime 0");
}

stock send_director_cmd(id , text[])
{
    message_begin( MSG_ONE, SVC_DIRECTOR, _, id );
    write_byte( strlen(text) + 2 );
    write_byte( 10 );
    write_string( text );
    message_end();
}

stock bool:is_user_steam(id)
{
// Author Sh0oter
    static dp_pointer
    if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider")))
    {
        server_cmd("dp_clientinfo %d", id)
        server_exec()
        return (get_pcvar_num(dp_pointer) == 2) ? true : false
    }
    return false
}
 
Сообщения
86
Реакции
2
perforator Hi. I've tested this plugin right now and it's doesn't work anymore... If the players have cl_filterstuffcmd 1 this plugin is useless and they can still "practice" this bug. Any idea how to fix this bug?
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу