Fraggle Script, and the Hud?
Posted: Wed Jun 27, 2007 4:54
I started doing a little project recently. Basicly it is a 12 second opening video that uses cameras, ThingSound, and a crap load of textures which are all controled by acs.
I then went a step further and used fraggle script to adjust the gamma, and to set the crosshair to 0. All my settings reverted back to normal when I went to the next level. Which is what I hoped for, cuz I didn't want to piss off other people by forcing these settings on to them.
I then decided to try and use fraggle to shut off the hud by use of the sizeup command. Needless to say, it didn't work. I do not know if this is intentional, in order to limit any damage poor use of fraggle script could do. Or if I was just doing it wrong.
I tried like this first
[spoiler][level info]
levelname = The Abyss
creator = Lumpy
[Scripts]
include("things.h");
script 1
{
runcommand("crosshair 0");
runcommand("gamma 1.5");
runcommand("r_visibility 0");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
}[/spoiler]
I put sizeup in there 8 times that way no matter what size the hud was set at I was sure it would of been taken away totally.
Then when I saw that didn't work I thought to my self "sizeup doesn't have a value behind it like the others do". So I tried it like this.
[spoiler][level info]
levelname = The Abyss
creator = Lumpy
consolecmd = sizeup
[Scripts]
include("things.h");
script 1
{
runcommand("crosshair 0");
runcommand("gamma 1.5");
runcommand("r_visibility 0");
}[/spoiler]
I only used it once there just to see if it would work. But that also doesn't work.
I then tried looking in the ZDoom wiki, and in my INI file to see if there is anything like a hud_size cvar that I could set in my fraggle script. I couldn't find anything that came close.
Which I find strange cuz how does GZDoom/ZDoom remember what size the hud is. I mean there is either no hud at all, all the way down to a tiny view window surrounded by the green brick texture.
Basically while this video is playing I want the end viewer/user to be totally oblivious that he is in a level.
SO......
Is there any way that such a cvar could be added?
And could that cvar be changable in fraggle script?
Also if there is another way of doing it (besides printing a message to tell the user to do it himself) I will be glad to hear them.
I then went a step further and used fraggle script to adjust the gamma, and to set the crosshair to 0. All my settings reverted back to normal when I went to the next level. Which is what I hoped for, cuz I didn't want to piss off other people by forcing these settings on to them.
I then decided to try and use fraggle to shut off the hud by use of the sizeup command. Needless to say, it didn't work. I do not know if this is intentional, in order to limit any damage poor use of fraggle script could do. Or if I was just doing it wrong.
I tried like this first
[spoiler][level info]
levelname = The Abyss
creator = Lumpy
[Scripts]
include("things.h");
script 1
{
runcommand("crosshair 0");
runcommand("gamma 1.5");
runcommand("r_visibility 0");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
runcommand("sizeup");
}[/spoiler]
I put sizeup in there 8 times that way no matter what size the hud was set at I was sure it would of been taken away totally.
Then when I saw that didn't work I thought to my self "sizeup doesn't have a value behind it like the others do". So I tried it like this.
[spoiler][level info]
levelname = The Abyss
creator = Lumpy
consolecmd = sizeup
[Scripts]
include("things.h");
script 1
{
runcommand("crosshair 0");
runcommand("gamma 1.5");
runcommand("r_visibility 0");
}[/spoiler]
I only used it once there just to see if it would work. But that also doesn't work.
I then tried looking in the ZDoom wiki, and in my INI file to see if there is anything like a hud_size cvar that I could set in my fraggle script. I couldn't find anything that came close.
Which I find strange cuz how does GZDoom/ZDoom remember what size the hud is. I mean there is either no hud at all, all the way down to a tiny view window surrounded by the green brick texture.
Basically while this video is playing I want the end viewer/user to be totally oblivious that he is in a level.
SO......
Is there any way that such a cvar could be added?
And could that cvar be changable in fraggle script?
Also if there is another way of doing it (besides printing a message to tell the user to do it himself) I will be glad to hear them.