new A_RailAttack

Moderator: GZDoom Developers

User avatar
kgsws
Posts: 117
Joined: Sat Apr 23, 2005 3:45 am
Location: CZ
Contact:

new A_RailAttack

Post by kgsws »

EDIT:
I changet A_RailAttack an i get this:
A_RailAttack(damage,offset,useammo,color1(r),color1(g),color1(b),color2(r),color2(g),color2(b),flash,tolerance)
And added :
A_MonsterRailAttack(damage,color1(r),color1(g),color1(b),color2(r),color2(g),color2(b),flash,tolerance)
you can download it here: http://www.zdoom.ic.cz/download/kgzdoom.rar
Image
Image
Last edited by kgsws on Thu Jun 02, 2005 11:09 am, edited 2 times in total.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Nice! Now all we need is Randy surfacing from wherever he is and actually add all this stuff to ZDoom. Anyway, I'll add this to my own update because there's one other change I'd like to do to the railgun code and keeping these together might make sense.
User avatar
kgsws
Posts: 117
Joined: Sat Apr 23, 2005 3:45 am
Location: CZ
Contact:

Post by kgsws »

yes
User avatar
Vader
Posts: 4241
Joined: Fri Jul 30, 2004 4:00 am
Location: Germany

Post by Vader »

Very nice,
Good job!
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

How do you define colours?
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Post by Grubber »

palette #
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Not good. That should be changed to RGB and then looked up when being displayed. Palette indices are far too unintuitive. I'll change that for my update tomorrow.

But now I have to finish the intermission stuff first. I am almost ready to post it. ;)
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Post by wildweasel »

Excellent. But with an RGB lookup, how would a null-color be handled (in case I only want the beam and not the spiral, as in kgsws' lower-left screenshot?
User avatar
kgsws
Posts: 117
Joined: Sat Apr 23, 2005 3:45 am
Location: CZ
Contact:

Post by kgsws »

i updated it:
now: A_RailAttack(dmg,offset,ammo,color1,color2,flash,tolerance)
FLASH is this
Image
and i add demo wad with 3 railguns and 1 electric gun...

(redownload)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

wildweasel wrote:Excellent. But with an RGB lookup, how would a null-color be handled (in case I only want the beam and not the spiral, as in kgsws' lower-left screenshot?

Simple: -1!
User avatar
kgsws
Posts: 117
Joined: Sat Apr 23, 2005 3:45 am
Location: CZ
Contact:

Post by kgsws »

Graf Zahl wrote:
wildweasel wrote:Excellent. But with an RGB lookup, how would a null-color be handled (in case I only want the beam and not the spiral, as in kgsws' lower-left screenshot?

Simple: -1!
no, it is 255
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

You can't do that if you want to pass real colors! Remember, the average mapper doesn't want to care that 120(?) is a nice green. He wants to specify either '0, 255, 0' or 0x00ff00, but not look into the palette and count the colors until a suitable one is found.
User avatar
kgsws
Posts: 117
Joined: Sat Apr 23, 2005 3:45 am
Location: CZ
Contact:

Post by kgsws »

ok i do it, and there is doom palette:
Image
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

And how does this help us? Most people have no clue whatsoever how to interpret a palette. Plus, Heretic's, Hexen's and Strife's palettes are completely different so one had to do it again for those games.
User avatar
kgsws
Posts: 117
Joined: Sat Apr 23, 2005 3:45 am
Location: CZ
Contact:

Post by kgsws »

ah, yes
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”