Raised This Month: $12 Target: $400
 3% 

[CS:GO] How to use custom effects?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 11-06-2019 , 14:13   [CS:GO] How to use custom effects?
Reply With Quote #1

https://thumbs.gfycat.com/Incompatib...rel-mobile.mp4
Is there any way I can use this?

Here is an old snippet that I think would be usefull, what do y'all think?
PHP Code:
void CreateParticle(char[] szNamefloat pDmgPos[3])
{
    static 
int iEntity;

    
iEntity CreateEntityByName("info_particle_system");

    if (
iEntity != INVALID_ENT_REFERENCE && IsValidEdict(iEntity) && IsValidEntity(iEntity))
    {
        
pDmgPos[0] += GetRandomFloat(-3.03.0);
        
pDmgPos[1] += GetRandomFloat(-3.03.0);
        
pDmgPos[2] += GetRandomFloat(-3.03.0);
        
        
TeleportEntity(iEntitypDmgPosNULL_VECTORNULL_VECTOR);

        
DispatchKeyValue(iEntity"effect_name"szName);
        
DispatchSpawn(iEntity);
        
ActivateEntity(iEntity);
        
AcceptEntityInput(iEntity"Start");

        
CreateTimer(1.0Timer_DeleteiEntityTIMER_FLAG_NO_MAPCHANGE);
    }

__________________
kratoss1812 is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 11-07-2019 , 03:49   Re: [CS:GO] How to use custom effects?
Reply With Quote #2

Quote:
Originally Posted by kratoss1812 View Post
https://thumbs.gfycat.com/Incompatib...rel-mobile.mp4
Is there any way I can use this?

Here is an old snippet that I think would be usefull, what do y'all think?
PHP Code:
void CreateParticle(char[] szNamefloat pDmgPos[3])
{
    static 
int iEntity;

    
iEntity CreateEntityByName("info_particle_system");

    if (
iEntity != INVALID_ENT_REFERENCE && IsValidEdict(iEntity) && IsValidEntity(iEntity))
    {
        
pDmgPos[0] += GetRandomFloat(-3.03.0);
        
pDmgPos[1] += GetRandomFloat(-3.03.0);
        
pDmgPos[2] += GetRandomFloat(-3.03.0);
        
        
TeleportEntity(iEntitypDmgPosNULL_VECTORNULL_VECTOR);

        
DispatchKeyValue(iEntity"effect_name"szName);
        
DispatchSpawn(iEntity);
        
ActivateEntity(iEntity);
        
AcceptEntityInput(iEntity"Start");

        
CreateTimer(1.0Timer_DeleteiEntityTIMER_FLAG_NO_MAPCHANGE);
    }

i remember seeing this video somewhere and author said it wasn't done with particles
__________________
8guawong is offline
Reply


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 08:58.


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