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

HHow to create the effect of "the trail of tracer bullets"?


Post New Thread Reply   
 
Thread Tools Display Modes
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 12-06-2017 , 13:40   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #21

Quote:
Lmao I think you're missing something here, he's not asking for help with animated textures.. he has already figured out his issue and made a model to use as the visuals instead.
Kidding ?

You´re able to read what the topic said ?
He was asking why this doesn´t work:
Quote:
"UnlitGeneric"
{
"$basetexture" "weapons/tracers/tracer_light_midle2"
"$translucent" 1
"$additive" 1
"$nocull" 1
"$selfillum" 1
"envmapmask" "weapons/tracers/tracer_light_midle2_ref"


"Proxies"
{
"TextureScroll"
{
"texturescrollvar" "$basetexturetransform"
"texturescrollrate" 10.0
"texturescrollangle" 180
}
}
}
and

Quote:
"UnlitGeneric"
{
"$baseTexture" "anim/trasser/trasser"
"$additive" 1
"$nocull" 1
"$translucent" 1
"$selfillum" 1

"Proxies"
{
"AnimatedTexture"
{
"animatedTextureVar" "$basetexture"
"animatedTextureFrameNumVar" "$frame"
"animatedTextureFrameRate" "1"
}
}
}

So coming back to the original question about AnimatedTextures , for the moment I can´t say why it doesn´t work in CSGO , I just checked out a playermodel with animated textures that I had made before the Halloweenupdate back in 2015 that brought the new skeleton . Till this point it worked but now it seems like that valve had changed something so animated textures don´t work anymore , I´m gonna do some more research.....
__________________
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
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-06-2017 , 14:21   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #22

Quote:
Originally Posted by andi67 View Post
Kidding ?
You´re able to read what the topic said ?
He was asking why this doesn´t work:
He created the topic for assistance but since no one helped him in 40 days he did it by himself.

Obviously you didn't read his second comment where he says he already figured it out and shows a video of it:

Quote:
Originally Posted by tonline_kms65 View Post
All ready, figured out and did.
Video
or maybe his third reply where he states he decided to go with an entity model instead of a texture sprite:

Quote:
Originally Posted by tonline_kms65 View Post
So not much to load the engine of the game, I went in a simple way:

1. Create 3D model ENT (trasser). My 3d model trasser, has the physical properties (phisbox, hitbox, animation, weight, gravity). My texture, alpha-channel, transparency..
2. Doing a trace to the point of sight.
3. Start created ENT (trasser), with a speed of 3000, the vector obtained tracking point.
4. At a distance of <= 70.0 end point to kill ENT (trasser).

Video
He only posted those material files as a curtsy from Neuro Toxin's comment where he also notices he resolved the issue:

Quote:
Originally Posted by Neuro Toxin View Post
If you post asking for help and resolve your own post, state it for others.
Also from where you asked him to post the vmt files.
Not sure where your brains at right now but you're not clearly reading.
__________________
I highly recommend joining the SourceMod Discord Server for real time support.
backwards is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 12-06-2017 , 14:30   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #23

https://forums.alliedmods.net/showpo...96&postcount=7


Lol......
__________________
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
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 12-06-2017 , 14:40   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #24

Quote:
Originally Posted by andi67 View Post
Yeah stating again that he previously tried to do texture animations but that's not what he ended up doing... I mean come on you can't be serious here
__________________
I highly recommend joining the SourceMod Discord Server for real time support.
backwards is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 12-06-2017 , 15:20   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #25

Quote:
Originally Posted by 8guawong View Post

This is my post. When you create in Hammer gun_fire works fine. When you create a SourcePawn gun_fire is not working. So I refused to use gun_fire.

Last edited by tonline_kms65; 12-06-2017 at 15:30.
tonline_kms65 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-06-2017 , 17:53   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #26

Quote:
Originally Posted by tonline_kms65 View Post
This is my post. When you create in Hammer gun_fire works fine. When you create a SourcePawn gun_fire is not working. So I refused to use gun_fire.
That doesn't sound right at all though and was probably missing a property.
Mitchell is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 12-07-2017 , 23:20   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #27

Quote:
Originally Posted by Mitchell View Post
That doesn't sound right at all though and was probably missing a property.
Do. If you manage to do is surprise the world.
I'm definitely surprised.

Last edited by tonline_kms65; 12-07-2017 at 23:21.
tonline_kms65 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-08-2017 , 11:37   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #28

Quote:
Originally Posted by tonline_kms65 View Post
Do. If you manage to do is surprise the world.
I'm definitely surprised.
Since I don't have a cs:s srcds setup I had to do it in csgo.
I got env_gunfire working, however for some reason it actually does damage in csgo.
In csgo it mainly does bullet holes, you can some times see the bullet tracers but barely, might be different in cs:s.
Attached Files
File Type: sp Get Plugin or Get Source (env_gunfire.sp - 165 views - 4.4 KB)

Last edited by Mitchell; 12-08-2017 at 11:38.
Mitchell is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 12-09-2017 , 16:34   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #29

Quote:
Originally Posted by Mitchell View Post
Since I don't have a cs:s srcds setup I had to do it in csgo.
I got env_gunfire working, however for some reason it actually does damage in csgo.
In csgo it mainly does bullet holes, you can some times see the bullet tracers but barely, might be different in cs:s.

OK. Interesting. I will definitely look.

You showed me my possible mistakes:
DispatchKeyValue(gunfire, "weaponname", "weapon_m4a1"); //Here, the reference to guns?
SetEntPropEnt(gunfire, Prop_Data, "m_hTarget", target); // Here as a sight(target), I had a player (ENT), you have the ultimate point of sight.

Obviously this was my mistake. I will check this version.

Last edited by tonline_kms65; 12-09-2017 at 17:09.
tonline_kms65 is offline
tonline_kms65
Member
Join Date: Aug 2016
Location: Ru. Komsomol-on-Amur
Old 12-09-2017 , 19:31   Re: HHow to create the effect of "the trail of tracer bullets"?
Reply With Quote #30

DispatchKeyValue(player, "targetname", target) and SetEntPropEnt(gunfire, Prop_Data, "m_hTarget", target)
I wonder the same thing?

The reason for using SetEntPropEnt(gunfire, Prop_Data, "m_hTarget", target)?
m_hTarget - offset?
If you change the version of the game engine the offset may become inaccessible. I think it is unreliable. DispatchKeyValue(player, "targetname", target) is actually the property of ENT.

SetEntPropEnt(gunfire, Prop_Send, "m_hOwnerEntity", client); It is not necessary, as env_gunfire not prejudice, it's just a visual effect.

----------------------------------------
It works!
My mistake was to use env_gunfire in the target property of the player(ID, name). The solution to this issue is the creation of info_targer (or another ENT) and teleportirovat it to the final tracking point (aim). Then gun_fire aim at the info_target.
This question, with the help of Mitchell, has been solved completely!

VIDEO

Of course, the flaws are many, but the main thing is the result.

Last edited by tonline_kms65; 12-10-2017 at 02:37.
tonline_kms65 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 01:14.


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