mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Tweaks keys for the PR override vars once more. Keyboards are annoying.
git-svn-id: https://svn.eduke32.com/eduke32@1698 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
917b924a0d
commit
7ae2a1071d
3 changed files with 24 additions and 18 deletions
|
@ -125,9 +125,9 @@ ends
|
||||||
// KP 1,2,3: RGB color (Shift inverts)
|
// KP 1,2,3: RGB color (Shift inverts)
|
||||||
//
|
//
|
||||||
// when aiming at wall or sector:
|
// when aiming at wall or sector:
|
||||||
// Ctrl-Shift-KP/ enable/disable parallax override
|
// ----Alt-KP/ enable/disable parallax override /// none, toggle them manually in the OSD
|
||||||
// Ctrl-Shift-KP* enable/disable bias override
|
// ----Alt-KP* enable/disable bias override /// none, toggle them manually in the OSD
|
||||||
// when overrides are on:
|
// when the respective overrides are on:
|
||||||
// KP 5,8: parallaxscale
|
// KP 5,8: parallaxscale
|
||||||
// KP 4,6: parallaxbias
|
// KP 4,6: parallaxbias
|
||||||
// KP /,*: specularfactor
|
// KP /,*: specularfactor
|
||||||
|
@ -136,10 +136,10 @@ ends
|
||||||
// Also try Shift and/or Ctrl modifiers for different increments
|
// Also try Shift and/or Ctrl modifiers for different increments
|
||||||
defstate fiddlewithlights
|
defstate fiddlewithlights
|
||||||
var minval maxval
|
var minval maxval
|
||||||
|
/*
|
||||||
ifaimingsprite nullop else
|
ifaimingsprite nullop else
|
||||||
{
|
{
|
||||||
ifeitheralt ifhitkey KEY_gSLASH
|
ifeithershift ifhitkey KEY_gSLASH
|
||||||
{
|
{
|
||||||
xor pr_overrideparallax 1, and pr_overrideparallax 1
|
xor pr_overrideparallax 1, and pr_overrideparallax 1
|
||||||
ife pr_overrideparallax 1
|
ife pr_overrideparallax 1
|
||||||
|
@ -147,7 +147,7 @@ defstate fiddlewithlights
|
||||||
else
|
else
|
||||||
quote "OVERRIDE POLYMER PARALLAX: OFF"
|
quote "OVERRIDE POLYMER PARALLAX: OFF"
|
||||||
}
|
}
|
||||||
else ifeitheralt ifhitkey KEY_gSTAR
|
else ifeithershift ifhitkey KEY_gSTAR
|
||||||
{
|
{
|
||||||
xor pr_overridespecular 1, and pr_overridespecular 1
|
xor pr_overridespecular 1, and pr_overridespecular 1
|
||||||
ife pr_overridespecular 1
|
ife pr_overridespecular 1
|
||||||
|
@ -156,7 +156,7 @@ defstate fiddlewithlights
|
||||||
quote "OVERRIDE POLYMER SPECULAR: OFF"
|
quote "OVERRIDE POLYMER SPECULAR: OFF"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// if aiming at sector or wall
|
// if aiming at sector or wall
|
||||||
ifaimingsprite nullop
|
ifaimingsprite nullop
|
||||||
else ifn pr_overrideparallax 0
|
else ifn pr_overrideparallax 0
|
||||||
|
@ -169,18 +169,19 @@ defstate fiddlewithlights
|
||||||
ifhitkey KEY_KP4 set j -1, ifhitkey KEY_KP6 set j 1
|
ifhitkey KEY_KP4 set j -1, ifhitkey KEY_KP6 set j 1
|
||||||
ife k 0 ifn j 0 set k 2
|
ife k 0 ifn j 0 set k 2
|
||||||
|
|
||||||
ifeithershift mul j 10
|
ifeitheralt mul j 10
|
||||||
ifeitherctrl mul j 10
|
ifeitherctrl mul j 10
|
||||||
|
|
||||||
switch k
|
switch k
|
||||||
case 0: break;
|
// "break" breaks too far or there's something wrong with the switch -- needs to be looked at
|
||||||
|
// case 0: break;
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
set k pr_parallaxscale
|
set k pr_parallaxscale
|
||||||
ftoi k PSCALESTEPS // must convert to scaled integer, maps 0..1 to 0..PARALLAXSTEPS
|
ftoi k PSCALESTEPS // must convert to scaled integer, maps 0..1 to 0..PARALLAXSTEPS
|
||||||
set minval MINPARALLAXSCALE, mul minval PSCALESTEPS
|
set minval MINPARALLAXSCALE, mul minval PSCALESTEPS
|
||||||
set maxval MAXPARALLAXSCALE, mul maxval PSCALESTEPS
|
set maxval MAXPARALLAXSCALE, mul maxval PSCALESTEPS
|
||||||
add k j, al k, clamp k minval maxval, al k
|
add k j, clamp k minval maxval
|
||||||
itof k PSCALESTEPS // convert back
|
itof k PSCALESTEPS // convert back
|
||||||
qsprintf TQUOTE "PARALLAX SCALE: %f" k, quote TQUOTE
|
qsprintf TQUOTE "PARALLAX SCALE: %f" k, quote TQUOTE
|
||||||
set pr_parallaxscale k
|
set pr_parallaxscale k
|
||||||
|
@ -199,8 +200,9 @@ defstate fiddlewithlights
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
endswitch
|
endswitch
|
||||||
|
//quote "zxczxc"
|
||||||
}
|
}
|
||||||
|
//quote "asdasd"
|
||||||
// if aiming at sector or wall
|
// if aiming at sector or wall
|
||||||
ifaimingsprite nullop
|
ifaimingsprite nullop
|
||||||
else ifn pr_overridespecular 0
|
else ifn pr_overridespecular 0
|
||||||
|
@ -213,11 +215,11 @@ defstate fiddlewithlights
|
||||||
ifhitkey KEY_KP7 set j -1, ifhitkey KEY_KP9 set j 1
|
ifhitkey KEY_KP7 set j -1, ifhitkey KEY_KP9 set j 1
|
||||||
ife k 0 ifn j 0 set k 4
|
ife k 0 ifn j 0 set k 4
|
||||||
|
|
||||||
ifeithershift mul j 10
|
ifeitheralt mul j 10
|
||||||
ifeitherctrl mul j 10
|
ifeitherctrl mul j 10
|
||||||
|
|
||||||
switch k
|
switch k
|
||||||
case 0: break;
|
// case 0: break;
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
set k pr_specularfactor
|
set k pr_specularfactor
|
||||||
|
@ -245,7 +247,7 @@ defstate fiddlewithlights
|
||||||
endswitch
|
endswitch
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//quote "qweqwe"
|
||||||
// if aiming at a sprite that's not a Polymer light
|
// if aiming at a sprite that's not a Polymer light
|
||||||
ifaimingsprite set k 1 else set k 0
|
ifaimingsprite set k 1 else set k 0
|
||||||
|
|
||||||
|
|
|
@ -7793,7 +7793,9 @@ static int32_t osdcmd_scriptinfo(const osdfuncparm_t *parm)
|
||||||
return OSDCMD_OK;
|
return OSDCMD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#ifdef DEBUGGINGAIDS
|
||||||
|
extern void X_Disasm(ofstype beg, int32_t size);
|
||||||
|
|
||||||
static int32_t osdcmd_disasm(const osdfuncparm_t *parm)
|
static int32_t osdcmd_disasm(const osdfuncparm_t *parm)
|
||||||
{
|
{
|
||||||
int32_t i;
|
int32_t i;
|
||||||
|
@ -7994,7 +7996,9 @@ static int32_t registerosdcommands(void)
|
||||||
OSD_RegisterFunction("enableevent", "enableevent <all|EVENT_...|(event number)>", osdcmd_endisableevent);
|
OSD_RegisterFunction("enableevent", "enableevent <all|EVENT_...|(event number)>", osdcmd_endisableevent);
|
||||||
OSD_RegisterFunction("disableevent", "disableevent <all|EVENT_...|(event number)>", osdcmd_endisableevent);
|
OSD_RegisterFunction("disableevent", "disableevent <all|EVENT_...|(event number)>", osdcmd_endisableevent);
|
||||||
OSD_RegisterFunction("osd_tryscript", "osd_tryscript: toggles execution of M32 script on invalid OSD command", osdcmd_vars_pk);
|
OSD_RegisterFunction("osd_tryscript", "osd_tryscript: toggles execution of M32 script on invalid OSD command", osdcmd_vars_pk);
|
||||||
// OSD_RegisterFunction("disasm", "disasm [s|e] <state or event number>", osdcmd_disasm);
|
#ifdef DEBUGGINGAIDS
|
||||||
|
OSD_RegisterFunction("disasm", "disasm [s|e] <state or event number>", osdcmd_disasm);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ static int32_t dist(spritetype *s1,spritetype *s2)
|
||||||
}
|
}
|
||||||
///
|
///
|
||||||
|
|
||||||
#if 0
|
#ifdef DEBUGGINGAIDS
|
||||||
void X_Disasm(ofstype beg, int32_t size)
|
void X_Disasm(ofstype beg, int32_t size)
|
||||||
{
|
{
|
||||||
instype *p;
|
instype *p;
|
||||||
|
@ -996,7 +996,7 @@ skip_check:
|
||||||
|
|
||||||
x = mulscale14(x, dacos);
|
x = mulscale14(x, dacos);
|
||||||
y = mulscale14(y, dacos);
|
y = mulscale14(y, dacos);
|
||||||
z = divscale14(horiz, veclen);
|
z = divscale14(-horiz, veclen);
|
||||||
}
|
}
|
||||||
|
|
||||||
Gv_SetVarX(zvar, z);
|
Gv_SetVarX(zvar, z);
|
||||||
|
|
Loading…
Reference in a new issue