phobos2077
b3e1837cfc
Moved several more functionsto opcodeInfoArray.
...
Removed AsmMacros.h to reduce the number of ways to write new scripting function. #58
2017-02-24 17:24:15 +07:00
phobos2077
94c00f12f7
Moved all array-related opcodes to new table #58
2017-02-24 17:01:02 +07:00
phobos2077
df5c81164f
Added note about possible issue when using hs_invenwield incorrectly
2017-02-24 13:57:00 +07:00
phobos2077
17df8deb86
Moved all "Utils" opcodes to new table (gotten rid of op_* functions) #58
2017-02-24 13:56:02 +07:00
phobos2077
54f9fc4bcd
Introduced much simpler way to add engine functions wrappers (one line in 1 file); changed anim functions to use new wrappers
2017-02-24 03:12:36 +07:00
phobos2077
6d88cd03f7
Fixed crash if calling regn_anim_obj_run_to_tile after reg_anim_combat_check
2017-02-24 03:11:06 +07:00
phobos2077
ce21fdab79
Rewrite all anim-related opcode handlers, fixed bug in metarule2_explosions function (damage type change) #58 , #67
2017-02-24 01:29:46 +07:00
phobos2077
bac748a525
Use Enum of pseudo-types for argument validation instead of struct #58
2017-02-24 00:30:26 +07:00
phobos2077
d9b8d18a67
Replaced bitmask-based argument validation system with more simple solution;
...
Refactor OpcodeContext::handleOpcode method;
Moved register_hook_* functions to new opcodeInfo table #58
2017-02-23 23:45:15 +07:00
phobos2077
15b51eaa6d
Converted all object-related opcodes to new format #58
2017-02-23 20:02:19 +07:00
phobos2077
ae1aa27d13
Implemented more convenient way to define sfall opcodes, rewritten key_pressed handler, moved some opcodes to new opcodeInfoArray #58
2017-02-23 19:07:22 +07:00
phobos2077
f150163bc5
Fixed game_loaded scripting function
2017-02-23 19:05:17 +07:00
phobos2077
142264d6b6
Added opcode number getter to OpcodeContext. This way it's possible to use single naked function for many opcodes.
...
Fixed MetaruleTable not being filled.
2017-02-22 02:27:55 +07:00
phobos2077
a69b1b92b2
Fix build after merging changes from 3.8 branch.
2017-02-22 02:08:59 +07:00
phobos2077
214e405c32
Set the valid range of NPCsTryToSpendExtraAP to be non-0 positive values, and removed a redundant/unused constant.
...
Changed the valid range of EncounterTableSize.
2017-02-21 01:46:02 +07:00
NovaRain and phobos2077
99d6ff332f
Added a fix for the engine not checking player's inventory properly when putting items into the bag/backpack in the hands (from Crafty)
...
Removed BagBackpackFix from ddraw.ini.
2017-02-21 01:43:43 +07:00
NovaRain and phobos2077
2d726de3f0
Fixed a crash when trying to open bag/backpack on the table in the bartering interface (from Crafty)
...
Added a tweak to move items to player's main inventory instead of the opened bag/backpack when confirming a trade.
2017-02-21 01:43:29 +07:00
NovaRain and phobos2077
212118ba8c
Added a fix to ignore player's equipped items when opening bag/backpack (from Crafty)
2017-02-21 01:43:17 +07:00
NovaRain and phobos2077
2383d8d507
Added the ability to move items out of bag/backpack and back into the main inventory list by dragging them to character's image (similar to Fallout 1 behavior) (derived from Crafty's code)
...
Added a fix for losing items from inventory when you try to drag them to bag/backpack in the inventory list and are overloaded (from Crafty)
Removed gdBarterDispFix from ddraw.ini.
2017-02-21 01:43:06 +07:00
phobos2077
94f138f64b
Replaced PID number in ScannerAutomapHook() with its define name for better understandability.
2017-02-21 01:39:22 +07:00
phobos2077
a5ffbe3a5f
Replaced hex addresses with proper engine defines for ViewXPos and ViewYPos, and replaced two instances of SafeWrite32 with HookCall.
2017-02-21 01:33:03 +07:00
NovaRain and phobos2077
7a5a54ab5e
Limited the range of values for StartYear/Month/Day to prevent errors when setting them to negative values, and added a clarification in ddraw.ini.
2017-02-21 01:28:40 +07:00
phobos2077
b5f3addae5
Fixed OverrideMusicDir not using the correct path string.
...
Updated the year showed in the credits and file properties.
2017-02-21 01:21:09 +07:00
phobos2077
2db071d0ca
Fixed broken call_offset_* functions.
2017-02-21 01:17:31 +07:00
NovaRain and phobos2077
5b59c9e54d
Added more details to the description of WorldMapEncounterFix/Rate, and changed the default value of WorldMapEncounterRate to its internal default.
2017-02-21 01:15:22 +07:00