Raised This Month: $ Target: $400
 0% 

Smoke Silhouettes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Twelve-60
Senior Member
Join Date: Aug 2007
Old 04-01-2008 , 11:44   Smoke Silhouettes
Reply With Quote #1

Wondering if its possible to disable/remove the smoke 'silhouette' effect that allows players to see 1 way through smoke grenades.

Edit: CSS

Twelve-60
__________________

Last edited by Twelve-60; 04-01-2008 at 12:07.
Twelve-60 is offline
Twelve-60
Senior Member
Join Date: Aug 2007
Old 04-02-2008 , 14:34   Re: Smoke Silhouettes
Reply With Quote #2

Progress so far:

PHP Code:
public Action:Event_SmokeExplode(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
start GetMaxClients();
    new 
max_entities GetMaxEntities();
    for (new 
start 1<= max_entitiesi++)
    {
        if (!
IsValidEntity(i))
            return;
        
        new 
String:Classname[128];
        
GetEdictClassname(iClassnamesizeof(Classname));
        if(
StrEqual(Classname"env_particlesmokegrenade"))
        {
            
PrintToChatAll("Index Found: %d"i);
        }
    }

This will retrieve the ParticleSmokeGrenade entity, but I have no idea what to do with it

- Twelve-60
__________________

Last edited by Twelve-60; 04-02-2008 at 23:27.
Twelve-60 is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 04-02-2008 , 18:11   Re: Smoke Silhouettes
Reply With Quote #3

RemoveEdict()
bl4nk is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 04-02-2008 , 20:40   Re: Smoke Silhouettes
Reply With Quote #4

Do not put "GetMaxEntities()" on loops. First assign them to a variable, then use them.

What happens is that the "i <= GetMaxEntities()" is called until it returns false.

http://wiki.alliedmods.net/Optimizin...s_Save_Results
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
Twelve-60
Senior Member
Join Date: Aug 2007
Old 04-02-2008 , 23:26   Re: Smoke Silhouettes
Reply With Quote #5

Quote:
Originally Posted by bl4nk View Post
Well.. that removes the smoke cloud but I'm not sure why I would do that I just want to get rid of the silhouette effect... and yes ty Nican

- Twelve-60
__________________
Twelve-60 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 19:09.


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