Page 1 of 1

Is KEYCONF a protected lump?

Posted: Wed Sep 26, 2012 9:15 pm
by Ænima
Image


























Pic unrelated.

RE: Is KEYCONF a protected lump?

Posted: Thu Sep 27, 2012 12:50 am
by Llewellyn
Keyconf is just a limited list of ConsoleCommands that are executed upon entering the game... so I would assume not, since YOU could enter these commands...
but why don't you try it?

RE: Is KEYCONF a protected lump?

Posted: Thu Sep 27, 2012 5:38 pm
by Torr Samaho
No. At the moment the protected lumps are (you can see this in network.cpp) COLORMAP, PLAYPAL, HTICDEFS, HEXNDEFS, STRFDEFS, DOOMDEFS, GLDEFS, DECORATE, LOADACS, DEHACKED and GAMEMODE.

BTW: Would be nice if somebody adds this to the wiki.

RE: Is KEYCONF a protected lump?

Posted: Thu Sep 27, 2012 6:57 pm
by Ænima
So, in theory, I could make a Skins wad with useful bindings and aliases in it to distribute for other players to use?

RE: Is KEYCONF a protected lump?

Posted: Thu Sep 27, 2012 7:42 pm
by Torr Samaho
In theory yes, but I don't give you any guarantees that it'll work. I'm pretty sure that the KEYCONF lump was never intended for this...

RE: Is KEYCONF a protected lump?

Posted: Thu Sep 27, 2012 7:58 pm
by Ænima
Aw. I remember that WastedYouth made some useful aliases in his "Skulltag Expansion Pack" a veeery long time ago, but i think he used autoloaded .cfg files or something and I have no idea how to do this with Zandronum.

RE: Is KEYCONF a protected lump?

Posted: Fri Sep 28, 2012 2:33 am
by Llewellyn
Torr Samaho wrote: In theory yes, but I don't give you any guarantees that it'll work. I'm pretty sure that the KEYCONF lump was never intended for this...
It seems to work fine, I've been using this (without realizing it was KeyCONF) for sr50 for a LONG time:

Code: Select all

addkeysection "SR50" SR50
addmenukey "Strafe Left" +left2
addmenukey "Strafe Right" +right2
addmenukey "ACTIVATE SR50" +sr

alias +left2 "+left; +moveleft"
alias -sr "turnspeeds 0; -strafe"
alias +sr "turnspeeds 65536; +strafe"
alias +right2 "+right; +moveright"
alias -right2 "-right; -moveright"
alias -left2 "-left; -moveleft"

Torr Samaho wrote: No. At the moment the protected lumps are COLORMAP, PLAYPAL
Any reason why?
I don't really see how it could be abused, what with GL allowing fullbright and UNTRANLATED PNGs...

RE: Is KEYCONF a protected lump?

Posted: Fri Sep 28, 2012 2:55 am
by Ænima
Llewellyn wrote:
Torr Samaho wrote: No. At the moment the protected lumps are COLORMAP, PLAYPAL
Any reason why?
I don't really see how it could be abused, what with GL allowing fullbright and UNTRANLATED PNGs...
Well, you used to be able to exploit COLORMAP and PLAYPAL to make it seem as if you always had Infrared on. (by making all colors fully bright) This could give you an advantage on darker maps. There was a similar dehacked exploit floating around during the 96f days where you could make a DEH patch that gives all player states the BRIGHT property. Useful on that one CTF map "Sewers Smell Bad" where you otherwise can't see your opponents very well from a distance.