Page 1 of 1

[not a bug] FSGLOBAL doesn't always work

Posted: Sun Jan 22, 2006 17:47
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?

Posted: Sun Jan 22, 2006 18:20
by Graf Zahl
Pust the lump so I can try myself.

Posted: Sun Jan 22, 2006 18:43
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.

Posted: Thu Feb 02, 2006 6:02
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.

Posted: Thu Feb 02, 2006 11:29
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.

Posted: Thu Feb 02, 2006 21:46
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

Posted: Thu Feb 02, 2006 23:05
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.

Posted: Thu Feb 02, 2006 23:18
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.