[not a bug] FSGLOBAL doesn't always work

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

[not a bug] FSGLOBAL doesn't always work

Post by Nash »

As described by Enjay's first post in this threa http://forum.drdteam.org/viewtopic.php? ... t=fsglobal

The FSGLOBAL lump for some reason doesn't always work.

In my case I change the viewing height. It will NEVER get executed right the first time. After a ]KILL, it would then work.

Bug or intentional?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Pust the lump so I can try myself.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

Code: Select all

[scripts] 

script 1
{ 
   runcommand("viewheight 56");
   // change the viewheight to something slightly taller
} 

startscript(1);
Oh and I run my map from within DoomBuilder.

EDIT: Ran from outside of DB. Same result. Script will only work after suicide.
User avatar
BetaSword
Posts: 132
Joined: Thu Sep 01, 2005 0:01

Post by BetaSword »

I tried that myself, and I noticed that, when the level starts, you are at normal height. But I also noticed in my own little test map, that if I walked onto a piece of floor that was higher than the starting floor, the viewheight would then take effect. Odd.

Kinda off topic, but what's the point of changing the viewheight, anyways, if the shooting height remains at normal level? Unless there's a way to raise that, too, that I'm (unsurprisingly) unaware of.

Edit: Example wad. Load along with the Blood Resource Pack, otherwise you'll be seeing a lot of blue checkers. Either way, though, just walk directly left or right from start, and you'll see what I mean about the view height adjusting.
Attachments
silenthillish.zip
(4 KiB) Downloaded 55 times
DaniJ
Posts: 130
Joined: Sat Oct 08, 2005 19:22

Post by DaniJ »

what's the point of changing the viewheight, anyways, if the shooting height remains at normal level?
Would seem silly not to change both, it can be done.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

Tried Beta's wad. The problem still persists in 0.9.26.

(Nice wad by the way!)

And what's the point? Well sometimes, Doom's proportion just doesn't feel right. For example, the door textures from the Blood Resource Pack are very very tall. Scaling them vertically wouldn't work because they'll look squat.

Caleb was very tall apparently. ;D
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Doom human proportions are generally odd. All the "human" characters are actually very squat (too wide for how tall they are). If you imported some regularly proportioned human sprites into Doom, you either had to put up with sprites that were too tall or were only a few pixels wide if you'd resized them to Doomguy height. Scaled sprites, of course, allow you to get round this nowadays.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

The problem is, I can't fix this without breaking compatibility with Legacy. This is a feature that isn't implemented properly in Legacy so any map trying to change the view height has to perform crappy hacks. If I actually changed the view height here these would show as erratic behavior.

Keep in mind that 'runcommand' is only there to emulate behabior needed for Legacy maps. I won't add anything here that might break that

If you want to change the player's view height at the start of a level use the [Level info] block of the FSGLOBAL lump and add consolecmd = viewheight 56 there.
Locked

Return to “Closed Bugs”