Jump to content

Changing the direction of snow?


Go to solution Solved by Lazarus,

Recommended Posts

Posted

I'm trying to make snow on my map fall directly from the sky (without an angle in more or less direct line) but sadly it doesn't seem to work. I tried changing

  • the angle value of fx_snow entity,
  • the angle of entity itself,
  • also the angle value of outside brush.

Nothing has worked. Also noticed changing the count value of fx_snow for some reason doesn't change the number of snow particles as it's supposed to. Anyone know a way to change these?

  • 3 weeks later...
  • Solution
Posted

You need to change / create a new EFX file tied to the fx_snow, which i believe is snow.efx and supply that along your map with your custom efx (dont pin me on this, i am not sure in what way this will make snow behave completely over your whole game)

image.png.98e2287a11363f0a4a2bda82ea1e822c.png

 

the efx file constains the things you wanna change, like density, velocity, etc. even you can make your snow yellow if you wish 😉

image.png.e8a13c0af69c9c0e757f44d6e0e573d6.png

so the file would look like this (copy it over and have fun with it)

 

// File: fx/snow/custom_snow.efx

fx
{
    effect
    {
        // how often to spawn
        count       300

        // where the snow emits from (box volume)
        origin      random -512 512 -512 512 0 0

        // how long each flake lasts (in seconds)
        life        random 4.0 6.0

        // flake size (start to end size)
        size        random 1.5 2.5  random 1.5 2.5

        // speed and direction
        velocity    random -5 5  -50 -60  random -5 5

        // appearance (white circle or glow)
        shader      gfx/misc/snowflake

        // transparency settings
        alpha       0.9
        alphafade   yes

        // lighting (off = not affected by light)
        light       no

        // gravity effect
        gravity     1.0

        // wind variation (optional)
        wind        1.5

        // looping effect
        type        particle
    }
}

 

Posted
On 5/8/2025 at 10:04 PM, Lazarus said:

You need to change / create a new EFX file tied to the fx_snow, which i believe is snow.efx and supply that along your map with your custom efx (dont pin me on this, i am not sure in what way this will make snow behave completely over your whole game)

image.png.98e2287a11363f0a4a2bda82ea1e822c.png

 

the efx file constains the things you wanna change, like density, velocity, etc. even you can make your snow yellow if you wish 😉

image.png.e8a13c0af69c9c0e757f44d6e0e573d6.png

so the file would look like this (copy it over and have fun with it)

 

// File: fx/snow/custom_snow.efx

fx
{
    effect
    {
        // how often to spawn
        count       300

        // where the snow emits from (box volume)
        origin      random -512 512 -512 512 0 0

        // how long each flake lasts (in seconds)
        life        random 4.0 6.0

        // flake size (start to end size)
        size        random 1.5 2.5  random 1.5 2.5

        // speed and direction
        velocity    random -5 5  -50 -60  random -5 5

        // appearance (white circle or glow)
        shader      gfx/misc/snowflake

        // transparency settings
        alpha       0.9
        alphafade   yes

        // lighting (off = not affected by light)
        light       no

        // gravity effect
        gravity     1.0

        // wind variation (optional)
        wind        1.5

        // looping effect
        type        particle
    }
}

 

Sadly this won't work for me since I'm making a multiplayer map and i guess this will mess up the snow effect on other maps for others as well. Thanks for help anyway.

Posted

Doesn't have to. If you use a custom efx file, it wont overwrite the original, just access yours when you load your pk3 file. It's worth a shot.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...