138 Commits

Author SHA1 Message Date
Martin Gerhardy
aaa7645a52 TWINE: convert the holomap releated code to be more like the original source release 2023-01-17 19:11:34 +01:00
Martin Gerhardy
b40f693430 TWINE: converted TO_SECONDS into a function
because the lba1 and lba2 behaviour differs
2023-01-16 17:46:28 +01:00
Martin Gerhardy
890582a20c TWINE: prepare life and move scripts for v2 2023-01-16 17:46:28 +01:00
Martin Gerhardy
ff200665c5 TWINE: added empty files for v2 script files 2023-01-16 17:46:28 +01:00
Martin Gerhardy
0064723b24 TWINE: support different angles for lba1 and lba2 2023-01-16 17:46:28 +01:00
Martin Gerhardy
ddddb75978 TWINE: more lba2 constants and conditions 2023-01-16 17:46:28 +01:00
Martin Gerhardy
d4fd349bc4 TWINE: fill some more lba2 flags 2023-01-16 17:46:28 +01:00
Martin Gerhardy
38a5f40ac1 TWINE: added lba2 opcodes 2023-01-16 17:46:28 +01:00
Martin Gerhardy
d1dc78aa64 TWINE: converted the condition return type into an enum 2023-01-16 17:46:28 +01:00
Martin Gerhardy
417f278ee9 TWINE: renamed method and added comment 2023-01-16 17:46:28 +01:00
Martin Gerhardy
0d2c93ea39 TWINE: added (unimplemented) check for a cdrom release
this is used in scenes 80 and 117

MIDI_OFF
IF CDROM == 1
  PLAY_CD_TRACK 8
  SET_TRACK_OBJ 1 11
ELSE
ENDIF

and

MIDI_OFF
SET_TRACK 0
IF CDROM == 0
  ANIM_OBJ 2 178
ELSE
ENDIF

So it looks like as it could have influence on the game

maybe this should be an option...
2023-01-16 17:46:28 +01:00
Martin Gerhardy
7dfc51daf3 TWINE: added lba2 conditions 2023-01-16 17:46:28 +01:00
Martin Gerhardy
370a33392e TWINE: moved constant into cpp file 2023-01-16 17:46:28 +01:00
Martin Gerhardy
1c94594d3c TWINE: moved script execution into base class 2023-01-16 17:46:28 +01:00
Martin Gerhardy
2111609f62 TWINE: moved some script related stuff into shared headers 2023-01-16 17:46:28 +01:00
Martin Gerhardy
c65033ceca TWINE: add interface to life and move scripts 2023-01-16 17:46:28 +01:00
Martin Gerhardy
56c70427c9 TWINE: renamed script classes for v1 (lba1) 2023-01-16 17:46:28 +01:00
Martin Gerhardy
6d61596cf8 TWINE: fixed comment 2023-01-16 17:46:28 +01:00
Martin Gerhardy
b5eb958d8d TWINE: renamed methods to match original sources 2023-01-15 11:28:58 +01:00
Martin Gerhardy
c32a1d6b2e TWINE: renamed members 2023-01-15 11:28:58 +01:00
Martin Gerhardy
decbede936 TWINE: renamed members and methods 2023-01-15 11:28:58 +01:00
Martin Gerhardy
38ce97cb9c TWINE: debug command to switch the game chapter 2023-01-15 11:28:58 +01:00
Martin Gerhardy
1ab3df79a8 TWINE: renamed methods and members to match the original sources 2023-01-15 11:28:58 +01:00
Martin Gerhardy
6bbc92ef53 TWINE: renamed members and methods to match original sources 2023-01-07 13:09:15 +01:00
Martin Gerhardy
cd7e3ec6e4 TWINE: renamed method to match original sources 2022-07-24 19:05:36 +02:00
Martin Gerhardy
dd56f35477 TWINE: after watching the cutscenes at the television, the background is not properly restored
https://bugs.scummvm.org/ticket/13683
2022-07-12 20:25:58 +02:00
Martin Gerhardy
0540f7cf5c TWINE: Pressing W to talk to people in sporty mode also makes you jump
... after the interaction finishes

see https://bugs.scummvm.org/ticket/13676
2022-07-10 20:14:03 +02:00
Martin Gerhardy
2a707b3dc9 TWINE: synced lerp methods with the original source 2022-06-14 20:53:52 +02:00
Martin Gerhardy
4e73580f53 TWINE: renamed member to match original sources 2022-06-12 22:22:34 +02:00
Martin Gerhardy
613d8e342d TWINE: renamed a few more methods and defines 2022-06-11 14:52:19 +02:00
Martin Gerhardy
8fd03789b0 TWINE: synced more names with original sources 2022-06-11 13:55:46 +02:00
Martin Gerhardy
0f411e7669 TWINE: renamed member to match original sources 2022-06-11 12:44:22 +02:00
Martin Gerhardy
fe56c0d0fa TWINE: renamed member to match original sources 2022-06-11 12:44:17 +02:00
Martin Gerhardy
c2825bfc45 TWINE: renamed variables and added comments from the original code 2022-06-11 12:43:33 +02:00
Martin Gerhardy
ff1de24376 TWINE: renamed member to match original source code 2022-06-11 09:56:54 +02:00
Martin Gerhardy
ca293e49aa TWINE: helper macros for seconds 2022-06-02 10:09:25 +02:00
Martin Gerhardy
337eac68fd TWINE: renamed scene patch variable to _enableEnhancements
scumm engine is using this wording, and we should keep it in sync if we ever expose
this option more globally
2022-04-18 12:53:54 +02:00
Martin Gerhardy
101d98d6a6 TWINE: added debug channel for scripting messages 2022-02-15 07:55:05 +01:00
Martin Gerhardy
39ca392a45 TWINE: replaced magic numbers with enum constants 2022-02-15 07:46:50 +01:00
Martin Gerhardy
7046e8a170 TWINE: renamed variable 2022-02-15 07:45:49 +01:00
Martin Gerhardy
d276f63f54 TWINE: replaced magic numbers 2022-02-15 07:43:45 +01:00
Martin Gerhardy
2d8a5fe505 TWINE: fixed logic error in move script mBETA 2022-02-15 07:30:11 +01:00
Martin Gerhardy
26f48a6f4e TWINE: reversed logic 2022-02-15 07:24:51 +01:00
Martin Gerhardy
ff014dfc65 TWINE: fixed kcCONE_VIEW opcode
... for the case that the actor is the hero and the hero is in discrete mode
2022-02-15 07:24:26 +01:00
Martin Gerhardy
17a218bfd9 TWINE: use a different version of getAngleAndSetTargetActorDistance 2021-12-31 12:13:16 +01:00
Martin Gerhardy
7080e9bfe9 TWINE: added more scene patches - but disable them by default 2021-12-31 12:03:25 +01:00
Martin Gerhardy
8f590c5288 TWINE: reduced code duplication in move script - door handling 2021-12-31 12:01:19 +01:00
Martin Gerhardy
593b7d068d TWINE: added debug commands to toggle the dark palette mode 2021-12-31 11:48:32 +01:00
Martin Gerhardy
41bb954435 TWINE: renamed member for palette fade handling 2021-12-31 11:48:32 +01:00
Martin Gerhardy
2c90f1e37d TWINE: debug logging for script execution 2021-12-31 11:48:31 +01:00