Christoph Oelckers
66cb7f61a4
- fixed rendering on narrow screens with an aspect ratio less than 4:3 and removed some parts that are no longer needed.
2020-08-14 21:01:27 +02:00
Christoph Oelckers
a5d9886aa9
- cleaned up the remnants of the old statusbar code.
2020-08-14 00:56:34 +02:00
Christoph Oelckers
67c340b573
- ported the inventory bar.
...
Now the panel system is only used for displaying the weapons.
2020-08-14 00:38:27 +02:00
Christoph Oelckers
70b2215f4e
- ported the minibar HUD.
2020-08-13 22:37:58 +02:00
Christoph Oelckers
8c7b93ceef
- ported the compass.
2020-08-13 22:13:56 +02:00
Christoph Oelckers
9ccf717311
- ported the inventory display on the status bar.
2020-08-13 21:57:53 +02:00
Christoph Oelckers
eafaa56834
- armor and key display.
2020-08-13 21:14:01 +02:00
Christoph Oelckers
188b2d2daa
- ammo and weapon display ported.
2020-08-13 20:14:53 +02:00
Christoph Oelckers
b50bdb1ca1
- SW: started transition of the status bar.
2020-08-13 18:45:55 +02:00
Christoph Oelckers
dc653bbdc0
- thinning out some crap.
2020-08-13 18:19:44 +02:00
Christoph Oelckers
d7f8d1a5bf
- replaced the border drawing code in SW with Blood's.
2020-08-13 17:54:17 +02:00
Christoph Oelckers
0b6f299d0e
- removed the bot code.
...
This would become a refactoring hassle, maybe re-add it later?
2020-08-13 00:45:50 +02:00
Christoph Oelckers
4538068bcc
- more SW cleanup, removed two more files.
2020-08-13 00:04:55 +02:00
Christoph Oelckers
bb6972abb4
- SW: get rid of redundant common_game.h
2020-08-12 23:43:21 +02:00
Christoph Oelckers
9c40c2f6af
- don't draw screenblends when not in a 3D view.
...
Fixed #174 .
2020-08-12 22:52:41 +02:00
Christoph Oelckers
aef59ef523
- migrated SW cheats to the generic system, removed the more pointless of SWP's cheats and filled in a few blanks.
2020-08-12 22:24:51 +02:00
Christoph Oelckers
80d1b71899
- fixed sounds disappearing when the owning actor was deleted.
...
These sounds now get unlinked so that they can play out normally.
Fixes #119 .
2020-08-12 20:15:02 +02:00
Evan Ramos
81f85ee480
SW: Fix regression causing the last heat seeker to be a normal missile
...
It was caused by the fix for crashing when firing outside the map.
Also port said fix to the bunny rockets.
2020-08-12 19:16:25 +02:00
Christoph Oelckers
09a3567f14
- fix some more sloppiness with Blood's global game state.
...
Fixes #171 .
2020-08-12 19:11:16 +02:00
Christoph Oelckers
2dad86a304
- made some adjustments to DMessageBoxMenu to handle screens that must close the menu before performing their option.
...
Fixes #173 . The "End Game" menu option needs this.
2020-08-12 19:04:19 +02:00
Christoph Oelckers
2d545767ef
- completely clear all texture data when setting a frame size.
...
SMK tries to draw a texture from it before the first frame has been rendered. This ensures that it gets a fully black frame.
Fixes #167 .
2020-08-12 01:32:05 +02:00
Christoph Oelckers
05fbfa3f25
- Blood: When starting a new game, reset the global flag immediately.
...
Otherwise the game can get stuck in an endless loop when trying to set up a level.
Fixes 168.
2020-08-12 01:16:29 +02:00
Christoph Oelckers
57edd370a7
- fixed: When quitting the game, first clear the menu.
...
This is to ensure that the menu stack is empty.
Fixes 170
2020-08-12 01:15:03 +02:00
Christoph Oelckers
cbfa8abd34
- fixed some messed up conditionals in RR's switch code.
...
Fixes #166
2020-08-12 00:31:04 +02:00
Christoph Oelckers
83796e9eed
- changed map startup order to first play a cutscene before loading the level.
...
Something with the timers is screwing up here if a cutscene gets played - Blood's timer code is even worse than Duke's.
Fixes #151 .
2020-08-11 23:21:08 +02:00
Christoph Oelckers
4c01f1e073
- don't count chickens as kill.
...
Fixes #160 .
2020-08-11 21:42:41 +02:00
Christoph Oelckers
0686928ee8
- fixed transition to credits in blood.
...
Fixes #150 .
2020-08-11 20:26:50 +02:00
Christoph Oelckers
fcc271ed7b
- treat 100 as maximum volume for 2D sounds when coming from the SFX data.
...
Without this, many sounds are way too quiet, e.g. at tne beginning of E2M1 or the end of E3M7.
Fixes #146 .
2020-08-11 20:17:56 +02:00
Christoph Oelckers
85364c2bb6
- let all video players respect the SoundEnabled setting.
...
Fixes #164 .
2020-08-11 19:52:54 +02:00
Mitchell Richters
e083f78f8e
- stop Duke screaming while falling if player puts the jet pack on.
...
No need to keep screaming if the player has saved themselves.
2020-08-11 15:40:02 +02:00
Christoph Oelckers
6a10a7f266
- changed the rules for dimming the menu to be more clear
...
It will no longer depend on the game state when the menu was opened but the current game state - only on the dedicated menu screen there's no dimming - everywhere else a dim gets applied.
Also renamed GS_DEMOSCREEN to GS_MENUSCREEN for clarity
2020-08-11 00:46:27 +02:00
Christoph Oelckers
000c00dc91
- block game input during intro cutscenes
...
Fixes #158
2020-08-11 00:42:08 +02:00
Mitchell Richters
7243c08379
- stop weapon from moving up and down while cl_weaponsway 0
is set.
...
* Default zDelta is -2048, so only add (zDelta / 128.) if `cl_weaponsway 1` and add (-2048. / 128.) otherwise.
* Fixes #134 a bit better.
2020-08-11 08:40:42 +10:00
Christoph Oelckers
1d03d3d6a2
- fixed HUD meter and crosshair default size.
...
Fixes #137
2020-08-10 23:06:24 +02:00
Christoph Oelckers
7a2b1ee0aa
- moved Blood's updatePauseStatus call to the main loop.
...
Fixes #149
2020-08-10 22:44:24 +02:00
Christoph Oelckers
030ca6f75d
- reset the timer after the initial cutscene in Blood
2020-08-10 22:22:27 +02:00
Christoph Oelckers
070f04093a
- clear the buffer for the cutscene textures when starting a new cutscene.
...
Otherwise the first frame may display garbage.
2020-08-10 22:16:02 +02:00
Christoph Oelckers
97b202955c
- strip the drive letter off WAV names for cutscenes.
2020-08-10 22:11:00 +02:00
Christoph Oelckers
5165834441
- handle GS_FULLCONSOLE in Blood
2020-08-10 22:02:58 +02:00
Christoph Oelckers
cf5be7fbfa
- default gl_control_tear to false.
...
This doesn't work that well with animated cutscenes.
2020-08-10 22:02:37 +02:00
Christoph Oelckers
e93ec79608
- Blood: restart music after level warp.
2020-08-10 21:41:16 +02:00
Christoph Oelckers
3ba5ca46c9
- fixed font alignment in Blood
2020-08-10 21:14:42 +02:00
Christoph Oelckers
ca740ad709
- increase volume for summary screen's speeches in Duke.
...
Fixes #125
2020-08-10 20:59:04 +02:00
Christoph Oelckers
b1c8046470
- fixed dimming checks for menu.
...
Now with proper game state management this can be done better.
2020-08-10 20:43:51 +02:00
Christoph Oelckers
28b9aafe69
- disable translucency for menu text shadows.
...
It didn't look that great.
2020-08-10 20:27:00 +02:00
Christoph Oelckers
7317caf567
- do not loop the scream sound on the summary screen.
...
Fixes 143.
2020-08-10 20:24:49 +02:00
Christoph Oelckers
8a2d34cceb
- fixed typo in BUNZ cheat.
2020-08-10 20:22:12 +02:00
Christoph Oelckers
ddf238ff19
- fixed cheat args parser.
...
Fixes 139
2020-08-10 20:18:21 +02:00
Mitchell Richters
09f347353a
- fix cl_weaponsway()
for Blood.
...
Fixes #134 .
2020-08-10 22:08:44 +10:00
Mitchell Richters
db6d2e4d89
- fix cl_viewbob()
for Blood.
...
Fixes #134 .
2020-08-10 22:08:44 +10:00
Mitchell Richters
4c74c172e3
- fix screenjob.cpp PlayVideo()
returning after stripping drive letter without checking whether it was able to re-open the file thereafter successfully.
...
Fixes #128 .
2020-08-10 21:15:17 +10:00
Christoph Oelckers
d3df4e580c
- do not restart one-page image scrollers with Enter
...
Instead go back one menu level.
Fixed #129
2020-08-10 01:12:53 +02:00
Christoph Oelckers
c7e664d3a6
- animate status bar elements
...
Fixes #127
2020-08-10 00:36:50 +02:00
Christoph Oelckers
0492c5f4d3
- optimized reverb settings.
...
Fixes #124
2020-08-09 13:26:48 +02:00
Mitchell Richters
a3a7a8f6be
- repeat of cf548e055e
for RR.
2020-08-09 16:41:42 +10:00
Mitchell Richters
fb6a58904a
- Set glcycle_t
class as active when stat fps
is active.
...
Fixes #122 .
2020-08-09 16:39:15 +10:00
Mitchell Richters
cf548e055e
- clamp player sprite's xvel between 0 and 512 to stop it going into the negative with rapid posx/posy changes due to teleporting.
...
* With steroids and a controller (controllers have a slightly higher max fvel/svel than a keyboard), I could not get xvel to exceed 503.
* Fixes #123 .
2020-08-09 16:24:48 +10:00
Christoph Oelckers
d731bf4e57
- fixed typo in floor damage check.
...
This rendered the boots ineffective on lava.
Fixes #114
2020-08-07 23:30:08 +02:00
Christoph Oelckers
dfa3519ebc
- stop screaming sound when landing.
...
Fixes #116
2020-08-07 22:20:29 +02:00
Christoph Oelckers
596367f10f
- Screenblend fixes.
2020-08-07 22:00:43 +02:00
Christoph Oelckers
f8c65839f0
- fixed broken jumping.
...
This was a nasty, but typical case for Duke where a variable did not contain what the name said and was carried along way too much code.
Fixes #112
2020-08-07 21:59:11 +02:00
Christoph Oelckers
4b69a181c3
- use symbolic constants for some statnums
2020-08-06 20:54:51 +02:00
Christoph Oelckers
4cfeb9b2cc
- fixed bouncing flame in VACA2.
...
Taking a hint from EDuke32 here.
2020-08-06 20:54:02 +02:00
Mitchell Richters
47dbc46213
- fixed the interpolation issues while on a crane.
...
* Partially addresses issues discussed in #105 and #106 .
2020-08-06 15:39:45 +10:00
Christoph Oelckers
9060abbafd
- 8 more SW headers gone.
2020-08-06 00:18:45 +02:00
Mitchell Richters
bbe05b0c81
- harden FinalizeInput()
with else blocks on each if statement after checking whether all movement is blocked.
...
Fixes #105 .
2020-08-06 07:25:04 +10:00
Christoph Oelckers
3e8ff96e6b
- added workaround for DukeDC's ending cutscene which was abusing undefined behavior in the original code.
2020-08-05 22:57:45 +02:00
Christoph Oelckers
514c029e47
- this wasn't supposed to get committed.
2020-08-05 22:40:47 +02:00
Christoph Oelckers
a30933871e
- fixed most end of game cutscenes.
2020-08-05 22:36:39 +02:00
Christoph Oelckers
ba3c353198
- use the correct code for the devastator in operateweapon.
...
The code present was from EDuke 2.1, I have no idea if it ever worked there. It was replaced with JFDuke's.
Fixes #104 .
2020-08-05 22:36:38 +02:00
Christoph Oelckers
72806e27eb
- cleanup work on SW
...
* consolidating smaller headers to reduce number of files
* remap all unmapped keyboard checks to corresponding buttons
2020-08-05 22:36:38 +02:00
Christoph Oelckers
4a0e155637
- fixed starting of bonus screen music.
...
It must not be done in the constructor of the screen but when actually playing the first frame.
2020-08-05 22:36:38 +02:00
Christoph Oelckers
4fef66c78a
- SW script parser cleanup
2020-08-05 22:36:37 +02:00
Mitchell Richters
a3dfa58662
- correct typo in Blood text string because I'm OCD like that.
2020-08-05 23:17:57 +10:00
Mitchell Richters
ddd30e742c
- ensure player's angle input while playing with cl_syncinput 0
is scaled appropriately when sector's lotag is ST_2_UNDERWATER.
2020-08-05 22:57:47 +10:00
Mitchell Richters
d1a68421bd
- fix cl_weaponsway
for Duke.
2020-08-05 20:04:14 +10:00
Mitchell Richters
2919cdcb44
- clamp the calculated horizAngle
to -180/180 to stop overflowing if player moves the mouse stupidly quick while cl_syncinput 1
is set.
2020-08-05 19:56:49 +10:00
Mitchell Richters
03bccb3a06
- functionalise significant portions of 0ee3ab4df8
.
2020-08-05 19:24:42 +10:00
Mitchell Richters
0142449d95
- clamp angle velocity as originally intended.
2020-08-05 17:59:46 +10:00
Mitchell Richters
736811e864
- properly tune sethorizon()
so that 'frominput' bool can be removed. Returning to centre function is essentially consistent between input states now.
2020-08-05 17:59:01 +10:00
Mitchell Richters
0ee3ab4df8
- revert most of e474ebc2b7
and adjust player's angle/horizon in a way that's compatible with cl_syncinput 0
and cl_syncinput 1
.
...
Previous attempts at leveraging `applylook()` and `sethorizon()` in different spots had pros and cons, but ultimately changing where these functions were called from was a net negative and had hard to diagnose issues.
Maintaining two types of player input is considerable work. Lessons have been learned and will be beneficial when it comes time to re-doing the other games. Ideas from PR #98 for optimising RRRA vehicle experience while `cl_syncinput 0` is in use have been implemented here.
2020-08-05 17:53:41 +10:00
Mitchell Richters
65428a2d1a
- revert ea98978ae7
and baed75ff8a
, and do in a more compatible way with synchronised and unsychronised input.
2020-08-05 17:43:14 +10:00
Mitchell Richters
bb0129c331
- add missed savegame addition when doing 9f8d50c0a1
.
2020-08-05 17:39:02 +10:00
Mitchell Richters
9f8d50c0a1
- add horizAdjust after processing pitch adjustments and call sethorizon()
in processinput_d()
after dokneeattack()
.
...
Fixes #101 .
2020-08-05 14:23:07 +10:00
Christoph Oelckers
454e0e36c9
- added a sound for advancing multi-screen menus.
...
Fixes #100 .
2020-08-05 00:32:29 +02:00
Christoph Oelckers
f363aca1b7
- fixed the crane in Duke3D.
...
Fixes #92
2020-08-05 00:28:14 +02:00
NY00123
22b492a5b3
SW: If a saved load is loaded at a point which is right after killing
...
a boss, ensure that FinishTimer and FinishAnim are appropriately
updated. This commit bumps GameVersion.
Additionally, the set of FinishAnim to 0 in NewLevel had
to move to a different location (InitLevelGlobals2), so
it doesn't override the value stored in the saved game.
# Conflicts:
# source/sw/src/game.cpp
2020-08-04 20:11:37 +02:00
Mitchell Richters
157933e902
- fixed regression from b9eef9c6a3
where the angle wouldn't apply if horizon was specified.
2020-08-04 23:13:22 +10:00
Mitchell Richters
b9eef9c6a3
- make ang and horiz optional on each game's warptocoords
CCMD as suggested in commentary for 1dc6edfa56
.
2020-08-04 22:33:17 +10:00
Mitchell Richters
8817914744
- add printcoords as an ADD_STAT()
define and move string code into static function for shared use between CCMD and ADD_STAT.
2020-08-04 21:56:32 +10:00
Mitchell Richters
b08d571be9
- create Blood dynamic CCMD warptocoords
.
...
* The setting of the player's horizon/viewangle probably still requires work, but warping to pos x/y/z works fine.
2020-08-04 19:10:43 +10:00
Mitchell Richters
a9b05eff86
- fix coolie death issues raised in https://forum.zdoom.org/viewtopic.php?f=340&t=69254 in manner suggested by OP.
2020-08-04 19:02:26 +10:00
Mitchell Richters
3e44d850b3
- fix issues with Exhumed and SW warptocoords
CCMDs when cherry-picking from public branch.
2020-08-04 18:04:44 +10:00
Mitchell Richters
24d847f4ec
- create Duke dynamic CCMD warptocoords
.
2020-08-04 18:04:02 +10:00
Mitchell Richters
af830518a6
- create Exhumed dynamic CCMD warptocoords
.
2020-08-04 17:53:37 +10:00
Mitchell Richters
1dc6edfa56
- create SW dynamic CCMD warptocoords
.
2020-08-04 17:53:34 +10:00
Mitchell Richters
38fa10326d
- create engine CCMD printcoords
.
2020-08-04 17:53:31 +10:00
Mitchell Richters
2bdf5f38e5
- remove code meant to have been deleted when performing e474ebc2b7
. Makes processinput_r()
match processinput_d()
.
2020-08-04 17:13:28 +10:00
Mitchell Richters
bc103595ce
- force scaleAdjust
to be 1 when cl_syncinput
is 1.
...
* Above calculation has some micro variances to it which were leading to strange behaviour like the bike's tilting not working properly with `cl_syncinput 1`.
2020-08-04 17:11:32 +10:00
Mitchell Richters
293c1af4c2
- interpolate p->TiltStatus
for RR(RA).
2020-08-04 17:11:00 +10:00