Commit Graph

  • 239005365f More highlighting changes (by Shadooow): - unified the highlight behavior with currently held item in cursor to only ever highlight compatible items for that item (was the case in tactical, not in map screen) - enabled the body silhouette in map screen to be lit up when hovering/holding consumable item just as it happens in tactical mode - few small fixes correcting code I sent previously Sevenfm 2021-05-04 09:56:58 +00:00
  • a9a6193a81 Another efficiency improvement for attachments validity check function - will not check all items in inventory to be a valid gun/ammo for tested item if the tested item is attachment/hidden addon (by Shadooow). Significant improvement for the inventory panel item highlighting code on map screen. There is also a fix for wrong items highlighted when changing currently selected merc (by Shadooow). Old code was constantly running update for highlights several times a second. Now it only happens when the mouse position first finds or loses an item in inventory. Sevenfm 2021-05-03 04:57:07 +00:00
  • d41c0f2f93 Efficiency improvements for code dealing with attachments validity to fix any potential lag issues (by Shadooow). Sevenfm 2021-05-02 05:23:52 +00:00
  • 1db29862c8 Fix for incorrect highlighting attachments + lots of efficiency improvements (by Shadooow). Code formatting. Sevenfm 2021-05-02 05:19:43 +00:00
  • 6174df6584 Fix: No longer get individual militia email when individual militia is disabled (by noooooo). Sevenfm 2021-05-01 16:59:59 +00:00
  • 3784f56ce1 Fix: small GUI issue where the body silhouette in merc inventory turned dark after moving applicable item onto it and then out of it (by Shadooow). Fix: GUI issue where the body silhouette wasn't lit up with some of the new consumable items such as energy drinks, etc. Also, empty canteen will no longer lit up the body silhouette anymore (by Shadooow). Sevenfm 2021-05-01 16:13:40 +00:00
  • 891a17d859 Fix for not enough action points error message not appearing when using consumable without enough AP in turn based mode. (The message got overriden with another one -> "Huh?") (by Shadooow) Additionally fixed empty canteens to consume AP just to do nothing. Empty canteen now throws the Huh? error. Sevenfm 2021-04-30 20:54:27 +00:00
  • 5400775c82 Fix for randomly shooting in wrong direction because the game activates spreading code by mistake (by Shadooow). Sevenfm 2021-04-30 19:16:52 +00:00
  • f611cec057 Fix for leaving merc never reaching final sector until current battle is finished (by Shadooow). Sevenfm 2021-04-30 14:16:42 +00:00
  • 8722a5d8cc Fix incorrect CTH message for [F] key when not using gun. Sevenfm 2021-04-29 15:07:27 +00:00
  • 935edd128f Fix for for autobandaging sometimes hang indefinitely (by Shadooow). Sevenfm 2021-04-29 10:54:50 +00:00
  • 59fba04ff5 More turncoat-related fixes and tweaks (by rftr): - added "recruit turncoat" to the talk menu - recruiting turncoats now costs AP (AP_TALK in APBPConstants) - fixed groups not decrementing soldiers when activating turncoats - fixed a hang when activating a sector with 100% turncoats in realtime Sevenfm 2021-04-29 06:28:40 +00:00
  • 61e6f4e98a Fix for filling canteens during combat (by Shadooow). Sevenfm 2021-04-29 06:09:23 +00:00
  • f9ada03e5a Fix: enemy counter not updated correctly when turncoat feature is used. Sevenfm 2021-04-28 07:10:12 +00:00
  • 6535c81157 Updated Chinese Texts (by kmoi & zwwooooo) Wanne 2021-04-27 18:21:16 +00:00
  • 40c5e115ed Fix: variable initialization (by rftr). Sevenfm 2021-04-27 05:16:55 +00:00
  • b12b5dd03a Fix: items stacking with those that player cannot take from sector inventory when using CTRL+LMB from merc inventory (by Shadooow). Fixed some warnings. Sevenfm 2021-04-27 05:12:21 +00:00
  • 02d2c92f66 ASD deployment fix (by rftr): - fix: robots, jeeps, and tanks now appear in garrison reinforcement and patrol groups (if the ASD and these units are enabled) - fix: ASD continues to purchase jeeps if tanks are disabled - removed some magic numbers in Strategic AI.cpp Sevenfm 2021-04-27 04:00:07 +00:00
  • cb074f4549 Fix for various crashing and merc placement issues when getting ambushed (by Shadooow). Sevenfm 2021-04-26 17:59:51 +00:00
  • 78d73cc221 Removed unused options: ARMY_USES_TANKS_IN_ATTACKS, ARMY_USES_TANKS_IN_PATROLS, ARMY_USES_JEEPS_IN_ATTACKS, ARMY_USES_JEEPS_IN_PATROLS, ARMY_USES_ROBOTS_IN_ATTACKS, ARMY_USES_ROBOTS_IN_PATROLS (by rftr). Sevenfm 2021-04-26 05:41:23 +00:00
  • a28f18cd15 Fix for black windows (Orta) not blocking vision properly, code formatting (by Shadooow). Sevenfm 2021-04-26 04:59:29 +00:00
  • 9d4829ef5a Fix: incorrect cursor when using wire cutters (by Shadooow). Sevenfm 2021-04-25 13:58:32 +00:00
  • 72c20b724f Exploit fix: don't allow "handcuff" cursor to reveal position of invisible enemy. Sevenfm 2021-04-25 13:43:08 +00:00
  • e23e473333 Exploit fix: don't allow "apply item to others" cursor to reveal position of invisible enemy. Sevenfm 2021-04-25 12:26:58 +00:00
  • c3e961731a Fix: allow interrupts after door opening (by Shadooow). Sevenfm 2021-04-25 07:31:52 +00:00
  • f9ec5b1b04 Partially fixed vanilla exploit (detect invisible enemy by using plotted path), still doesn't work if merc is prone. Sevenfm 2021-04-25 06:32:03 +00:00
  • 99556e09a5 Fixes female and big male body types being transparent when climbing up roof (by Shadooow). Sevenfm 2021-04-25 05:35:28 +00:00
  • a92379ec96 Vision update fixes (by Shadooow): Sevenfm 2021-04-25 04:05:45 +00:00
  • d86a1f15a2 No sector ambients in cutscenes. Sevenfm 2021-04-24 13:41:09 +00:00
  • 09270c04f0 Fix Deidranna endless clock in cutscene. Sevenfm 2021-04-24 13:31:56 +00:00
  • fc91cb545a Fixes bug when you sometimes got vision inside building when climbing from the roof (by Shadooow). Extended explanation: This happens from two reasons, first - there seems to be vision update for all soldiers every 5 seconds. Second, when climbing down the roof, the height level is set to 0 at the very beginning of the climb when merc is still on the roof - which makes him for a split second inside the building in fact. If the automatic vision update is triggered in this split of second, you will see into building. Sevenfm 2021-04-24 12:52:39 +00:00
  • 23ce4caf26 Fix: CTRL+U cheat command not replenishing energy properly (by Shadooow). Sevenfm 2021-04-24 12:42:53 +00:00
  • 3b3476c379 EVENT_SoldierBeginBladeAttack: initialize attack data before other calculations, set bTargetLevel to soldier's level as melee attacks don't work between levels (by Shadooow). Sevenfm 2021-04-23 07:02:35 +00:00
  • b8aac91b9e Fixes (by Shadooow): - fixed AP cost shown at the cursor when pressing ALT during RUN mode since game doesn't allow to "reverse run" and forces walking - shows walking cursor instead of running if ALT is held Sevenfm 2021-04-23 06:42:09 +00:00
  • df3d71f07c Fix: erase path after switching active merc with mouse wheel (by Shadooow). Sevenfm 2021-04-22 06:37:17 +00:00
  • 73070b004b Fix: path not being erased and recalculated when changing selected soldier via SPACE button (by Shadooow). Sevenfm 2021-04-22 06:14:00 +00:00
  • 886c1bac71 Fix: display of merc AP in case he started with value over 99 new APs are lower than that (by Shadooow). Sevenfm 2021-04-22 05:02:25 +00:00
  • 5626257492 Improved r8961: - removed unneeded checks in BtnClimbCallback - improved code in UpdateSMPanel, check if crouched stance is valid when enabling jump button Sevenfm 2021-04-19 06:18:24 +00:00
  • f02de44a32 Fixes by Shadooow: - fixed queen alternative gridno feature spawning her behind walls in basement instead of in front of the throne in palace - fixed queen alternative gridno feature triggering even when palace was cleared - added missing sanity checks when Climbing/Jumping via UI button Sevenfm 2021-04-19 05:37:36 +00:00
  • 38c2af0b8b FIX: mechanical units are not a valid blood donors (by Shadooow). Sevenfm 2021-04-18 18:08:15 +00:00
  • 8928ad0d65 Russian text fixes (by impulseUK). Sevenfm 2021-04-09 11:39:26 +00:00
  • addff41022 Build 21.04.04 Fixed savegame compatibility (by rftr). Sevenfm 2021-04-04 17:40:11 +00:00
  • b6f15b2347 Add robots to enemy groups (by rftr). Sevenfm 2021-04-03 03:32:40 +00:00
  • 4c7db819ef Fixed default OutDir for 2019 project. Sevenfm 2021-03-17 13:24:37 +00:00
  • 4cab0e2bdf Experimental tweak: stop muzzle flash at the end of the attack, to allow visibility check and interrupt to work correctly. Sevenfm 2021-03-14 18:33:06 +00:00
  • 8822bfcb8f TileEngine include cleanup (by Asdow). Sevenfm 2021-03-11 20:41:44 +00:00
  • c8cb9a0d6c SetAttachmentSlotsFlag: improved code to check array bounds. Sevenfm 2021-03-11 06:51:12 +00:00
  • d1de51605c TransformObject: disabled interrupt after sight check. Sevenfm 2021-03-09 22:26:02 +00:00
  • d028282b39 Focus skill: no watched location interrupt bonus if focus is active. Improved data initialization. Smart tree top hiding: increased max distance to hide tree in vertical direction. Sevenfm 2021-03-05 07:01:51 +00:00
  • b157b47a34 GridNoSpotterCTHBonus: fixed bTeam type. Sevenfm 2021-03-04 21:00:28 +00:00
  • f99f802e25 Removed AP_SUPPRESSION_SHOCK_DIVISOR option. HandleSuppressionFire: improved code to calculate suppression shock, take into account 100AP / 25AP system. Sevenfm 2021-02-28 16:21:16 +00:00
  • 1abb292f8e New militia order: Move to (works in realtime only, switches militia soldier to DTATIONARY/DEFENSIVE). Cancel current AI order when giving militia order. Check if desired stance is possible here when ordering militia to crouch/prone. Green AI: reworked climb code (only climb up, only at the start of the turn, disable for STATIONARY). Sevenfm 2021-02-26 12:14:11 +00:00
  • fe10587437 Show flash light when throwing flares. Sevenfm 2021-02-21 16:25:36 +00:00
  • 0e0d329b95 New option DEFEAT_MODE: - 0: default, any lost battle is considered defeat - 1: if enemy team was alerted - 2: if at least one of retreating mercs is not covert - 3: if at least one merc was killed in battle - 4: if all mercs were killed in battle Sevenfm 2021-02-21 13:18:04 +00:00
  • 02d19f3240 Update tree visibility after changing stance. Sevenfm 2021-02-20 17:38:38 +00:00
  • 6bb9759e75 LOBOT filters update (by Asdow). Sevenfm 2021-02-18 09:19:37 +00:00
  • f3d35c9401 Strip clothes: drop item to soldier's level if no place in inventory. HandleTalkInit: - use SoldierToSoldierLineOfSightTest to check sight to person - increased talking range for militia to TACTICAL_RANGE When checking if radio set equipped for using with militia command feature, don't check for AP_RADIO as the game will deduct AP_TALK when giving order. Sevenfm 2021-02-17 20:31:44 +00:00
  • 417fa661c6 Smart tree top hiding: more optimization. Sevenfm 2021-02-17 15:36:02 +00:00
  • 27d681905d Smart tree top hiding: code optimization. Sevenfm 2021-02-17 15:24:00 +00:00
  • 4471b8ef97 Improved code to check if militia options are available. Start radio animation when giving orders to militia. FindClosestClimbPointAvailableToAI: don't check roaming range when searching climb spot for AI. Sevenfm 2021-02-17 15:01:57 +00:00
  • c72300d51f Fix crash when using LOBOT with certain sti size and offset (by Asdow). Sevenfm 2021-02-17 14:02:30 +00:00
  • 75f5f35ea0 Added 0.1s delay to hide tree top when moving cursor to prevent flickering when moving mouse over trees. Sevenfm 2021-02-17 06:22:39 +00:00
  • 7c1e9e3200 New ingame option: Smart tree tops. Sevenfm 2021-02-16 17:22:44 +00:00
  • 0ccecc472c Fix: UI attack handling prioritised interactive structures over target soldiers even if target soldier was explicitly provided causing deadlocks e.g. when trying to punch enemy overlapped by a door (by anv). ReInitMergedItem: show item id, attachment id when doing assert. Sevenfm 2021-02-13 05:48:17 +00:00
  • 169e909b56 Minor code improvements. Sevenfm 2021-02-12 07:23:54 +00:00
  • f0693d4aad Black AI: - fixed bug when AI soldier was ordered to move to his current spot when trying to get closer - check if soldier can find cover before disabling the attack Sevenfm 2021-02-12 07:15:03 +00:00
  • 39776dc569 Fix: guiBaseJA2Clock overflow (by MH17) Sevenfm 2021-02-12 05:31:14 +00:00
  • 18dcced82a Use TACTICAL_RANGE instead of DAY_VISION_RANGE for AI calculations. Implemented Black cover advance code for AI: try to get closer to enemy using cover if soldier has low CTH or enemy too far for shooting or soldier has high morale or no cover at spot. Sevenfm 2021-02-11 19:11:54 +00:00
  • 02cba3e1e5 When changing stance from UI, first stop cowering. Sevenfm 2021-02-10 20:20:09 +00:00
  • a0a6396eaa Stop cowering when merc starts to move. Sevenfm 2021-02-10 19:17:44 +00:00
  • d66a05b0f4 NO_STANDING_ANIM_ADJUSTMENT_IN_COMBAT: apply only for player mercs, to avoid possible problems with AI. CalcChanceHTH: only use reduced chance for boxers. AIDoctorFriend, AIDoctorSelf: first change soldier to stationary. AIDoctorFriend: change target to stationary. Sevenfm 2021-02-08 18:27:27 +00:00
  • 6ad8b22368 CalcChanceHTH: restored higher base chance for melee attacks. Sevenfm 2021-02-07 21:07:17 +00:00
  • 0abc2bf31f Features by rftr (http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=12557&goto=362288&#msg_362288) New option BOBBY_RAY_TOOLTIPS_SHOW_LBE_DETAILS. Stop Speck from spamming your email when multiple new mercs are available on the same day. Sevenfm 2021-02-01 08:25:59 +00:00
  • f8768a557d Minor code improvement for r8924. Sevenfm 2021-01-31 14:37:38 +00:00
  • bc3b398b63 Use MAXITEMS + 1 max limit when checking transformations. UpdateAttachmentTooltips: - separate items, launchables and attachments checks as they have different max limits - improved searching of existing item in vector Sevenfm 2021-01-31 13:48:21 +00:00
  • 1256639fe5 AI_ACTION_STOP_MEDIC: also check START_AID, START_AID_PRN animations to prevent AI endless clock when first aid has just started and AI decides to move somewhere. Sevenfm 2021-01-30 23:22:59 +00:00
  • 2ff6826b8e Crash fix when using LOBOT: We never actually set the paletteTable->pForcedPalette, so it was doing some weird stuff when it got used. The flash white code sets the pSoldier's forced palette, so now it works as it should (by Asdow) Sevenfm 2021-01-26 20:54:59 +00:00
  • e39158569b Long jump: - change to stationary stance before jumping (fixes problems with jumping from moving animation) - switch to standing animation before jumping if soldier is prone (allows to correctly jump from prone stance) Sevenfm 2021-01-14 17:40:33 +00:00
  • 32e8f9d4ff EstimatePathCostToLocation: safety checks. Main Red AI: fixed decision weight calculation. Player mercs should avoid moving into gas/fire when in autobandage mode or under AI control. IsLocationSittable, IsLocationSittableExcludingPeople: return FALSE if location on roof does not exist. NWSS: play room effect for first shot only. AI inventory choosing: more variety for mortar shells, improved hand/GL grenade choosing code. Red AI: improved mortar use code: use next action to fire mortar after stepping back. Sevenfm 2021-01-14 15:45:11 +00:00
  • c6c0b09b70 Added basic requirements to start snitching (alive, conscious, not in transit etc). When clicking on move equipment menu, check basic requirements. If soldiers land into enemy sector from helicopter, use gsGridNoSweetSpot instead of default arrival location when ESC is pressed. Sevenfm 2021-01-14 15:17:56 +00:00
  • c32f5c76da VR r2698 fix: snitch assignments were not properly taking mercs out of vehicles (by anv) Sevenfm 2020-12-11 05:59:51 +00:00
  • 50f45bc2d9 Improved r8460 fix: also check for incorrect ammo item. Sevenfm 2020-12-06 13:17:42 +00:00
  • 87fc164f7a CalcMoraleNew (AI_NEW_MORALE option): - more aggressive AI - limit AI morale when soldier is under heavy fire Sevenfm 2020-11-07 18:05:37 +00:00
  • bc7fe70fb7 CalcBestThrow: fixed bug ending throw search if one if the checked spots was too far for throw. Sevenfm 2020-11-01 16:44:37 +00:00
  • 191db0b2ac Fixed vs2010 compilation errors. Sevenfm 2020-11-01 05:01:11 +00:00
  • dd9c6b1f3e ArtilleryStrike: supply GetArtilleryLaunchParams with launcher item and not just mortar shell, as it will check it's range later. Add smoke after explosion: improved code. Sevenfm 2020-10-30 17:55:11 +00:00
  • 1200ce8de3 Added new option BUCKSHOT_SUPPRESSION_EFFECTIVENESS, 50 by default, used both for NCTH and OCTH. Sevenfm 2020-10-29 13:21:57 +00:00
  • 80554bcde8 Hopefully improved AI code: don't try to resume movement after ActionDone was executed. Sevenfm 2020-10-26 17:37:44 +00:00
  • 3f2fd185e6 Improved EDB code: do not show PercentTargetTrackingSpeed and PercentDropCompensation when using OCTH. Sevenfm 2020-10-25 09:56:19 +00:00
  • e738e4424d Improved code to spawn item and it's attachments when disarming bomb. Update sight after item transformation. Sevenfm 2020-10-23 13:15:31 +00:00
  • 59f91fc065 SoldierAI: exclude civilians. Sevenfm 2020-10-21 18:12:58 +00:00
  • b174d2a8ba Improved AI RPG use: - check for friendly fire chance when using rocket launcher - only enemy team will try to use rocket launcher against single opponent in a room - set min chance to hit 80% when deciding to use rocket launcher, except tanks or when shooting at tank - changed min chance to hit to use launcher/RPG so that experienced soldiers prefer higher chance to hit Sevenfm 2020-10-21 06:52:43 +00:00
  • 0d969503c5 PopupAttachmentInfo class: added missing initializations in constructor. DragSelection class: added missing initialization in constructor. MERCPROFILEGEAR class: added missing copy constructor. WORLDITEM class: added missing copy constructor. BuildString class: added missing assignment operator. Sevenfm 2020-10-21 06:28:15 +00:00
  • 2c2d8c9276 AI: - improved civilian cower/run away code - CancelAIAction: reset bNextAction and next action data - clear next action data before making decisions - militia always try to spare grenades unless under attack or using flares Sevenfm 2020-10-20 21:20:26 +00:00
  • b45af3f575 FindNearestUngassedLand, FindNearbyDarkerSpot: - optimization: don't check spots already checked in previous loop - increase max distance to 35, reduce to 25 if complex AI not allowed, reduce to 15 in realtime CanDragPerson: use world movement cost instead of LOS check. Say TAUNT_RELOAD, TAUNT_OUT_OF_AMMO taunts if mag size > 4 or Chance (CHANCE_SAY_ANNOYING_PHRASE). SpotDangerLevel: also check Water and CorpseWarning for danger level = 1. ManSeesMan: only call SetNewSituation if location or level are different to reduce frequency of AI re-evaluation. Only allow radio animation on initial red alert, if sector is not jammed. Press ESC to stop dragging. Sevenfm 2020-10-17 06:30:23 +00:00
  • 43ab995ecd Only show "suppression fire" message if target soldier cannot be seen after turning. Sevenfm 2020-10-16 20:44:21 +00:00
  • b5cbc32261 EstimateStabDamage: updated code. Black AI: - reduce stab attack attractiveness if target is not very close - reduce stab attack attractiveness if soldier sees more than one opponent - for HTH attacks, skills don't have effect on choosing attack type for boxers - reduce HTH attack attractiveness if soldier sees more than one opponent - allow to increase autofire bullets by reducing aim in NCTH if LIMIT_MAX_DEVIATION option is enabled Sevenfm 2020-10-16 19:52:57 +00:00
  • 47c58e79d5 AI: - new option AI_SAFE_SUPPRESSION adds additional checks for AI to avoid hitting friends when using suppression fire. - chance to use suppression fire depends on actual chance to hit and SUPPRESSION_EFFECTIVENESS option - reduced short burst to 2 bullets. - improved code to use short burst Sevenfm 2020-10-16 17:53:02 +00:00
  • d867051cd6 fix: when multiple mercs are repairing, it could happen that one of them didn't spend any points, causing an error message about insufficient skill silversurfer 2020-10-16 07:52:46 +00:00
  • 8c74a30b35 Updated Chinese Text files (by TBS) Wanne 2020-10-01 09:42:09 +00:00