Raised This Month: $ Target: $400
 0% 

snowing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 12-18-2013 , 10:24   snowing
Reply With Quote #1

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;

GhostMan is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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