Raised This Month: $ Target: $400
 0% 

Moving env_fire with player does not work...


Post New Thread Reply   
 
Thread Tools Display Modes
Michalplyoutube
Veteran Member
Join Date: Jan 2013
Location: Tank Carrier in Mannhatt
Old 07-24-2015 , 11:30   Re: Moving env_fire with player does not work...
Reply With Quote #11

For a particle this should do!
PHP Code:

stock AttachParticle2
(entityString:particleType[], Float:offset[]={0.0,0.0,0.0})
{
    new 
particle=CreateEntityByName("info_particle_system");

    
decl Float:position[3];
    
GetEntPropVector(entityProp_Send"m_vecOrigin"position);
    
position[0]+=offset[0];
    
position[1]+=offset[1];
    
position[2]+=offset[2];

    
DispatchKeyValue(particle"effect_name"particleType);
    
SetVariantString("!activator");
    
AcceptEntityInput(particle"SetParent"entityparticle0);
    
SetVariantString("forward"); //foward or facemask for head in csgo in tf2 its head
    
AcceptEntityInput(particle"SetParentAttachment"particle particle0);
    
DispatchSpawn(particle);

    
AcceptEntityInput(particle"start");
    
ActivateEntity(particle);
    
CreateTimer(3.0DeleteParticleparticle);
    return 
particle;

__________________
The plugin developer of TF2BWR Reborn
And a TF2 Player
Michalplyoutube is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 07-25-2015 , 06:54   Re: Moving env_fire with player does not work...
Reply With Quote #12

So after a little bit playing around with it and looking at this:https://developer.valvesoftware.com/...S_GO_Particles I got something working with the info_particle_system for this I used this:
Code:
stock AttachParticle(client, String:particleType[])
{
    new particle=CreateEntityByName("info_particle_system");

    DispatchKeyValue(particle, "effect_name", particleType);
    SetVariantString("!activator");
    AcceptEntityInput(particle, "SetParent", client, particle, 0);
    SetVariantString("forward");
    AcceptEntityInput(particle, "SetParentAttachment", particle , particle, 0);
    DispatchSpawn(particle);

    AcceptEntityInput(particle, "start");
    ActivateEntity(particle);
}
Also somewhere on PlayerSpawn or on Command:
Code:
        AttachParticle(client, "office_fire")
I tried also pcf-files that are not listed in the wikilist but couldnīt get them to work.

Thanks to all of you....
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 07-25-2015 , 08:59   Re: Moving env_fire with player does not work...
Reply With Quote #13

you should link this thread at pwnsource -- more of an idea what your trying to accomplish is written here..

Last edited by hamilton5; 07-25-2015 at 08:59.
hamilton5 is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 07-25-2015 , 13:34   Re: Moving env_fire with player does not work...
Reply With Quote #14

So here is what I have done so far:
https://youtu.be/i80n9pK2HEE

Not exactly what I wanted since the flames a little bit too big but it works.

Quote:
you should link this thread at pwnsource -- more of an idea what your trying to accomplish is written here..
I have described it on pwnsource.....
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 07-25-2015 , 18:08   Re: Moving env_fire with player does not work...
Reply With Quote #15

Particles are almost a package of little particle. Pretty sure you can find more little flames. Use the editor particle.
Dr. Api is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 07-27-2015 , 21:01   Re: Moving env_fire with player does not work...
Reply With Quote #16

off-topic: How did you change fall speed ?

And what about change scale if its possible in this case.
ESK0 is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 07-28-2015 , 16:32   Re: Moving env_fire with player does not work...
Reply With Quote #17

https://developer.valvesoftware.com/...article_system
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 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 02:03.


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