Where are fragglescript scripts stored?
Posted: Sun Dec 04, 2005 22:01
I'm trying to make a fragglescript and a regular Zdoom behavior lump co-exist on the same level. I need to do this because, AFAIK, the fraggle script function I need (runcommand("viewheight X")) doesn't have an ACS eqivalent.
I can sometimes get it to work. In DeePsea, if I compile and save my behavior lump, then insert the fs file, it works. If I then re-insert the behavior lump, the fs script stops working. When I inspect the lumps in the working file with either DeePsea or XWE, I can't see anything obvious that relates to the fs scripts.
So, I guess I have a few questions:
Where is the fragglescript data stored?
Is there a way of simply inserting an appropriately named text file that will work to run fs scripts but only on a specific level like you can do with the fsglobal lump?
Is there, or could there be an equivalent to the fs viewheight made available to ACS?
And a couple of subsidiary questions:
After much trial and error, running right up to walls and seeing where my view ends up, it seems that, in GZDoom at least, "viewheight 41" gives me the same view as the default. The number strikes me as a touch low (although I always knew the Doomguy had eyes in his chest). Is 41 correct? 42 is definitely too high by one pixel and 46, which is what I thought it was is way too high.
Would it be possible to have the viewheight command also affect the height of crosshairs? I'd quite like to make the Doomguy appear a little taller - especially as most of the enemies look a little taller in GZdoom due to being shifted up so their feet don't get clipped. However, when I do this, even by a couple of units, the crosshair and where bullet decals appear on the wall are noticably out of step with each other (not that they were ever dead on - for reasons Randy has explained many times). Or would the solution be for me to just alter the offsets of the crosshair graphics?
I can sometimes get it to work. In DeePsea, if I compile and save my behavior lump, then insert the fs file, it works. If I then re-insert the behavior lump, the fs script stops working. When I inspect the lumps in the working file with either DeePsea or XWE, I can't see anything obvious that relates to the fs scripts.
So, I guess I have a few questions:
Where is the fragglescript data stored?
Is there a way of simply inserting an appropriately named text file that will work to run fs scripts but only on a specific level like you can do with the fsglobal lump?
Is there, or could there be an equivalent to the fs viewheight made available to ACS?
And a couple of subsidiary questions:
After much trial and error, running right up to walls and seeing where my view ends up, it seems that, in GZDoom at least, "viewheight 41" gives me the same view as the default. The number strikes me as a touch low (although I always knew the Doomguy had eyes in his chest). Is 41 correct? 42 is definitely too high by one pixel and 46, which is what I thought it was is way too high.
Would it be possible to have the viewheight command also affect the height of crosshairs? I'd quite like to make the Doomguy appear a little taller - especially as most of the enemies look a little taller in GZdoom due to being shifted up so their feet don't get clipped. However, when I do this, even by a couple of units, the crosshair and where bullet decals appear on the wall are noticably out of step with each other (not that they were ever dead on - for reasons Randy has explained many times). Or would the solution be for me to just alter the offsets of the crosshair graphics?