Snow

Snow 1.0.0

Нет прав для скачивания

NordicWarrior

Скриптер
Проверенный
Сообщения
44
Реакции
20
Помог
3 раз(а)
Баллы
8
NordicWarrior добавил(а) новый ресурс:

Snow - Простой плагин, добавляющий снег на сервер

Плагин добавляет снег и легкий туман на сервер.

Снег реализован через клиентскую часть Counter-Strike, что имеет как плюс, так и минус:
  • Плюс: плагин не даёт никакой нагрузки на сервер.
  • Минус: игроки могут отключать снег и туман у себя.
Видимость тумана регулируется клиентской командой gl_fog (0/1). Хотя он и так заметен только на очень большом расстоянии.
Видимость и интенсивность снега регулируется клиентской командой cl_weather (0/1/2/3...

Узнать больше об этом ресурсе...
 
@razex, by default, fog doesn't cover the skybox. Are you using a custom CS client?
 
@razex, by default, fog doesn't cover the skybox. Are you using a custom CS client?
To remove it from the sky, you need to use cl_fog_skybox 0 (sv_cheats 1) or make the density extremely low.
I have another problem as well, I tried changing the fog color on every round, but it didn't work.

This is my Plugin :

C-подобный:
#include <amxmodx>
#include <engine>
#include <reapi>

public plugin_init()
{
    register_plugin("Random Fog Color", "1.0", "Razex");
}

public plugin_precache()
{
    // Check if the map already has fog
    if (rg_find_ent_by_class(-1, "env_fog"))
        return;
    
    // Prepare random color
    new szColor[16];
    formatex(szColor, charsmax(szColor), "%d %d %d", random(128), random(128), random(128));
    
    new iEnt = rg_create_entity("env_fog", true);
    if (iEnt)
    {
        DispatchKeyValue(iEnt, "density", "0.0004");
        DispatchKeyValue(iEnt, "rendercolor", szColor);
        DispatchSpawn(iEnt);
    }
}
 
To remove it from the sky, you need to use cl_fog_skybox 0 (sv_cheats 1) or make the density extremely low.
As I mentioned above, this feature only works in the custom client. It is not available in the standard licensed Steam CS client.
I have another problem as well, I tried changing the fog color on every round, but it didn't work.
This is off-topic for this plugin.
 

Кто просматривает тему

Назад
Верх