AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   snowing (https://forums.alliedmods.net/showthread.php?t=231674)

GhostMan 12-18-2013 10:24

snowing
 
Author doesn't help in official thread so i'm creating new one.

Problem is that it's snowing through glass. How to stop that? I want that it would snow only when there is no other textures above, just sky.

PHP Code:

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Winter Environment"
#define VERSION "2.0"
#define AUTHOR "Alka"

new g_iLedSprite;

public 
plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_message(SVC_TEMPENTITY"message_TempEntity");
}

public 
plugin_precache()
{
    
engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_snow"));
    
g_iLedSprite precache_model("sprites/ledglow.spr");
}

public 
message_TempEntity(msg_idmsg_destmsg_ent)
{
    if(
get_msg_arg_int(1) == TE_GLOWSPRITE)
    {
        if(
get_msg_arg_int(5) == g_iLedSprite)
            return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;



fysiks 12-18-2013 14:57

Re: snowing
 
Quote:

Originally Posted by GhostMan (Post 2073509)
Author doesn't help in official thread so i'm creating new one.

It's only been 5 days. This thread is considered a bump. You need to wait 14 days then you can bump that thread. If after another 14 days nobody helps you, then you can post a new thread.


All times are GMT -4. The time now is 20:39.

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