[TF2] Replicate sniper's tracer rounds
I've been trying to figure out how to replicate The Classic's tracer rounds... but so far can't.
Here is what I've tried: 1. Adding the attribute "sniper fires tracer HIDDEN" This does nothing on its own. The Classic's tracers seem to be controlled by set_weapon_mode 3 instead. 2. I tried replicating the "Fire Bullets" tempent for The Classic - referencing a TF2 source code leak and using a TempEntHook to see what The Classic normally sets these values to. It did nothing. Also, I cannot for the life of me figure out where TF2 actually handles creating this FX in the source code. I'm only assuming that it does it during fire bullets somehow... PHP Code:
Post a message if you want me to post the stocks I use for those too. Anyone got any ideas? |
Re: [TF2] Replicate sniper's tracer rounds
1 Attachment(s)
...there are three particle system effect
Code:
"dxhr_sniper_rail_blue"And "control point" 0 as start position, "control point" 1 as end position. Code:
m_vSortOrigin = startposI have not tested... I just quick peep some source files... *edit But there is more sniper rail effects, you can look through Hammer editor. |
Re: [TF2] Replicate sniper's tracer rounds
Try adding attribute 305, "sniper fires tracer" instead of "sniper fires tracer HIDDEN".
Seems to work for me. |
Re: [TF2] Replicate sniper's tracer rounds
Quote:
I have never used Hammer Editor before. And yea... I had no idea what the Start pos on particles is meant to be. tfc_sniper_distortion_trail_noise is a child particle spawned by tfc_sniper_distortion_trail, so I shouldn't be needing to generate those myself. |
Re: [TF2] Replicate sniper's tracer rounds
Quote:
EDIT: Wait, now it's working with set_weapon_mode 3. Wowee, how did I never figure that one out 7 years ago. ---- Anyway, something is working :D https://i.imgur.com/FWMbSAX.png |
Re: [TF2] Replicate sniper's tracer rounds
So... to recap things... To enable the classic's translucent tracer rounds on a Sniper:
1. Apply attribute 305, "sniper fires tracer" to weapon with a value of 1.0 2. Apply attribute 144, "lunchbox adds minicrits" to weapon with a value of 3.0 You are done. Sniper rifle now has translucent tracer rounds. |
| All times are GMT -4. The time now is 14:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.