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

[CSGO] - smoker tongue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 04-15-2015 , 16:08   [CSGO] - smoker tongue
Reply With Quote #1

After all day to code, I'm stuck on this just now maybe I don't have clear mind to see what's wrong.

Trying to create particle system between two players.

PHP Code:
Tongue(attackervictim)
{  
    new 
particle = -1;
    
particle CreateEntityByName("info_particle_system");
    
    if(
IsValidEntity(particle))
    {
        
decl String:attacker_name[64], String:victim_name[64];
        
Format(attacker_namesizeof(attacker_name), "target%d"attacker);
        
Format(victim_namesizeof(victim_name), "target%d"victim);
        
        
DispatchKeyValue(attacker"targetname"attacker_name);
        
        
SetEntPropEnt(particleProp_Data"m_hOwnerEntity"attacker);
        
        new 
Float:particlePos[3], Float:particleAng[3];
        
GetEntPropVector(attackerProp_Data"m_vecOrigin"particlePos);
        
GetEntPropVector(attackerProp_Data"m_angRotation"particleAng);

        
DispatchKeyValue(particle"effect_name"particle_smoker_tongue);
        
        
DispatchKeyValue(particle"parentname"attacker_name);
        
DispatchSpawn(particle);
        
        
SetVariantString(attacker_name);
        
AcceptEntityInput(particle"SetParent"particleparticle0);
        
        
DispatchKeyValue(particle"cpoint1_parent"attacker_name);
        
DispatchKeyValue(particle"cpoint2_parent"victim_name);
        
        
TeleportEntity(particleparticlePosparticleAngNULL_VECTOR);
        
        
ActivateEntity(particle);
        
AcceptEntityInput(particle"start");
    }
    return 
particle;

Problem when the tongue is created the position A and B are fucked. Too hight for A, too low for B.
Dr. Api is offline
poel
Veteran Member
Join Date: Mar 2013
Old 04-15-2015 , 16:15   Re: [CSGO] - smoker tongue
Reply With Quote #2

rip
poel is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 04-16-2015 , 04:33   Re: [CSGO] - smoker tongue
Reply With Quote #3

Ok, I found a way, I'm testing now. point A and B are moving with the tongue without use teleportentity of course cause the points are moving with others points.

Will give you the code after cause I'm crashing when I kill the smoker.
Dr. Api 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 13:00.


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