Commit Graph

  • 50d9737528 god mode cheat: no special death animations against player either Shadooow 2021-06-22 11:56:12 +00:00
  • da940db97c god mode cheat code tweaks + preventing ability damage Shadooow 2021-06-22 00:20:12 +00:00
  • bdbe1ffe65 new cheat command CTRL+SHIFT+g = god mode (invulnerability) requested by Parkan, works in both tactical and strategic Shadooow 2021-06-21 21:15:17 +00:00
  • fd528e418c new feature: CHEAT_MODE, new option in Ja2_Options.ini to automatically enable cheat mode in every loaded game or new replay Shadooow 2021-06-21 16:50:14 +00:00
  • f779c0cb37 Major rework of getting captured quests and mechanics. - new feature: added Tixa as another prison where capture mercs can be held (Alma is still primary choice though) - fix: all mercs in the map will be taken POW when surrendered, however only 3 will appear in Alma/Tixa/N7, rest will be POW forever without chance of getting free - fix: whenever player liberates any of the POW sectors (Alma, Tixa, N7) the respective quest/cutscene with POW will be disabled in that sector until enemy recapture the sector - robot will be destroyed when surrendered as it makes no sense to inprison mechanical units - externalized the GridNos for freeing POW mercs into Mod_Settings.ini Shadooow 2021-06-21 13:53:56 +00:00
  • 0101ed3c58 minor code fix under debug defined (seems that someone replaced all instances of bLevel with pathing.bLevel, but the structure path_s doesn't have this) Shadooow 2021-06-21 10:53:30 +00:00
  • 9f0033dac8 disabled changing assignment on POW mercs to prevent to break them free improperly Shadooow 2021-06-21 01:56:37 +00:00
  • 70eda57141 no battle records for POW mercs Shadooow 2021-06-21 01:19:32 +00:00
  • 922d3e37c7 - fixed newly added merc to current squad not showing up in the panel interface - fixed dead mercs not showing up in the panel interface properly from loaded savegame Shadooow 2021-06-21 00:56:42 +00:00
  • cf36b8c5d8 fixed breaking prisoners free via doors (check was executed before door status actually changed which is why it failed) also rewritten hardcoded coords to those from Mod_Settings.ini Shadooow 2021-06-20 23:10:28 +00:00
  • 76429a09b6 interrogation cutscene will no longer be started if player fired all POW soldiers that were scheduled to appear there Shadooow 2021-06-20 14:24:15 +00:00
  • a7d7f4b93b Fix: crash due to overflow as a result of very low reliability values Flugente 2021-06-19 10:27:13 +00:00
  • 7a866c5f29 If a container is destroyed by gunfire or vehicle collision, don't destroy the contents, reveal them instead. Flugente 2021-06-18 18:43:24 +00:00
  • a288b2e60c Fix: load map modifications before loading items, as altered structures can change items visibility Flugente 2021-06-18 18:40:31 +00:00
  • 9bdb2adfac Fix: movement costs are not recompiled if a structure is destroyed by gunfire or vehicular collision Flugente 2021-06-15 21:56:37 +00:00
  • fc6973d022 Only destroy the content of a container when it is destroyed, not when it is damaged Flugente 2021-06-14 21:15:31 +00:00
  • 433a41f03b Fix: use of uninitialized variables Flugente 2021-06-14 21:05:59 +00:00
  • 00b2f5965b ASD fix (by rftr): moved ASD initialisation to just before the strategic AI init, which is where starting enemy groups are created (and ASD flags are checked to see if any troops can be upgraded to jeeps/tanks/robots). Sevenfm 2021-06-14 04:44:09 +00:00
  • 08ba4f9323 CancelAIAction: improved condition to allow cover check. Sevenfm 2021-06-13 17:46:21 +00:00
  • ff3076203f Fix: antimateriel bullet damage to structures often isn't properly applied Flugente 2021-06-13 17:23:55 +00:00
  • 680a8cb43a Fix: improved display of ballistic shields over/under a merc. In particular they are no longer drawn over buildings. Flugente 2021-06-13 13:14:34 +00:00
  • eb1ee4a71a further lowered the damage of Joe punching mercs in interrogation cutscene to prevent him knocking the merc unconcious which resulted to endless clock issue Shadooow 2021-06-13 03:20:07 +00:00
  • 2459f90412 Disabled clearing next AI action in CancelAIAction as it may interfere with scripted actions code. Sevenfm 2021-06-12 17:33:16 +00:00
  • f71a462445 fix for likes and hates of IMPs characters (not sure it actually is handled for IMP characters, but the previous fix make it to be Barry instead of nobody) Shadooow 2021-06-12 12:48:56 +00:00
  • 0c1a74b3d1 fix for newly created IMP characters eye blinking very fast Shadooow 2021-06-12 12:39:55 +00:00
  • 6c1f5ed7ee corrected typo in previous commit Shadooow 2021-06-12 10:06:32 +00:00
  • a854f73ba9 added missing code from commit 9059 Shadooow 2021-06-12 09:43:43 +00:00
  • d46cbda2b6 new fix for endless clock issue in POW cutscene, was actually caused by Elliot trying to do the kick animation which doesn't exists for civilian body type Shadooow 2021-06-12 09:39:20 +00:00
  • aa1df7d5a3 prevented the game to capture more than 3 mercs for rescuing - this also fixes a memory leak as the code accessed array with out of bounds value Shadooow 2021-06-12 02:48:06 +00:00
  • 5b24d136f2 fix for endless clock issue in POW cutscene Shadooow 2021-06-12 00:10:42 +00:00
  • 90d5230c6e fixes for combining items with CTRL + LMB - fixed regression causing this to substract APs in mapscreen even with no enemies in sector causing this to fail after several merges - a "Not enough APs!" error will now show when doing this in turn based mode without enough APs - fixed merc APs on portrait not being updated when doing this in mapscreen during fight - fixed merged items not updating their graphic when doing this in mapscreen with stack of items in hand Shadooow 2021-06-09 20:10:39 +00:00
  • 807bd518b3 fixes for running over water - merc will continue running after he walks out of last water tile - fixed both pathing prediction AP cost calculation and an actual AP cost deduction when running into water and out of water Shadooow 2021-06-09 03:25:43 +00:00
  • 4b8a00f6e2 experimental fix for charging AP for turning at the end of the movement Shadooow 2021-06-07 16:29:36 +00:00
  • 9473f3bd24 fixed regression caused by previous fix that probably prevented IMP chars to recruit npcs and start quests, also fixes same problem of IMP chars above 10th which already had this problem before (values were 0 in MercProfiles.xml, now the values in xml are ignored so it doesn't matter) Shadooow 2021-06-06 17:20:12 +00:00
  • 2cc6d778ad fixed pressing ENTER and ESC during IMP enter key input when there is a messagebox notifying user he inputted wrong key which resulted in re-appearance of the messagebox or leaving laptop mode Shadooow 2021-06-06 15:44:01 +00:00
  • 3ada868111 partial revert of 9063 - less code, same functionality Shadooow 2021-06-05 06:28:44 +00:00
  • 4a2a1c67d2 better way of handling IMP slot replacements, game will no longer replace dead merc that was not deleted from team - so his name and stats will stay intact in personnel page Shadooow 2021-06-05 06:08:55 +00:00
  • 4046368bd3 fixed more issues when replacing dead/pow IMP char like statistics and attributes progress not being erased, reverted old code Shadooow 2021-06-05 05:53:24 +00:00
  • c5df4830ea allowed to replace POW IMP char that was removed from team Shadooow 2021-06-04 23:08:50 +00:00
  • 54fb8e2862 fix for duplicated items in inventory when replacing dead IMP Shadooow 2021-06-04 23:07:44 +00:00
  • fe9dd67edc Fixed bug that resets melee attack aim location if the attack was stopped in interrupt. Shadooow 2021-06-01 15:21:56 +00:00
  • 9ea0968001 fixed bug when manually placing item from soldier/vehicle inventory to not currently loaded sector inventory bugged the items and made them inaccesible after the sector got loaded Shadooow 2021-05-29 04:16:46 +00:00
  • 0c39762f88 added new optional tag into SectorLoadscreens.xml <szImageFormatAlt> that allows modder to specify format of alternative loadscreen as we already have loadscreens that have only STI and loadscreens that have only PNG variant but currently we can specify just one format for both normal and alternative loadscreen Shadooow 2021-05-28 05:36:39 +00:00
  • e0e45b83cd Significant overhaul on handling doors regarding to noise: - significantly increased base noise volume of opening or closing doors - adjusted the noise volume based on type of the door (metal louder etc.) - can with string adds +4 points to the noise volume and disallows to use stealth to prevent any noise - removed the code for movement noise from door handling and replaced it with simpler stealth check - noise will now come from GridNo of doors, not soldier opening them - disabled terrain check when the noise comes from doors - fixed doors always playing sound of closing even when there was no noise (stealth mode) - whether game plays sounds of opening/closing doors will now be based on whether any of player mercs heard it or not - game will now show doors being opened/closed if any of our mercs heard it - disabled the message for player about soldiers hearing noise from doors being opened/closed (no point imo when player can hear it) - added locator ping when someone opens doors with can with string attached on them Shadooow 2021-05-27 23:32:50 +00:00
  • 95f4db9758 fixed can with string executing take blood action when used from spot directly next to doors Shadooow 2021-05-26 22:51:57 +00:00
  • aaaf13bda2 deleted now redundant old code for marbles which is no longer executedby game due to said change Shadooow 2021-05-26 21:29:15 +00:00
  • 72582501e9 fix for undeground sectors showing LS_DAYGENERIC.sti instead of assigned custom loadscreen that is only in PNG format Shadooow 2021-05-26 21:22:45 +00:00
  • 375008656d new feature: allowed to re-hire RPCs in case they are fired from team Shadooow 2021-05-26 04:32:06 +00:00
  • f53ab81cfb allowed the OK button only message box to be escaped with ESC key Shadooow 2021-05-26 01:34:44 +00:00
  • 8c4c15adcf if all mercs were killed or captured and default arrival sector is Omerta, force helidrop arrival animation Shadooow 2021-05-25 19:09:24 +00:00
  • fc35e19915 allowed the meanwhile popup box to be handled with keyboard - ESC or n to skip ENTER or o for prompt Shadooow 2021-05-25 18:20:13 +00:00
  • d29b1f6467 fix: disabled inventory in meanwhile scenes Shadooow 2021-05-25 18:08:46 +00:00
  • 1a1d1fe54d fix: subsequent helicopter animation drops in Omerta will now work correctly (if saved before arrival, restarted game and then loaded, this resulted in helicopter now showing up and merc spawned into wall which bugged the game completely) Shadooow 2021-05-25 08:11:50 +00:00
  • d757ef71b6 fixed some of the merc stats like kills and progress of stats/level increase not being resetted when starting a new game after some previous gameplay was loaded initially Shadooow 2021-05-25 03:45:19 +00:00
  • e3e0226071 fixed incorrect squad name when selecting merc with option USE_XML_SQUADNAMES = TRUE Shadooow 2021-05-24 17:07:53 +00:00
  • 326b44787b improved inventory costs feature to show red straffing on pockets that soldier has not enough APs to move currently held item into Shadooow 2021-05-24 05:28:51 +00:00
  • 5f62e90189 replaced iLastHandPosMapScreen global from mapscreen inventory code with iLastHandPos from tactical - I need it for upcoming feature and it should not cause any problems since you cannot have item in mouse pointer and change game mode Shadooow 2021-05-24 05:26:14 +00:00
  • 0cddd33264 fixed issue when the helicopter didn't show in sector after loading a game, if the previous "opened" gameplay had helicopter elsewhere Shadooow 2021-05-24 01:57:49 +00:00
  • 0fbf72cc74 fix: if merc dies off screen and is not between sectors, create his corpse and items at the last position he was, when the sector was loaded instead of random GridNo Shadooow 2021-05-24 01:14:34 +00:00
  • c890640e1d fix: vehicle assignment will no longer show destroyed vehicles fix: helicopter will no longer be available when Skyrider dies (will not work in saved games where he is already dead though) Shadooow 2021-05-23 21:32:16 +00:00
  • b1233990d8 fix: vehicles will also not count into number of mercenenaries died under player command Shadooow 2021-05-23 20:55:10 +00:00
  • 281a005fef Fix: merc dying in different sector than we are in currently will now properly spawn items into sector inventory and game will show the red colored message about him dying. Shadooow 2021-05-23 19:03:23 +00:00
  • 5a2202f5b4 new feature: after throwing knives, put any throwing knife class item from second hand into main hand Shadooow 2021-05-22 15:07:28 +00:00
  • 9a942fcb89 improved the way how marbles works, now it will work already when reaching the gridno where marbles are, not just when trying to exit it Shadooow 2021-05-21 18:46:29 +00:00
  • 5d81b61f8e fix for "white face" when saying some quote which happened when the soldier was bleeding in different sector than we are in right now Shadooow 2021-05-21 14:01:40 +00:00
  • 0b6dfdb24d spread fire fixes in realtime mode - fixes spread fire not working properly and shooting elsewhere than assigned - fixes throwing items not working and instead firing from weapon - added the fix shooting to random direction that was previously added into Turn Based Input Shadooow 2021-05-21 11:55:00 +00:00
  • 43dfa982a5 Bright future is here, introduced turning AP costs into pathing AP prediction. Full changelog: - fixed camera action AP cost shown and made soldier to turn towards target - fixed handcuffs, jar and can actions AP cost shown calculating pathing cost twice and not calculating stance change at all - fixed refueling and repairing pathing leading to inside vehicle - fixed endless clock issue when trying to refuel from spot next to vehicle - fixed endless clock issue when trying to repair vehicle/SAM site during combat - fixed refuel, repair and jar actions not costing any AP in turn based mode - fixed multiple actions not calculating and substracting AP cost for turning - fixed using toolkit asking whether player wants to attack ally - fixed issue where the required AP cost for melee attack was not recalculated when changing movement mode - allowed to start repairs on robot manually from tactical mode still a problem: - repairing during combat still does nothing as soldiers cannot go into assignment while there are enemies on map - we need new function to return action gridno for actions on vehicles, FindAdjacentGridEx is not working very well - soldiers doesn't turn during interactive actions Shadooow 2021-05-20 11:42:57 +00:00
  • a5d13a6ebe fix for AP cost sometimes not recalculating when changing modes via right click Shadooow 2021-05-18 21:04:25 +00:00
  • aa088af952 Allowed the 1.13 custom message boxes (corpse handling, CTRL+. one etc.) to be escaped/skipped via ESC key (by Shadooow). Sevenfm 2021-05-16 18:48:05 +00:00
  • a2e0080227 Re-allowed diagonal melee attacks, this time it will work correctly and game actually use this in pathing too, which was not the case before (by Shadooow). Sevenfm 2021-05-16 18:46:37 +00:00
  • 42481737ab Improved bloodcats targetting against prone targets. Same as previous change for soldiers, now even bloodcats will be able to attack the second tile that is prone target lying at (by Shadooow). Sevenfm 2021-05-16 18:37:11 +00:00
  • 638f6d2786 New cheat command ALT+6 to turn selected soldier into bloodcat (by Shadooow). Sevenfm 2021-05-16 18:36:00 +00:00
  • 39b8911803 Fix: attaching guns to tripwire. Sevenfm 2021-05-15 06:26:37 +00:00
  • cf55e6ddf3 Fix: removes the usMapPos code from actions that can be used by AI + improves function FindAdjacentGridEx to handle monsters and find adjacent tile for any of the tile they occupy (by Shadooow). Sevenfm 2021-05-15 05:18:12 +00:00
  • b923471914 Minor code improvements. Sevenfm 2021-05-15 04:47:17 +00:00
  • 09ea9f3fb7 Fix for knife and punch attacks attack from GridNo (by Shadooow). This fixes punching and stabbing target through door and improves attacking at prone target which was previously calculating shortest route only to the "main" GridNo of the prone target despite he occupies two in this position. It also removes the possibility of attacking from diagonal tile - it was never intended to happen and was calculating APs incorrectly. Sevenfm 2021-05-14 19:50:22 +00:00
  • 5fb5520380 Missing code for melee aim cost patch (by Shadooow). Sevenfm 2021-05-13 14:05:06 +00:00
  • 205f4516d9 Missing part of previous fix (by Shadooow). Sevenfm 2021-05-13 05:19:22 +00:00
  • 77980dd2cc Fixes mouse wheel not working with knife cursor (by Shadooow). Sevenfm 2021-05-13 04:52:01 +00:00
  • 57003e1802 Fixes issues with AP costs for aimed melee attack that allowed to make such attack even without required action points. Note for coders - #defines using conditionals needs to be in parenthesis, otherwise they won't work properly when used in conditionals - which was the case here on many places. (SANDRO catched only few of them. His fixes are reverted since the fix is now in #define itself) (by Shadooow) Sevenfm 2021-05-13 04:43:06 +00:00
  • 91e6e37c51 Improvement for r9018: code uses enums and includes two more cursor states for both knife and punch cursor which were still not showing circles (by Shadooow). Sevenfm 2021-05-13 04:39:54 +00:00
  • 23601a2e30 Restoration of aiming circles for melee attacks under NCTH (by Shadooow). Sevenfm 2021-05-12 17:43:08 +00:00
  • 5607d57385 If refilling canteen makes merc to automatically drink, drinking should make merc to automatically refill canteen - which gives player a way how to refill empty canteen while in battle (by Shadooow). https://discord.com/channels/348449397308391426/821085354009952307/841090805435072522 Sevenfm 2021-05-11 04:56:58 +00:00
  • 3146cd9b9d Fix for for using items on enemies on roofs from inside room below. This includes multiple actions like first aid kit, blade or punch that shown path into room below enemy on roof and even allowed to stab from there (with zero chance to hit) or punch from there (clocks running for minute) (by Shadooow). Sevenfm 2021-05-11 04:50:27 +00:00
  • fc3869bcd6 Fixed function PickPocket to work with MOLLE type of LBEs (by Shadooow). Changed code that handles putting medical kit from merc inventory into his main hand to respect pockets restrictions to avoid putting gun into medkit only pocket etc.. Writes an error in case that medical kit cannot be put into hands due to no suitable place for currently held items (by Shadooow). Sevenfm 2021-05-11 04:40:54 +00:00
  • cf7588cacd Only show "sniper" message when shooter uses sniper rifle. Disabled "sniper" message for vehicles. Sevenfm 2021-05-09 03:54:41 +00:00
  • 6d3dc29163 Fix for "bullets too high" sanity check in tilesets with non-zero floor height causing bullets to disappear when firing at roof from too steep degree. + fixed extra parameters inserted into debug messages (compiler warning) (by Shadooow). Sevenfm 2021-05-09 03:24:02 +00:00
  • 5c0e6f2439 Fix: incorrect initialization (by serg). Sevenfm 2021-05-08 15:45:23 +00:00
  • 037a70b253 Fix for drugged icon not displaying on merc portrait immediately when taking drug from map screen (by Shadooow). Fix for playing full burst firing sound with less bullets than the usual for the gun burst fire in chamber (by Shadooow). Sevenfm 2021-05-07 18:12:32 +00:00
  • 92c2fc53f1 Allowed inventory management in map screen with inventory costs feature enabled. Actions points will be deducted as expected (by Shadooow). Sevenfm 2021-05-07 17:49:49 +00:00
  • e97b84b01a Allowed moving items between mercs in map screen during combat for mercs that are not in the sector where battle is occurring (by Shadooow). Sevenfm 2021-05-07 17:45:35 +00:00
  • 22c3f36a92 SHIFT+k shortcut on map screen to use same code as in tactical. Made ALT and CTRL +SHIFT+k shortcuts work on map screen (by Shadooow). Sevenfm 2021-05-07 17:42:43 +00:00
  • 3eba067b6a Fix for switch weapon shortcuts taking more AP than doing it manually when inventory costs are enabled (by Shadooow). Sevenfm 2021-05-07 17:40:03 +00:00
  • 422c72b957 Fixes NPCs going back to cower animation after collapsing which also caused them not to die properly (by Shadooow). Sevenfm 2021-05-06 18:38:31 +00:00
  • a38b3b414f Fixes by Shadooow: - robot has no (dynamic) opinions anymore. For now I allowed other mercs to have opinion about robot, but that is also a bit odd - fixed Not Enough Action Points error triggering needlessly, when doing stuff like reloading ammo, using consumables or changing attachments in map screen during battle with mercs that are not in the sector where battle is occuring - fix for RPCs sometimes repeating last spoken line after victory in the sector Sevenfm 2021-05-06 04:55:08 +00:00
  • 3579d96999 Fixes some old traits not having any popup text or showing "No bonuses" during IMP character creation (by Shadooow). Sevenfm 2021-05-05 15:54:31 +00:00
  • e4f12a68aa Reverted optimization code which prevented 40mm grenades to load if <attachment> tag is not set in mod (by Shadooow). Sevenfm 2021-05-05 08:08:37 +00:00
  • b7cc3bbcf8 Fix for Dynamic Opinions feature not respecting ini setting and not allowing it to be disabled easily (by Shadooow). Sevenfm 2021-05-05 03:40:57 +00:00
  • c2ccc871fc Fix for assertion failure when right clicking on merc assignment (by Shadooow). Bug description: http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=22776&goto=362743&#msg_362743 Sevenfm 2021-05-04 14:19:47 +00:00
  • 49c2340fa2 Feature: displaying action points in upper right corner of the merc portrait on map screen if the merc is in sector under attack and turn based mode (by Shadooow). Demo video: https://youtu.be/a0BihsKq4bM Sevenfm 2021-05-04 09:59:32 +00:00