AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to make snow in all maps (https://forums.alliedmods.net/showthread.php?t=174392)

sb123 12-19-2011 15:59

How to make snow in all maps
 
some maps can't sonw

like bloodstrike

How to make snow in all maps?

kramesa 12-19-2011 21:10

Re: How to make snow in all maps
 
This?

http://forums.alliedmods.net/showthread.php?p=735477

fysiks 12-19-2011 23:13

Re: How to make snow in all maps
 
It's not possible to create snow on the ground (that is hardcoded in to the map). It is possible to create falling snow. I'm guessing for the latter, you use create the env_snow entity. There are some weather plugins already so you should look at those to see how they are done.

@kramesa: He didn't ask for a mod.

DjOptimuS 12-19-2011 23:16

Re: How to make snow in all maps
 
add this into a plugin

PHP Code:

public plugin_precache()
{
    
engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_snow"));


and #include <fakemeta>

and there you go, you have snow falling. But the clients must have cl_weather 1 in order to see the snow falling.

kiki33hun 12-20-2011 02:44

Re: How to make snow in all maps
 
Engine:

PHP Code:

entity_create("env_snow"


sb123 12-21-2011 03:25

Re: How to make snow in all maps
 
PHP Code:

#include <amxmodx>
#include <fakemeta>

public plugin_precache()
{
    
register_plugin("Make Snow""0.1""connor")
    new 
iEnt engfunc(EngFunc_CreateEntityengfunc(EngFunc_AllocString"env_snow"))
    if( 
pev_valid(iEnt) )
    {
        
dllfunc(DLLFunc_SpawniEnt)
    }


some maps still can't snow


All times are GMT -4. The time now is 11:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.