Page 1 of 1

Plasma - partlen?

PostPosted: 27 Nov 2011, 14:40
by kr1egsgott
How would I attach partlenght to plasma primary?

Re: Plasma - partlen?

PostPosted: 27 Nov 2011, 15:10
by qreeves
kr1egsgott {l Wrote}:How would I attach partlenght to plasma primary?

"partlen" is only for weapon effects that use flares, which the plasma does not, it only uses "partsize" to determine the size of the ball.

Re: Plasma - partlen?

PostPosted: 27 Nov 2011, 15:28
by kr1egsgott
any possibility to change the part-type? serverside?
I had no luck with weapons.h yet.

Re: Plasma - partlen?

PostPosted: 27 Nov 2011, 15:38
by qreeves
kr1egsgott {l Wrote}:any possibility to change the part-type? serverside?

Not currently, how badly do you want it?

Re: Plasma - partlen?

PostPosted: 27 Nov 2011, 15:42
by kr1egsgott
If it's not a hard job just tell me where I have to look.
I want ít!

Re: Plasma - partlen?

PostPosted: 27 Nov 2011, 15:46
by qreeves
kr1egsgott {l Wrote}:If it's not a hard job just tell me where I have to look.

src/game/projs.cpp, inside the effect() function.

Re: Plasma - partlen?

PostPosted: 27 Nov 2011, 16:26
by kr1egsgott
Ok thank ya I've got it.
But I want this only for the primary, what could I add to the switch / is there a var that tells projs.cpp what fire (primary/secondary) is used?
And just for security: this works serverside?, clients will see the same what server "sees"?

Re: Plasma - partlen?

PostPosted: 27 Nov 2011, 17:35
by LuckyStrike-Rx
And just for security: this works serverside?, clients will see the same what server "sees"?

No, it will only affect your client.

Re: Plasma - partlen?

PostPosted: 27 Nov 2011, 17:39
by kr1egsgott
Thats not good.
Is there the slightest chance to have this as variable for 1.2?

€: I mean Part-Type, supporting all the Particles for example PART_LIGHTNING for booth primary & secondary attack, Splash-Part and so on...
Maybee give me an example/idea and I'll try my best to do the "dirty work"-part ;)

Re: Plasma - partlen?

PostPosted: 04 Dec 2011, 03:22
by orbitaldecay
kr1egsgott {l Wrote}:Thats not good.
Is there the slightest chance to have this as variable for 1.2?

€: I mean Part-Type, supporting all the Particles for example PART_LIGHTNING for booth primary & secondary attack, Splash-Part and so on...
Maybee give me an example/idea and I'll try my best to do the "dirty work"-part ;)


I too have thought this would be a nice addition to the already robust set of weapon vars.

Re: Plasma - partlen?

PostPosted: 04 Dec 2011, 05:07
by qreeves
Well, it's a bit more complicated than just changing the particle type, most of the effect() cases are tuned to the physics of each weapon (eg. flares need to determine the direction and length of their tail, etc), and different particle types require different functions to display them. At this point in time, I'm not prepared to invest the time needed to rewrite the entire projectile system to support it, but I will likely revisit the idea further down the track (maybe create a report on the tracker?).

Re: Plasma - partlen?

PostPosted: 05 Dec 2011, 05:27
by orbitaldecay
kr1egsgott {l Wrote}:Thats not good.
Is there the slightest chance to have this as variable for 1.2?

€: I mean Part-Type, supporting all the Particles for example PART_LIGHTNING for booth primary & secondary attack, Splash-Part and so on...
Maybee give me an example/idea and I'll try my best to do the "dirty work"-part ;)


I've taken a swing at this. It's in revision r3087 of the svn (e.g. rifleparttype1, rifleparttype2). It doesn't provide fine grained control over particle effects, but it does allow you to set the "type" of particle effects (i.e. pistol, rifle, plasma, etc.) to be used on the weapon. I think its a reasonable compromise that allows the sort of control you're looking for without require a total rewrite of the projectile system. Take a look and tell me what you think.

Re: Plasma - partlen?

PostPosted: 05 Dec 2011, 14:44
by kr1egsgott
Just tried that: works great as far as I can see.

Image

Re: Plasma - partlen?

PostPosted: 05 Dec 2011, 15:01
by TheLastProject
That looks pretty cool o,o Go and make a low-damage laser-like weapon! =D