mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
a.m32: don't clamp SE50 extra (=horiz) to [-500 500] with KP8/KP5.
git-svn-id: https://svn.eduke32.com/eduke32@4197 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c323fac09d
commit
6c00f0e822
1 changed files with 17 additions and 6 deletions
|
@ -207,6 +207,7 @@ 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
|
||||||
|
var val
|
||||||
|
|
||||||
// if aiming at sector or wall
|
// if aiming at sector or wall
|
||||||
ifaimingsprite nullop
|
ifaimingsprite nullop
|
||||||
|
@ -335,20 +336,30 @@ defstate fiddlewithlights
|
||||||
|
|
||||||
ife .lotag 50
|
ife .lotag 50
|
||||||
{
|
{
|
||||||
// horiz
|
// KP8/KP5: horiz
|
||||||
ifeithershift set j 1 else set j 10
|
ifeithershift set j 1 else set j 10
|
||||||
ifhitkey KEY_gUP add .extra j
|
|
||||||
else ifhitkey KEY_gKP5 sub .extra j
|
|
||||||
clamp .extra -500 500
|
|
||||||
|
|
||||||
// angle
|
ifhitkey KEY_gUP nullop
|
||||||
|
else ifhitkey KEY_gKP5 mul j -1
|
||||||
|
else set j 0
|
||||||
|
|
||||||
|
ifvarn j 0
|
||||||
|
{
|
||||||
|
// change it
|
||||||
|
set val .extra
|
||||||
|
add val j
|
||||||
|
clamp val -32768 32767
|
||||||
|
set .extra val
|
||||||
|
}
|
||||||
|
|
||||||
|
// KP4/KP6: angle
|
||||||
set j 128
|
set j 128
|
||||||
ifeitherctrl set j 4
|
ifeitherctrl set j 4
|
||||||
ifeithershift { ifeitherctrl set j 1 else set j 32 }
|
ifeithershift { ifeitherctrl set j 1 else set j 32 }
|
||||||
ifhitkey KEY_gLEFT sub .ang j
|
ifhitkey KEY_gLEFT sub .ang j
|
||||||
else ifhitkey KEY_gRIGHT add .ang j
|
else ifhitkey KEY_gRIGHT add .ang j
|
||||||
|
|
||||||
// radius
|
// KP+/KP-: radius
|
||||||
ifeitherctrl
|
ifeitherctrl
|
||||||
{
|
{
|
||||||
ifholdkey KEY_gMINUS add .shade 9
|
ifholdkey KEY_gMINUS add .shade 9
|
||||||
|
|
Loading…
Reference in a new issue