Christoph Oelckers
8256b54005
- applied a few fixes:
...
* removed the timer callback stuff that came back through the backdoor.
* do not use gameclock in the UI code - use the underlying timer directly.
* UpdateSounds must still use totalclock, until this can be refactored in its entirety.
2020-08-25 20:20:35 +02:00
Mitchell Richters
c888bc802d
- SW: Make a bit more use of the calculated smooth ratio.
2020-08-25 19:51:32 +02:00
Mitchell Richters
386661f1ba
- SW: Migrate to GZDoom time code like Duke.
2020-08-25 19:51:32 +02:00
Christoph Oelckers
cf36e7d770
- SW: stop cutscene sound before going to the summary screen.
2020-08-25 18:28:50 +02:00
Christoph Oelckers
7d30218d8e
- fixed: In SW the automap follow mode blocked all game input, even when the automap was off.
2020-08-25 18:09:57 +02:00
Christoph Oelckers
7c1e64757a
- use generalized automap label code for Shadow Warrior, too.
2020-08-25 00:16:02 +02:00
Christoph Oelckers
e7c58a5b29
- make hud_scale a floating point CVAR.
2020-08-24 21:48:47 +02:00
Christoph Oelckers
6d1e3e77fc
- fixed item percentage display on SW's status bar.
...
Fixes #242
2020-08-24 20:46:14 +02:00
Christoph Oelckers
76811a1881
- InputState cleanup
...
This removes most of the InputState class because it is no longer used.
The only remaining places still checking scan codes are the modifiers for sizeup and sizedown.
All the rest was remapped to safer methods. The multiplayer taunts are currently inoperable, they will need support of shift-bindings to get proper support.
2020-08-24 20:34:18 +02:00
Christoph Oelckers
c09a5150a9
- added some predefined fullscreen modes
...
This is to cut down on boilerplate code because these encode the virtual screen size in the mode parameter, making it unnecessary to specify a virtual size separately.
2020-08-24 20:25:53 +02:00
Christoph Oelckers
f1a988b221
- make use of map bindings
...
All automap controls have been moved there, and sizeup/sizedown have been made CCMDs, taking screen size management entirely out of the game modules
2020-08-24 20:20:15 +02:00
Christoph Oelckers
debb4b17b6
- transitioned SW's automap to the global variables
...
Also copied the automap label output to the status bar for proper ordering.
2020-08-24 19:36:17 +02:00
Christoph Oelckers
7859a29e95
- use global variables to track automap state
...
So far implemented in Duke/RR.
2020-08-24 19:31:43 +02:00
Christoph Oelckers
91b31cec39
- fixed: hud_messages completely blocked the messages, even from going to the console.
...
It should only block the on-screen notification display, which the backend already implements. The game code should not check this CVAR again.
2020-08-23 22:46:53 +02:00
Christoph Oelckers
4469cf7edb
- only go from menu to console when closing with Escape.
2020-08-23 21:24:31 +02:00
Christoph Oelckers
c0da85d0ff
- SW: fixed: When entering the summary screen, clear the FinishedLevel variable immediately.
...
So that its value won't stick around and trigger the screen again. Same when an exception occurs.
Fixes #232 .
2020-08-23 20:55:21 +02:00
Christoph Oelckers
adb98a47ba
- restructured the main loop code so that the actual loop is in the common code.
2020-08-23 17:47:05 +02:00
Christoph Oelckers
4467547c8c
- fixed fortune cookie message display.
...
Fixes #219 .
2020-08-21 21:15:32 +02:00
Christoph Oelckers
a3915c6861
- added missing menu sounds for SW.
...
Fixes #220 .
2020-08-21 21:04:16 +02:00
Christoph Oelckers
0f3555fc7c
- fixed speed of SW's credits.
...
Fixes #229 .
2020-08-21 19:38:38 +02:00
Mitchell Richters
b9038db433
- remove all the discrete definitions of variables from alt HUDs in Duke/RR/SW.
2020-08-21 22:20:54 +10:00
Mitchell Richters
8e10bb8856
- SW: Don't flash the weapon's ammo icon when flashing text for low ammo in DrawHUD2.
2020-08-21 10:18:31 +02:00
Mitchell Richters
4e0bef35c0
- simplify some of my math in the the fullscreen HUD drawers.
...
May no one ever see the original code again... :S
2020-08-21 16:23:44 +10:00
Mitchell Richters
3067bad9b9
- Blood/Duke/Exhumed/SW: Fix map
CCMD so the game doesn't return to the menu if incorrect map specified (or crash in the case of Exhumed).
2020-08-21 15:11:02 +10:00
Mitchell Richters
cc15de3ed9
- SW: Comment out code block causing interpolation issues when initialising a nuke.
...
* If there was a `pNukePresent()` function, that's where the commented out code belongs.
* I believe the rocket switching type was simplified during development and this is just an omission that's now obvious with interpolation. Only just, but you can notice this in an uninterpolated state while bobbing.
* Fixes #212 .
2020-08-20 08:52:22 +10:00
Mitchell Richters
7698723e43
- SW: Fix cheats via the console following changes in e22d9b21e4
.
2020-08-20 07:43:57 +10:00
Christoph Oelckers
dd20d74c51
- revert unintended change of text labels.
2020-08-19 19:18:47 +02:00
Christoph Oelckers
cbe4618a91
- do not play the random sword selection sounds on a map's very first tic.
...
This tends to interfere with map specific voice lines.
Fixes #214
2020-08-19 19:07:06 +02:00
Christoph Oelckers
c2fd4d3d18
- SW: reset screen blend when resetting a level.
...
Fixes #211
2020-08-19 17:31:05 +02:00
Christoph Oelckers
5cfd427e42
- renamed local totalclock variables to reduce noise for the forthcoming timer cleanup.
2020-08-19 17:23:18 +02:00
Christoph Oelckers
91cc6a657b
- tick the fortune cookie display within the playsim code to ensure its duration is handled properly.
...
Fixes #204
2020-08-19 17:10:54 +02:00
Christoph Oelckers
e22d9b21e4
- changed SW's cheat prefix from 'sw' to 'lw' (i.e. Lo Wang) so that the cheats do not start with two movement keys.
2020-08-19 16:51:15 +02:00
Mitchell Richters
042caf1b21
- SW: Implement cl_weaponsway
for game.
2020-08-19 15:35:04 +10:00
Christoph Oelckers
6eba7dc410
- play music on the summary screen and check for advancing every frame.
...
Fixes #203
2020-08-18 20:26:16 +02:00
Christoph Oelckers
5acd7cf5e1
- SW: Stop music when ending game.
...
Fixes #205
2020-08-18 20:15:06 +02:00
Mitchell Richters
8d101a4a57
- SW: Properly fix the Uzi when reloading.
2020-08-18 22:48:58 +10:00
Mitchell Richters
471355dc2b
- SW: Fix some typos in pUziReload()
, fix some interpolation issues in pUziClip()
and fix sequence of events in InitWeaponUzi2()
.
2020-08-18 21:40:48 +10:00
Mitchell Richters
a29d7bd3cd
- SW: Change pSpawnSprite()
x/y coordinates from int to double to preserve precision for some calls.
2020-08-18 21:39:20 +10:00
Mitchell Richters
7af5d26feb
- SW: Fix the Uzi's reload interpolation issues.
2020-08-18 20:58:58 +10:00
Mitchell Richters
78e0e94f58
- SW: Fix interpolation issues with sword, fists and heart.
2020-08-18 20:49:12 +10:00
Mitchell Richters
5cc30ad7c6
- SW: Increase precision of x/y coordinates where possible.
2020-08-18 18:26:04 +10:00
Mitchell Richters
d79c61d559
- SW: Interpolate between ox
/x
and oy
/y
coordinates in pDisplaySprites()
.
2020-08-18 18:26:02 +10:00
Mitchell Richters
df6f27530e
- SW: Define ox
and oy
in PANEL_SPRITEstruct
and back up panel sprite x/y coordinates where appropriate.
2020-08-18 18:26:00 +10:00
Mitchell Richters
da2b1347ef
- SW: Change smoothratio
from int to double for storing returned result from CalcSmoothRatio()
with full precision.
2020-08-18 18:25:58 +10:00
Mitchell Richters
e8faca52a2
- SW: Prepare draw and panel code for interpolation of weapon's x/y coordinates.
2020-08-18 18:25:56 +10:00
Christoph Oelckers
a535f62d4a
- fixed: SW's intro cutscene must not terminate its sound.
...
Fixes #201 .
2020-08-18 00:04:48 +02:00
Christoph Oelckers
65cb267d56
- save the cookie texts in a savegame and clear them on level exit. Also handle them on a per-player basis.
...
Fixes #196
2020-08-17 22:05:14 +02:00
Christoph Oelckers
9159855957
- SW: set the main view's projection after rendering the camera texture, not before.
...
Otherwise the main view will take over the projection settings from the camera texture.
Fixes #194 .
2020-08-17 21:33:42 +02:00
Christoph Oelckers
ba2ff12f5b
- fixed summary screen properly this time.
...
Fixes #195
2020-08-17 21:19:18 +02:00
Christoph Oelckers
55de06ab2f
- fixed a few incorrect text labels.
...
Fixes #193
2020-08-17 20:55:57 +02:00