Raised This Month: $32 Target: $400
 8% 

Hook env_particlesmokegrenade in CSGO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 08-25-2012 , 16:42   Hook env_particlesmokegrenade in CSGO
Reply With Quote #1

Dont work in CSGO, any other method for make this?

PHP Code:
public OnEntityCreated(entity, const String:classname[])
{
    if(
StrContains(classname"env_particlesmokegrenade") != -1)
    {
        
RemoveEdict(entity);
    }

Realy thanks.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM
rodrigo286 is offline
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 08-25-2012 , 16:52   Re: Hook env_particlesmokegrenade in CSGO
Reply With Quote #2

people need to realise that OnEntityCreated is a pre hook so its called before the entity is created, so that means you can/can't do certain things, thats what the spawn hook is for.
blodia is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 08-25-2012 , 17:27   Re: Hook env_particlesmokegrenade in CSGO
Reply With Quote #3

But this works perfectly in CSS, but in CSGO no:

DONT WORK IN CSGO, BUT WORK IN CSS
PHP Code:
public OnEntityCreated(entity, const String:classname[])
{
    if(
StrContains(classname"env_particlesmokegrenade") != -1)
    {
        
RemoveEdict(entity);
    }

WORK IN CSGO AND CSS
PHP Code:
public OnEntityCreated(entity, const String:classname[])
{
    if(
StrContains(classname"smokegrenade_projectile") != -1)
    {
        
BeamFollowCreate(entitySmokeColor);
    }

Regards.

#EDIT

PHP Code:
Class: ai_network (1)
Class: 
cs_gamerules (1)
Class: 
cs_player_manager (1)
Class: 
cs_team_manager (4)
Class: 
env_cascade_light (1)
Class: 
func_bomb_target (1)
Class: 
func_buyzone (3)
Class: 
info_player_counterterrorist (32)
Class: 
info_player_terrorist (32)
Class: 
info_target (1)
Class: 
player (1)
Class: 
predicted_viewmodel (1)
Class: 
prop_physics (58)
Class: 
prop_physics_multiplayer (4)
Class: 
scene_manager (1)
Class: 
smokegrenade_projectile (14)
Class: 
soundent (1)
Class: 
vote_controller (1)
Class: 
weapon_glock (1)
Class: 
weapon_knife (1)
Class: 
weapon_smokegrenade (29)
Class: 
worldspawn (1)
Total 190 entities (empty, 190 edicts
CSGO ENT LIST:
http://pastebin.com/cYbuXDnM

Anyone env_particlesmokegrenade ent on the list.

Regards.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM

Last edited by rodrigo286; 08-25-2012 at 19:12.
rodrigo286 is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 08-26-2012 , 21:08   Re: Hook env_particlesmokegrenade in CSGO
Reply With Quote #4

Please anyone can help me?

Regards.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM
rodrigo286 is offline
Zylius
SourceMod Donor
Join Date: Nov 2009
Old 08-27-2012 , 03:10   Re: Hook env_particlesmokegrenade in CSGO
Reply With Quote #5

env_particlesmokegrenade doesn't exist in CSGO. The smoke is a particle effect created client side.
Zylius is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 08-27-2012 , 06:15   Re: Hook env_particlesmokegrenade in CSGO
Reply With Quote #6

Any method for remove this particle?

Thanks.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM
rodrigo286 is offline
Zylius
SourceMod Donor
Join Date: Nov 2009
Old 08-27-2012 , 13:58   Re: Hook env_particlesmokegrenade in CSGO
Reply With Quote #7

Quote:
Originally Posted by rodrigo286 View Post
Any method for remove this particle?

Thanks.
You could use DHooks. But i don't know if it's a virtual function. Also you have to find it
Zylius 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 17:56.


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