Raised This Month: $ Target: $400
 0% 

Removing env_snow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 08-20-2009 , 22:30   Removing env_snow
Reply With Quote #1

I tried removing env_snow with fm_remove_entity, but the snow still stays.


Is it even possible to do this?
VMAN is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-20-2009 , 22:44   Re: Removing env_snow
Reply With Quote #2

Try this

Code:
#include < amxmodx > #include < fakemeta > public plugin_precache( ) {     register_forward( FM_Spawn, "FwdSpawn" ); } public FwdSpawn( iEntity ) {     if( pev_valid( iEntity ) )     {         static szClassname[ 32 ];         pev( iEntity, pev_classname, szClassname, 31 );                 if( equal( szClassname, "env_snow" ) )         {             engfunc( EngFunc_RemoveEntity, iEntity );             return FMRES_SUPERCEDE;         }     }         return FMRES_IGNORED; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 08-20-2009 , 22:46   Re: Removing env_snow
Reply With Quote #3

If Exolent's method doesn't work, I think your best bet is to modify a bunch of pev data on it, piece by piece, and see if you can get any change, or even going as far as to messing with pdata. I know I've gotten some strange results on entities by modifying this stuff.

In fact, a func_door will turn invisible (but will still be solid and make noise) when you set pev_iuser4 to anything other than zero. Try that one first.
__________________
Bad_Bud is offline
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 08-20-2009 , 22:58   Re: Removing env_snow
Reply With Quote #4

Exolent's method worked perfectly.


Thank you both
VMAN is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-21-2009 , 04:15   Re: Removing env_snow
Reply With Quote #5

If you dont want to hook spawn, you can use

remove_entity_name( "env_snow" );
in plugin_init
__________________
xPaw is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 08-21-2009 , 09:40   Re: Removing env_snow
Reply With Quote #6

PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init()
{
    
register_plugin"""""" );
    
    new 
Entity = -1;
    
    while ( ( 
Entity find_ent_by_classEntity"env_snow" ) ) )
    {
        
remove_entityEntity );
    }

by arkshine.
KadiR 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 15:10.


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