Railgun attack update

Moderator: GZDoom Developers

kgsws-CZ
Posts: 70
Joined: Sun Jul 19, 2009 9:50 pm

Railgun attack update

Post by kgsws-CZ »

New flags:
RGF_FULLBRIGHT - makes all particles bright at dark, requested here
RGF_FLASHPARTICLES - makes all particles last only very short while, usefull for flashes
RGF_SPAWNACTOR - instead of particles spawn "puff" actor each maxdiff unit, requested here

zip contains examle wad
Attachments
railgun.zip
railgun update
(25.87 KiB) Downloaded 89 times
User avatar
Major Cooke
Posts: 8215
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: Railgun attack update

Post by Major Cooke »

Win. Enough said.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Railgun attack update

Post by NeuralStunner »

I'm reluctant to go for using the puff parameter, myself. personally I use puffs for many, many more important things. I'm already put out that rail puffs don't seem to appear on flats.

I would rather see a separate trail property, and have puffs appear consistently, but only as puffs.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Railgun attack update

Post by Xaser »

As great as this sounds, I do have a couple of issues with it: Firstly, the sprite feature hijacks two existing properties instead of using its own, meaning that sprite-based rails can neither have puffs nor the maxdiff zigzag effect. Secondly, "FLASHPARTICLES" is something that should really be implemented as a "duration" property, instead of just another hardcoded time value.

Fullbright is flawless, at least. :P
User avatar
DBThanatos
Posts: 3101
Joined: Fri Apr 14, 2006 3:17 pm
Location: in "the darkness that lurks in our mind"

Re: Railgun attack update

Post by DBThanatos »

I agree on those 2 points. I do see myself needing to use different "particles" vs the actual puff. And having the duration also customized would be great. In that way we could have forever lasting beams (not sure what for :P ) or our always dreamed "beam like" attack.
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Re: Railgun attack update

Post by DoomRater »

Custom duration and custom length of the railgun attack would make it perfectly suitable for about everything I need myself.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Railgun attack update

Post by Graf Zahl »

The patch doesn't work anymore.
User avatar
Major Cooke
Posts: 8215
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: Railgun attack update

Post by Major Cooke »

I could see if I can update it for him (the patch, just like what I did with my code submission, no other changes)
kgsws-CZ
Posts: 70
Joined: Sun Jul 19, 2009 9:50 pm

Re: Railgun attack update

Post by kgsws-CZ »

ok, here is new patch
Attachments
railgun.zip
(25.83 KiB) Downloaded 60 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Railgun attack update

Post by Graf Zahl »

What do you make this with? I still can't apply it.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: Railgun attack update

Post by Edward-san »

From what I see imho this is the output of the classic 'diff -rup' command in linux.
kgsws-CZ
Posts: 70
Joined: Sun Jul 19, 2009 9:50 pm

Re: Railgun attack update

Post by kgsws-CZ »

Ah, i forgot to remove non-patch text "Pouze v zdoom", line 1 and 211. Will that fix this problem?
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: Railgun attack update

Post by Edward-san »

what happens if you use 'svn diff -u > rail.diff', in the sense of posting the output file?
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Railgun attack update

Post by NeuralStunner »

I was just thinking about this again, Xaser's remarks and all. Maybe someone else could take a crack at it?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Railgun attack update

Post by Xaser »

Indeed, looking at the patch, RAF_FLASHPARTICLES is still implemented as a flag and maxdiff+puff are hijacked for the RAF_SPAWNACTOR effect. That leaves this feature woefully incomplete, awesome as it is otherwise.

I can already see how to do the former -- add a new "duration" arg and set p->ttl to its value. How hard is it to add new arguments anyway? Haven't modified ZDoom's source myself just yet, but it doesn't seem too super-hard.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”