Plasma - partlen?

Plasma - partlen?

Postby kr1egsgott » 27 Nov 2011, 14:40

How would I attach partlenght to plasma primary?
kr1egsgott
 
Posts: 85
Joined: 08 Sep 2011, 10:10
Location: Germany

Re: Plasma - partlen?

Postby qreeves » 27 Nov 2011, 15:10

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.
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: Plasma - partlen?

Postby kr1egsgott » 27 Nov 2011, 15:28

any possibility to change the part-type? serverside?
I had no luck with weapons.h yet.
kr1egsgott
 
Posts: 85
Joined: 08 Sep 2011, 10:10
Location: Germany

Re: Plasma - partlen?

Postby qreeves » 27 Nov 2011, 15:38

kr1egsgott {l Wrote}:any possibility to change the part-type? serverside?

Not currently, how badly do you want it?
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: Plasma - partlen?

Postby kr1egsgott » 27 Nov 2011, 15:42

If it's not a hard job just tell me where I have to look.
I want ít!
kr1egsgott
 
Posts: 85
Joined: 08 Sep 2011, 10:10
Location: Germany

Re: Plasma - partlen?

Postby qreeves » 27 Nov 2011, 15:46

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.
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: Plasma - partlen?

Postby kr1egsgott » 27 Nov 2011, 16:26

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"?
kr1egsgott
 
Posts: 85
Joined: 08 Sep 2011, 10:10
Location: Germany

Re: Plasma - partlen?

Postby LuckyStrike-Rx » 27 Nov 2011, 17:35

And just for security: this works serverside?, clients will see the same what server "sees"?

No, it will only affect your client.
Image
User avatar
LuckyStrike-Rx
 
Posts: 183
Joined: 21 Mar 2011, 14:07

Re: Plasma - partlen?

Postby kr1egsgott » 27 Nov 2011, 17:39

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 ;)
kr1egsgott
 
Posts: 85
Joined: 08 Sep 2011, 10:10
Location: Germany

Re: Plasma - partlen?

Postby orbitaldecay » 04 Dec 2011, 03:22

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.
[ Wazu Clan ][ irc.wazuclan.com #wazuclan ][ http://www.orbitaldecay.com ]
User avatar
orbitaldecay
 
Posts: 180
Joined: 12 May 2011, 00:32
Location: Baltimore, MD, US

Re: Plasma - partlen?

Postby qreeves » 04 Dec 2011, 05:07

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?).
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: Plasma - partlen?

Postby orbitaldecay » 05 Dec 2011, 05:27

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.
[ Wazu Clan ][ irc.wazuclan.com #wazuclan ][ http://www.orbitaldecay.com ]
User avatar
orbitaldecay
 
Posts: 180
Joined: 12 May 2011, 00:32
Location: Baltimore, MD, US

Re: Plasma - partlen?

Postby kr1egsgott » 05 Dec 2011, 14:44

Just tried that: works great as far as I can see.

Image
kr1egsgott
 
Posts: 85
Joined: 08 Sep 2011, 10:10
Location: Germany

Re: Plasma - partlen?

Postby TheLastProject » 05 Dec 2011, 15:01

That looks pretty cool o,o Go and make a low-damage laser-like weapon! =D
Hats, Afros, wings and raptor feet. This game is showing progress indeed.
TheLastProject
 
Posts: 432
Joined: 06 Nov 2011, 17:04

Who is online

Users browsing this forum: No registered users and 1 guest