把地图亮度调成a,夜视仪效果完全没用,远处根本看不到!!
复制程式
stock set_user_nvision2(id, mode)
{
if (!is_user_connected(id)) return;
new alpha
if (mode) alpha = 70
else alpha = 0
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), _, id)
write_short(0) // duration
write_short(0) // hold time
write_short(0x0004) // fade type
// Nemesis / Madness / Spectator in nemesis round
if (g_nemesis[id] || (g_zombie[id] && g_nodamage[id]) || (!g_isalive[id] && g_nemround))
{
write_byte(get_pcvar_num(cvar_nemnvgcolor[0])) // r
write_byte(get_pcvar_num(cvar_nemnvgcolor[1])) // g
write_byte(get_pcvar_num(cvar_nemnvgcolor[2])) // b
}
// Human / Spectator in normal round
else if (g_zombie[id] || !g_isalive[id])
{
write_byte(get_pcvar_num(cvar_nvgcolor[0])) // r
write_byte(get_pcvar_num(cvar_nvgcolor[1])) // g
write_byte(get_pcvar_num(cvar_nvgcolor[2])) // b
}
// Zombie
else
{
write_byte(get_pcvar_num(cvar_humnvgcolor[0])) // r
write_byte(get_pcvar_num(cvar_humnvgcolor[1])) // g
write_byte(get_pcvar_num(cvar_humnvgcolor[2])) // b
}
write_byte(alpha) // alpha
message_end()
if(g_nvg[id])
{
set_player_light(id, "0")
}
else
{
static string[2]
get_pcvar_string(cvar_lighting, string, sizeof(string))
set_player_light(id, string)
}
}
stock set_player_light(id, const LightStyle[])
{
message_begin(MSG_ONE, SVC_LIGHTSTYLE, .player = id)
write_byte(0)
write_string(LightStyle)
message_end()}
以上为解决办法,会的自行修改,不会的那也没办法!