Raised This Month: $ Target: $400
 0% 

snowing


Post New Thread Reply   
 
Thread Tools Display Modes
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
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-18-2013 , 14:57   Re: snowing
Reply With Quote #2

Quote:
Originally Posted by GhostMan View Post
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.
__________________

Last edited by fysiks; 12-18-2013 at 14:58.
fysiks is offline
Reply



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