new A_RailAttack

Moderator: GZDoom Developers

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 much. This gets bad if it is done more often but what does it matter that the game has to search the palette once (or twice.) The overhead is irrelevant considering that in even medium resolutons there's a few 100000 pixels to draw.
User avatar
kgsws
Posts: 117
Joined: Sat Apr 23, 2005 3:45 am
Location: CZ
Contact:

Post by kgsws »

ah, yes i am going to fix it.
User avatar
kgsws
Posts: 117
Joined: Sat Apr 23, 2005 3:45 am
Location: CZ
Contact:

Post by kgsws »

ok i fix it :wink:
game search palette 2x for every shot
(redownload)
User avatar
Cutmanmike
Posts: 11335
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

Image

Forgive me if i'm wrong but is that a picture from the fmv of ff7 when aries dies?
User avatar
kgsws
Posts: 117
Joined: Sat Apr 23, 2005 3:45 am
Location: CZ
Contact:

Post by kgsws »

cutmanmike wrote:Image

Forgive me if i'm wrong but is that a picture from the fmv of ff7 when aries dies?
I do not know, i foud it on czech site
User avatar
kgsws
Posts: 117
Joined: Sat Apr 23, 2005 3:45 am
Location: CZ
Contact:

Post by kgsws »

User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Post by Grubber »

@Graf: what about this:

Code: Select all

case 'C':
case 'c':		// Color
	SC_MustGetString ();
	if (!stricmp (sc_String, "none"))
	{
		v = -1;
	}
	else
	{
		char num[16];
		sprintf (num, "0x%s", sc_String);
		int color = strtol (num, NULL, 0);
		v = ColorMatcher.Pick (RPART (color), GPART (color), BPART (color));
	}
	break;

Code: Select all

FUNC (A_RailAttack, "Ii!ccii")
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 »

That's ok but to I suggest:
v |= ColorMatcher.Pick (RPART (color), GPART (color), BPART (color)) << 24;
and then use APART(v) where the color is being used. Then Timmie can use the full colors in case he wants to do that for ZDoomGL. That's what I had in mind anyway. But you can improve it even more:

Use V_GetColor to retrieve the color value instead. That function allows a nicer way to specify colors than just a cheap hex string.
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Post by Grubber »

I leave this for you ;)
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

Is A_MonsterRail also changed?
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Post by Grubber »

I guess not yet ;)

EDIT: whoops, read below.
Last edited by Grubber on Mon May 30, 2005 12:16 pm, edited 1 time in total.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

kgsws wrote: I added new action : A_MonsterRailAttack(dmg,color1(r),color1(g),color1(b),color2(r),color2(g),color2(b),flash,tolerance)
User avatar
Cutmanmike
Posts: 11335
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

kgsws wrote:
cutmanmike wrote:Image

Forgive me if i'm wrong but is that a picture from the fmv of ff7 when aries dies?
I do not know, i foud it on czech site
Image
User avatar
ravage
Posts: 289
Joined: Wed Sep 03, 2003 9:30 pm
Contact:

Post by ravage »

This looks awesome.
User avatar
Phobus
Posts: 5984
Joined: Thu May 05, 2005 10:56 am
Location: London
Contact:

Post by Phobus »

It does strike me as something out of a fantasy game...
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”