Langerd Posted September 22, 2014 Share Posted September 22, 2014 (edited) Ok two questions- want to change the color of the laser to red- is there any possible way to make the startring point of the laser lower?Ah this mine looks like this one from battlefront http://img4.wikia.nocookie.net/__cb20090925124313/starwars/images/e/eb/HX2_Battlefront.jpg Edited September 22, 2014 by Langerd Link to comment
Langerd Posted September 22, 2014 Author Share Posted September 22, 2014 Ok nevermind about first question. I changed the colour. Now what should i do in efx file to make the starting point of laser lower. //// glowLine{ name line1 spawnflags cheapOrg2Calc size { start 1.75 2.5 } rgb { start 0.3 0.0 0.0 } shaders [ gfx/misc/whiteLine2 ]}// hotter coreLine{ name line2 spawnflags cheapOrg2Calc size { start 0.15 0.27 } rgb { start 0.3 0.05 0.05 } shaders [ gfx/misc/whiteLine2 ]}// blue glowParticle{ size { start 1.0 1.5 } rgb { start 3 0.1 0.1 } rotation 0 360 shaders [ gfx/effects/whiteFlare ]}// whiter coreParticle{ size { start 0.5 0.8 } rgb { start 3 0.1 0.1 } alpha { start 0.1 0.1 } rotation 0 360 shaders [ gfx/effects/whiteFlare ]} Link to comment
Lancelot Posted September 22, 2014 Share Posted September 22, 2014 I think you have to edit the model itself to lower the laser. The model has a tag on it (triangle shaped polygon) that triggers the effect. Link to comment
Szico VII Posted September 22, 2014 Share Posted September 22, 2014 Yes changing the effect will likely change the visual origin of the effect, but I suspect damage is calculated hardcoded based on model tag e.t.c. Especially as there is no dmg or damage code in that .efx Link to comment
Langerd Posted September 22, 2014 Author Share Posted September 22, 2014 Hmm should i change a *flash tag? Or should i lower the *weapon tag? Link to comment
Langerd Posted September 22, 2014 Author Share Posted September 22, 2014 Nothing works I am moving the tags but it doesnt work Link to comment
Lancelot Posted September 22, 2014 Share Posted September 22, 2014 Hmm should i change a *flash tag? Or should i lower the *weapon tag?Yes, I meant the *flash tag. Have you tried to move the tag a little bit, so it's closerto the model? Link to comment
Langerd Posted September 22, 2014 Author Share Posted September 22, 2014 Yep ... And it doesnt change anything. The *flash tag in for example e11 rifle is a tag in glm that creates a shot from the gun ( In third person mode not first person because first person is using md3 model not glm). So i dont know ...When i moved model it worked. But the model was flying in the air 10cm above the floor.The only one way is i can make it bigger or create effect on the model but this is too much work... (sry for english i am polish) Link to comment
eezstreet Posted September 23, 2014 Share Posted September 23, 2014 The effect is handled differently between SP and MP.For SP, you'll want to modify that effect, and nothing further is needed. The game moves the end-point of the line segment (do NOT change the name of this segment!!) so that it hits the correct spot. All you need to do to make it red is change the RGB or the shader of that line.For MP, you'll have to modify a shader that it uses (I think gfx/effects/whiteline or gfx/misc/whiteline). Unfortunately, changing the color of this shader will change almost everything else that uses gfx/effects/whiteline - and there are quite a few things that use it. Link to comment
Langerd Posted September 23, 2014 Author Share Posted September 23, 2014 YES IT WORKS!https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t34.0-12/10716259_1517776348469514_1667952134_n.jpg?oh=56afb727e7da9223c2333126ede10aba&oe=54238126&__gda__=1411628178_a1448b1d4d49eaa2b76cae6d542994b3https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t34.0-12/10708408_1517776345136181_327332447_n.jpg?oh=68b8b855c0539266b5800b3003d65df2&oe=5424903E&__gda__=1411673326_1b6a503f9d3266446156f1a6ae006501I changed origin in the effect file. I used many variants and i finnally got it right!Many thanks guys for help Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now