Commit Graph
101 Commits
Author SHA1 Message Date
antoniou79 186de62ffb BLADERUNNER: Clean up and synch screenRectangle and bbox
For actors and their corresponding screenObjects

This should fix the issue with Sadik's remnant hitbox in the middle of the bridge at UG18
2020-09-04 23:35:34 +03:00
Thanasis Antoniou 11adaa4f3d BLADERUNNER: Add engine option to disable stamina drain
Allows not having to constantly click the mouse to keep McCoy from slowing down

Even though this was a bug in the original game, having this option re-creates the original experience of McCoy running quite fast (still keeping the 30 fps limit) and not slowing down when the player stops clicking.
2020-02-27 20:27:29 +02:00
Thanasis Antoniou 9d3d87e678 BLADERUNNER: Rename script methods that refer to Set
A few methods were named as though refering to Scene Ids, but are refering to Set Ids

enteredScene, EnteredScene, otherAgentExitedThisScene,OtherAgentExitedThisScene, otherAgentEnteredThisScene, OtherAgentEnteredThisScene were renamed respectively to enteredSet, EnteredSet, otherAgentExitedThisSet,OtherAgentExitedThisSet, otherAgentEnteredThisSet, OtherAgentEnteredThisSet
2020-02-24 21:43:34 +02:00
Thanasis Antoniou cd076b26ae BLADERUNNER: Using preincrement and pre-decrease where possible
In case the compiler won't optimize such cases
2020-02-24 21:24:06 +02:00
Thanasis Antoniou d4c659610d BLADERUNNER: Fixes for McCoy's stamina system and drain
The original game had broken stamina system we have it fixed.

This means that in vanilla mode, McCoy's stamina will drain fast if the player does not click the mouse, but he will increase speed up to a max, if the player keeps clicking the mouse.
In Restored Content, we allow McCoy to keep his speed (so that the player does not have to keep clicking); the stamina drain will still kick in but it will be at a slower rate and practically won't be noticeable most of the time.
2020-02-05 18:28:46 +02:00
Thanasis Antoniou 8791a89554 BLADERUNNER: Some clarification comments for methods 2020-02-04 17:55:27 +02:00
Thanasis Antoniou c4d62cedf9 BLADERUNNER: Spelling correction in comment 2019-10-25 01:46:36 +03:00
D G Turner 522c5b6548 BLADERUNNER: Add Some Missing Switch Default Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-10-04 01:34:31 +01:00
Thanasis Antoniou ac912a5023 BLADERUNNER: Revert previous changes in clues listing
Keep the important bug fix which was in KIASectionSuspects::populateAcquiredClues

Some of the changes in the previous commit were due to confusing the role of the getClueIdByIndex method
2019-09-05 13:17:53 +03:00
Thanasis Antoniou 5941ab7858 BLADERUNNER: Fix displaying of clues in KIA
Fixes bug where clues with no type would appear in KIA sections

"End of Act 2" would appear in Sadik's and Clovis' suspect pages, and in Bradbury crime page, whereas Sadik's photo would not appear in Sadik's page.
2019-09-05 10:39:51 +03:00
Thanasis Antoniou ac3ed34610 BLADERUNNER: Fix restored walkers idle behavior and AI_Movement_Track_Append_With_Facing 2019-08-28 21:32:12 +03:00
Thanasis Antoniou c8a23cc401 BLADERUNNER: Fix unsorted args for getRandomNumberRng
Fix for bug #11034
2019-07-29 13:57:56 +03:00
Thanasis Antoniou af9ec2f691 BLADERUNNER: Revert uint32 vars to int32 if they could be init to -1 2019-07-22 01:09:23 +03:00
Thanasis Antoniou caa4578add BLADERUNNER: Use unsigned 32bit diff for time durations 2019-07-17 19:09:15 +03:00
Peter Kohaut 39e4fdb98c BLADERUNNER: Use ScummVM word wrapping algorithm 2019-07-16 21:56:33 +02:00
Thanasis Antoniou c9baa9867c BLADERUNNER: Possible fix for facing angle assertion fault 2019-07-11 07:26:33 +03:00
Thanasis Antoniou f3cdbd2ea9 BLADERUNNER: _playerActorIdle should affect McCoy only
Should be set or cleared only when McCoy is the actor who is walking and affect only McCoy
2019-06-22 11:01:39 +03:00
Thanasis Antoniou 35daa692af BLADERUNNER: Fix bad timer initialization for actors after LOAD 2019-05-31 16:43:10 +03:00
Thanasis Antoniou 203d82a1a0 BLADERUNNER: Officers and combat bugfixes part 1
The debug messages and comments will all be removed after this series of fixes
2019-05-20 13:12:06 +03:00
Thanasis Antoniou 618d48dde8 BLADERUNNER: Mainframe talkie restored 2019-05-13 03:29:00 +03:00
Thanasis Antoniou 96660273fd BLADERUNNER: Fix bad new game pos for player 2019-05-09 19:18:08 +03:00
Peter Kohaut d8ba527cf0 BLADERUNNER: Fix Moraji floating in DR04 2019-05-05 22:16:28 +02:00
Thanasis Antoniou d666eb154a BLADERUNNER: Fix rats re-spawn and UG09, UG13 bad paths
UG09 bad path allowed McCoy to teleport to the pipe top left. UG13, when elevator was up McCoy could walk in the empty chute
2019-05-04 17:25:34 +03:00
Thanasis Antoniou a9404284c3 BLADERUNNER: Fix Officer Leary crowd interrogation
He will now resume interrogation after McCoy interrupts him

Also used named constants for timers
2019-04-09 16:32:51 +03:00
Thanasis Antoniou f04705084c BLADERUNNER: Support wait for dialogue queues to finish
Fixes a Crazylegs bug where he can interrupt himself

Could probably be used elsewhere if there are any other such cases.
2019-04-04 21:03:10 +03:00
Thanasis Antoniou 6e45a702a2 BLADERUNNER: Moonbus fixes (Izo and Luther)
Also fixed a typo that resulted in Izo's corpse persisting past chapter 2 at RC03
2019-03-28 01:33:24 +02:00
Peter Kohaut 45831a7324 BLADERUNNER: Fixed McCoy anim in spinner at PS01
McCoy will not disappear prematurely in PS01 when he enters the spinner.
2019-03-09 22:16:38 +01:00
Thanasis Antoniou 90688204d2 BLADERUNNER: Subtitles code improvements
Allow for 4 lines of subtitles, but start from using 2 lines by default

Also added debugger command to allow for immediate text testing for subtitles
2019-03-09 20:01:29 +02:00
Peter Kohaut d4e7e957b0 BLADERUNNER: Fixed panning of speech
Cleanup of other sound pannings
2019-03-06 20:41:02 +01:00
Peter Kohaut 59f4893547 BLADERUNNER: Fixed stereo balance for speech 2019-03-04 19:43:45 +01:00
Peter Kohaut 9c25be9121 BLADERUNNER: Cleanup of TODO notes 2019-03-04 19:43:36 +01:00
Thanasis Antoniou ada6947918 BLADERUNNER: Fix Zuben not flinching when shot at 2019-03-04 12:14:29 +02:00
Peter Kohaut f70251819a BLADERUNNER: Fixed CppCheck warnings
Rat interaction at UG15 is now working exactly as in the original game.
Before the bridge didn't break if player shot the rat on it.
2019-02-23 11:39:54 +01:00
Thanasis Antoniou 68f9acad0d BLADERUNNER: Restore acquireCluesByRelations checks 2019-02-23 04:18:39 +02:00
Peter Kohaut 4886b0581e BLADERUNNER: Fix Coverity issues 2019-02-20 23:02:05 +01:00
Peter Kohaut 60a30b904b BLADERUNNER: Added shorty mode
Available via ScummVM game options
2019-02-10 20:34:05 +01:00
Peter Kohaut dbfc657a2c BLADERUNNER: Added sitcom mode
Available via ScummVM game options
2019-02-10 19:47:22 +01:00
Peter Kohaut cd43b7a11a BLADERUNNER: Cleanup of walking code
Fixed missing "must reach" in a actorwalk::tick
2019-02-02 00:50:16 +01:00
Peter Kohaut 7f421be835 BLADERUNNER: Fixed small issue in combat calculation
Better variable names in actor combat classes.
2019-01-28 20:45:59 +01:00
Peter Kohaut 364a2aa0fb BLADERUNNER: More game constants
Added Region_Check functionality
Code cleanup
2019-01-21 22:03:01 +01:00
Peter Kohaut 5e2fb6fb26 BLADERUNNER: More variable names in the game scripts
Fixed some errors as well
2019-01-19 23:15:41 +01:00
Peter Kohaut e45aad9136 BLADERUNNER: Fixed rotation animation
Animated rotation wasnt checking for angle boundaries properly.
2019-01-19 23:15:41 +01:00
Thanasis Antoniou f101906bc2 BLADERUNNER: Removed compile time macros, added synch with GUI 2018-12-25 12:35:52 +01:00
Thanasis Antoniou a86625700f BLADERUNNER: Added subtitles support and checkbox in KIA 2018-12-25 12:35:52 +01:00
Peter Kohaut 2f242a10da BLADERUNNER: Added time control and game pausing 2018-12-15 23:02:58 +01:00
Peter Kohaut 824ecc0aad BLADERUNNER: Preliminary saving & loading support
Saving and loading is accessible via ScummVM dialogs.
No in-game UI support yet.

It is possible to load saves from original game via debugger console.
ScummVM saves have additional header and are incompatibile with original
game.
2018-11-24 08:39:03 +01:00
David Fioramonti 3922370275 BLADERUNNER: Add cos/sine table
This uses the one in Common.

The engine now contains a 10-bit cosine and sine table.
It used mostly for vector math.

This also allows two vector functions to be removed from vector.h.
2018-08-03 14:50:45 +02:00
Eugene Sandulenko aad613bab8 BLADERUNNER: Fix another warning 2018-06-29 09:23:12 +02:00
Eugene Sandulenko aeb1e2e07d BLADERUNNER: Fix warnings 2018-06-29 09:20:20 +02:00
Eugene Sandulenko 56a817d53e BLADERUNNER: Fixed bug in Actor::acquireCluesByRelations() 2018-03-30 10:14:10 +02:00