arg5 for 3D floor

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

arg5 for 3D floor

Post by NeoHippo »

DoomBuilder shows these args for the 3D floor:

Code: Select all

160
	{
		title = "H Sector Set 3D Floor";
		arg1 = "Tag";
		arg2 = "Type";
		arg3 = "Flag";
		arg4 = "Alpha";
		arg5 = "Tag hibyte";}
What does arg5 do? It is not mentioned in Documentation.
TAtL, tU, aE
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

It is used to extend the tag to more than 255 numbers. For example, to use tag 260, put 4 in arg1 and 1 in arg5.
User avatar
Paul
DRD Team Admin (Inactive)
Posts: 1058
Joined: Thu Jun 30, 2005 13:30
Location: Poland - Grojec / Radom
Contact:

Post by Paul »

How do you give the sector a tag higher than 255?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

JUst by assigning it. The sector tag is a 16 bit value (remember 666?)
kgsws
Posts: 22
Joined: Sun Oct 16, 2005 22:39

Post by kgsws »

Example:
Tag is 6427
then HiByte is 6427 div 256 = 25 ( 6427/256) but not anything after dot
and LoByte is 6427 mod 256 = 27 = 6427-(LoByte * 256)

i think it is right

Edit: i make mistake, HiByte is firs and LoByte is second ...
Last edited by kgsws on Mon May 15, 2006 18:08, edited 1 time in total.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

It's the other way around:

Lobyte = tag % 256
Hibyte = tag/256
User avatar
Syfo-Dyas
Posts: 182
Joined: Sun Oct 09, 2005 21:54
Location: Ohio
Contact:

Post by Syfo-Dyas »

Hugh?

So how would that look in the editor?

160
{
title = "H Sector Set 3D Floor";
arg1 = " Tag";
arg2 = "Type";
arg3 = "Flag";
arg4 = "Alpha";
arg5 = "Tag hibyte";}

I'm sure this is easy, but I've got a real hard time learning some stuff wthout a visual.
User avatar
BlazingPhoenix
Posts: 488
Joined: Sun Aug 28, 2005 5:11
Contact:

Post by BlazingPhoenix »

Would it be possible to add a 'tag hibyte' for all the sector/thing types that need a tid that's higher than 255? that seriously would help :).
Locked

Return to “GZDoom”