Commit Graph

  • 5441cd3326 Detect cnc-ddraw and disable windowed mode FunkyFr3shandGitHub 2022-10-14 13:24:47 +02:00
  • c8465baee2 Add POW/MiniEvent/RebelCommand assignment check for StartMission rftrdev 2022-10-14 01:02:46 -07:00
  • 0485aa230e A bit of cleanup rftrdev 2022-10-14 00:56:44 -07:00
  • dea5da5fc6 Implement "Train Militia Anywhere" rftrdev 2022-10-14 00:26:38 -07:00
  • feaf9827c9 Set up ASSIGNMENT_REBELCOMMAND rftrdev 2022-10-13 01:18:44 -07:00
  • 8858559a10 Add checks before enabling Start Mission button rftrdev 2022-10-12 00:58:30 -07:00
  • 7b0830c060 Initial commit - SVN checkpoint to git branch rftrdev 2022-10-11 00:17:12 -07:00
  • 5c13170424 Create .gitignore Asdow 2022-10-10 15:58:11 +03:00
  • 1f0a8f46e8 Import changes from the local SVN working copy Asdow 2022-10-10 10:08:44 +03:00
  • 9cc567644f Merge pull request #4 from 1dot13/bugfix AsdowandGitHub 2022-10-10 07:48:13 +03:00
  • 5197ef21e5 r9402: Fixed nullptr dereference & assertion error Asdow 2022-10-10 07:45:20 +03:00
  • 41e0cedb7a fix: mercs in pow/minievent state feed themselves properly rftr 2022-09-26 22:21:31 +00:00
  • ec6867fa4b changed return type of CountAllMilitiaInFiveSectors() from UINT8 to UINT16 to fix an overflow during militia reinforcement rftr 2022-09-08 18:09:07 +00:00
  • b7067b860c Chinese translation update (by zwwooooo). Sevenfm 2022-08-23 11:14:33 +00:00
  • 9ac2d3c828 Fix wrong offset resulting in character inventory background not drawn in old inventory & 1024x768 resolution Asdow 2022-08-16 14:08:09 +00:00
  • 317f741811 Added assertion with error message to prevent silent crashes/nullptr dereference if loading big item graphics fails. Asdow 2022-08-16 13:37:08 +00:00
  • b843d82f54 add nullptr check to features and options screen buttonlists rftr 2022-08-06 17:07:06 +00:00
  • 07700a8d7e MakeSureMedKitIsInHand: - for AI, just swap objects as they don't care about pockets - only show "nowhere to place item" message for player mercs (prevents medic AI from spamming messages) Sevenfm 2022-08-06 12:44:56 +00:00
  • f733bda830 Fixed nullptr dereference in void CommonEnterCombatModeCode( ) & added two nullptr safety checks Asdow 2022-08-02 22:29:00 +00:00
  • 9f0a3e03bb Fixed glowing rectangle staying on the screen if one selects an item, clicks Finish button instead of closing inventory pool with checkmark/right click and then goes back to gear selection screen through Attributes screen Asdow 2022-08-02 07:42:38 +00:00
  • 1f095b7d31 Implemented new IMP gear selection interface to replace the dropdown menus. Requires GameDir rev 2652. Enrico's letter is forced to the first hired merc in old inventory, similar to new inventory in case a free item pocket is not found. Asdow 2022-08-01 21:15:34 +00:00
  • 058a2cd40f HandlePrison: - more precise calculation of prisoner to guard ratio - improved calculation of random number of prisoners escaping (allow single prisoner/max prisoners to escape when not guarded) - check that someone actually escaped before showing riot message - limit ubNumTroops to 255 (like in other places) as 512 makes no sense for UINT8 value Sevenfm 2022-07-31 15:30:22 +00:00
  • 612cc2a405 fix: clear world items when starting a new game rftr 2022-06-03 04:43:48 +00:00
  • 15bb2a8537 check in missed file rftr 2022-05-29 19:25:17 +00:00
  • 4b40212ebd added new options to limit merc salary increases on level up: MERC_LEVEL_UP_MAXIMUM_SALARY_INCREASE_DAILY MERC_LEVEL_UP_MAXIMUM_SALARY_INCREASE_WEEKLY MERC_LEVEL_UP_MAXIMUM_SALARY_INCREASE_BIWEEKLY rftr 2022-05-28 21:09:02 +00:00
  • 9441173fba Chinese translation update (by zwwooooo). Sevenfm 2022-05-20 11:01:37 +00:00
  • a0a71894d1 Path code optimization: moved inventory searching functions out of path loop. Sevenfm 2022-05-12 16:15:58 +00:00
  • 2874a0cb92 Damage lock with bullets: - lockBustingPower works as percentage bonus to damage based on bullet impact - only damage lock if opening possible - allow damaging lock if ubSmashDifficulty <= lockBustingPower + bullet impact Sevenfm 2022-05-11 15:23:23 +00:00
  • dc8fffb471 Fix: use system time instead of game time for breaking AI deadlock as game time is affected by fast timer mode, as a result breaking AI decision before it can execute normally. Allow to break AI deadlock manually by pressing ESC key after 10 seconds, auto break AI after DEAD_LOCK_DELAY seconds. Sevenfm 2022-05-10 18:45:19 +00:00
  • 3fa2758399 AttemptToBlowUpLock: - fix incorrect damage value taken from removed item - catch overflow in bLockDamage - don't increase shaped charge damage without demolitions skill, use vanilla multiplier when old traits are used - only damage lock if opening possible, check actual damage in case of reaching max INT8 - improved code Sevenfm 2022-05-10 14:50:33 +00:00
  • 0f4aea2574 Experimental fix: use WALKING movement mode when sidestepping with weapon raised in turnbased mode. Sevenfm 2022-05-07 18:37:27 +00:00
  • 7f28015ac5 LIMIT_SIMULTANEOUS_SOUND option: changed delay to 50ms. Sevenfm 2022-05-06 19:15:10 +00:00
  • d0c5b366fb AICalcChanceToHitGun: take into account target facing for standing/crouched human targets (when not using SIDE_FACING_DIVISOR option). Sevenfm 2022-05-05 12:50:30 +00:00
  • b75669c181 New option LIMIT_SIMULTANEOUS_SOUND prevents sound system from multiple playing same sound at the same time. Sevenfm 2022-05-05 07:54:00 +00:00
  • a658b5121f SIDE_FACING_DIVISOR: allow this option to work for crouched target, but with lowered divisor. Sevenfm 2022-05-04 16:46:35 +00:00
  • 2cdc346934 fix divide-by-zero crash in some cases when crepitus queen is doing a tentacle attack rftr 2022-05-03 22:24:44 +00:00
  • 5a498bc0ba SIDE_FACING_DIVISOR option tweaks: - only for standing targets - only for human bodytypes - only when aiming at torso/legs - added safety checks - disabled divisor for vertical deviation Sevenfm 2022-05-03 12:14:46 +00:00
  • 01de9164b6 Chinese translation update (by zwwooooo). Sevenfm 2022-05-03 06:51:56 +00:00
  • 3d1f8b1951 New ingame option "Show enemy movement" - show location of recently known enemy (seen/heard last turn). Improved tooltip for formation movement: SHIFT + click to move in formation. Sevenfm 2022-05-01 08:24:46 +00:00
  • 6d0c4ab4ce if using the features screen to play with intel, also enable extra civilians and extra merchants so the black market is available rftr 2022-04-29 07:45:40 +00:00
  • 7b57f834f6 unactivated turncoats ignore suspicious activity. unactivated turncoats intentionally try to miss when shooting at mercs/militia. rftr 2022-04-24 21:16:13 +00:00
  • 904fae7a96 CancelDrag, StartDrag: update interface panel to change drag icon status. DrawTraitRadius uses usColour. Allow to start dragging from any stance, soldier will crouch automatically. Show draggable objects when drag skill menu is active. Press [\] key to start dragging object/solder/corpse in front of merc. Sevenfm 2022-04-24 18:21:44 +00:00
  • cdc605d5ab Press [\] to break window glass with crowbar or any two-handed weapon. Weapon can be damaged in the process. Sevenfm 2022-04-21 13:00:09 +00:00
  • 02a8c48873 fix ARC cashback bug: https://thepit.ja-galaxy-forum.com/index.php?t=msg&th=22776&goto=364578&#msg_364578 also remove incorrect dependency on fAssignTraitsToEnemy for HVT strikes rftr 2022-04-15 16:32:07 +00:00
  • 86fd310d6d fix tactical turncoat activation reducing enemy soldier count twice rftr 2022-04-15 04:14:34 +00:00
  • fcc21e32dc added new option in Skills_Settings.ini: [Covert Ops] COVERT_TURNCOATS_ACTIVATE_IN_AUTORESOLVE if enabled, turncoats will automatically activate when entering an autoresolve battle rftr 2022-04-14 06:50:44 +00:00
  • 5d98b5da8a Chinese translation update (by zwwooooo). Sevenfm 2022-04-14 06:19:23 +00:00
  • 67d5aeadb0 Additional Laptop files (by sun_alf). Example file: https://github.com/sun-alf/BRAINMOD-o/blob/master/Data-BRAINMOD/TableData/Laptop/AdditionalFiles.xml Sevenfm 2022-04-13 10:43:49 +00:00
  • 186a722519 Fix, improv.: NO_REMOVE_RANDOM_SECTOR_ITEMS (by sun_alf). fix: it was using doubled number of arrived enemies (NumEnemiesInAnySector counts the same enemies twice if called prior to RemovePGroup.) improvement: * chance to steal a WORLDITEM is it's coolness * 10%. * looters can steal up to "3 kg * numEnemies" of items in total, and no more. Sevenfm 2022-04-08 21:00:58 +00:00
  • 89e0fd33ec Get rid of buggy-style odd hits when a merc is on the middle of roof, not at enemy's line-of-fire, and prone. Shortly, suppression still affects hiding roofers, but accidental hits do not (by sun_alf). Sevenfm 2022-04-07 18:18:39 +00:00
  • 6e0a311c4c By default sort AIM names in descending order (original behavior). Sevenfm 2022-04-05 18:14:04 +00:00
  • 8d952591fd fix assert/crash when a spy is hiding or gathering intel in the 2 rightmost columns. this was caused by an overflow in the fSectorsWithSoldiers array when doing the hourly assignment update rftr 2022-04-05 05:38:27 +00:00
  • b2ea45b182 ESC for multiple selected mercs: first stop mercs, next press unready weapon. Sevenfm 2022-04-02 15:39:58 +00:00
  • 0782dec389 ESC: unready weapon for all selected mercs. Sevenfm 2022-04-02 15:28:41 +00:00
  • 2747f9cee0 Fix: Assertion failures on militia strategic commands (by sun_alf) * Discarding a route can result in failure"Path exists, but no waypoints were added! AM-0". * Waypoints can be not deleted upon arrival to final destination. rftr 2022-04-02 04:27:02 +00:00
  • 746d15a1ba remove magic numbers from the usLimitedToSystem bitflag rftr 2022-04-02 01:11:25 +00:00
  • c334d4a0d4 Optimize RandomMagazine() called when deploying to tactical sector (by sun_alf) Asdow 2022-03-31 15:10:19 +00:00
  • 094c2edbde Fix: incorrect path rebuilding in RebuildWayPointsForGroupPath() (by sun_alf) Additional correction to RebuildWayPointsForGroupPath(): we should not skip "next" sector if we are between sectors. (Original comment stated opposite which was confusing) rftr 2022-03-31 05:08:49 +00:00
  • 3577ffa91a Improve SurfaceCache error messages Asdow 2022-03-30 13:05:56 +00:00
  • 508adc4eee Show "Select All" line in strategic movement popup box only if we have more than 1 movable squad in sector (by Asdow). Sevenfm 2022-03-29 18:58:33 +00:00
  • 75d98aecfd add "Disguise" menu to tactical skill menu (alt + rightclick) add "Fill canteens" action to tactical skill menu, under "various" rftr 2022-03-29 06:02:44 +00:00
  • 4689369f83 adjusted AI SAM site repairs: - SAM sites are no longer repaired instantly when AI takes control of a sector - repairs begin 24 hours after the AI takes control, and repeat every 24 hours until the SAM is back at 100% - repairs can be interrupted by the player regaining control of the SAM site - time to repair a fully-destroyed SAM site depends on difficulty: novice takes 5 repair cycles, experienced takes 4, expert 3, and insane 2 - moved RepairSamSite() from ASD.h (where it was unused) into strategicmap.h - this sets up the existing but previously unused strategic event hook EVENT_SAMSITE_REPAIRED rftr 2022-03-26 21:44:43 +00:00
  • bd5b14358d Fix: incorrect path rebuilding in RebuildWayPointsForGroupPath(), incorrect GroupAtFinalDestination() detection (by sun_alf) rftr 2022-03-26 21:00:13 +00:00
  • 90850826bb Chinese translation update (by zwwooooo). Sevenfm 2022-03-26 07:36:41 +00:00
  • f130e5676c Fix for PMC/militiaroster email being sent over and over. Shadooow 2022-03-26 06:24:10 +00:00
  • 9acaa41e95 Added Autobandage option to Skill Menu. Sevenfm 2022-03-25 10:50:18 +00:00
  • 033ae4a191 Added two new tags into Items.xml, <FoodSystemExclusive> and <DiseaseSystemExclusive> which prevents specific items to appear without these systems enabled. Shadooow 2022-03-24 05:40:46 +00:00
  • c704e37586 WRITE_PROFILE_DATA_TO_XML = TRUE will now also outputs a MercStartingGear.xml, useful to convert data from prof.dat into new xml format automatically. Shadooow 2022-03-23 03:20:44 +00:00
  • 7baeb20175 INI option SOLDIERS_ALWAYS_WEAR_ANY_ARMOR works improperly at 100% game progress, so that a soldier lacks 1, 2 or all 3 armor items ('naked' guy). (by sun_alf) Shadooow 2022-03-22 22:12:07 +00:00
  • 3e4295c70b Corrected prototype and definition of the function ChooseArmourForSoldierCreateStruct to match and removed line breaks from withing function prototypes. Shadooow 2022-03-22 20:43:08 +00:00
  • 39bbc63884 Fix: clear TEAM panel left/right area. Sevenfm 2022-03-22 15:23:31 +00:00
  • 87b0c7c6b7 new feature: madlab's robot can be upgraded rftr 2022-03-21 17:34:49 +00:00
  • f7315115af Chinese translation update (by zwwooooo). Sevenfm 2022-03-21 07:36:22 +00:00
  • e48c16eb67 fix: load feature flags after external options are loaded rftr 2022-03-21 05:33:54 +00:00
  • fb3a9d40b2 remove initialisers from rebel command structs rftr 2022-03-21 05:30:53 +00:00
  • f0c6e32f05 Fixed exploit allowing to duplicate drag able structures by opening/closing them during dragging. Shadooow 2022-03-20 05:08:09 +00:00
  • 3919a648d0 Fix for PercentEliteBonus from DifficultySettings.xml not applying onto enemy armies with both admins and regular troops correctly. Shadooow 2022-03-19 21:51:42 +00:00
  • 14ae31c4f1 Partial revert of previous commit from unrelated changes that prevented the build to compile. Shadooow 2022-03-19 02:41:43 +00:00
  • c3bb1c0da5 Option SHOW_SKILLS_IN_HIRING_PAGE removed and made to be enabled automatically. Shadooow 2022-03-18 22:05:29 +00:00
  • 374b125ffc fix initial gearkit costs for AIM members (thanks Toni) rftr 2022-03-18 06:40:36 +00:00
  • 5cfd9660d8 add mousewheel support to the MERC website, similar to AIM's implementation (hover over a merc's face). shift/ctrl modifiers are applied to the mousewheel, just like A/D/left/right keyboard inputs. rftr 2022-03-18 05:19:09 +00:00
  • f63b121ec8 AIM members can now be sorted ascending/descending by name rftr 2022-03-17 16:33:33 +00:00
  • a78f886fd2 Fixed regression caused mercs not to be visible and commandable in undegrounds sectors. Shadooow 2022-03-17 13:39:41 +00:00
  • 682cbda213 Fixed graphic glitches, usually black screen or shadow boxes over the screen, appearing when inside the key ring popup box. Shadooow 2022-03-16 22:38:32 +00:00
  • bc829a388e fix jeep/tank check for l_AdjustEnemyStrengthInSector (Mini Events) rftr 2022-03-16 18:28:09 +00:00
  • a377eb2aaf Fixed graphical artefacts showing up around the end game videos. Shadooow 2022-03-14 19:27:34 +00:00
  • 26e0cae8e6 Fixed regression where PLAY_INTRO = 0 caused the game to be stuck in black screen after killing Deidranna. Shadooow 2022-03-14 17:52:40 +00:00
  • 74296d396a Fixed regression causing endgame videos to be played in endless loop. Shadooow 2022-03-14 16:52:23 +00:00
  • fae929d517 Added missing headers which prevented the solution to be compiled without LUA_INTRO #define. Shadooow 2022-03-14 14:37:13 +00:00
  • f360fcbf22 Fixed regression causing cutscenes with deidranna going into endless clocks. Shadooow 2022-03-14 10:16:46 +00:00
  • 9122d7a7a6 CAN_FAN_THE_HAMMER = FALSE now disables the burst mode on pistols Shadooow 2022-03-13 19:43:25 +00:00
  • 1b63f1da01 Fixed bug, where scope mode icons were lost after exiting EDB. Shadooow 2022-03-10 19:29:06 +00:00
  • 0d5c1be5d4 Fixed regression caused by r9305 where maps in some mods like AIMNAS became unwalkable completely. Shadooow 2022-03-06 06:49:55 +00:00
  • 6bad9f09b2 Fixed some of the tooltips being off by 1 option due to the removal of Stat Progress Bar from r9307. Shadooow 2022-03-03 21:32:10 +00:00
  • 24f18eeec1 Fixed vanilla bug where grenades and launchers in some maps aren't working properly which manifested either by merc able to throw/toss/launch only 1 tile far or much farther than it should. Shadooow 2022-03-02 02:29:19 +00:00
  • 06599477a0 changed ctrl + shift + T to be gated behind cheat activation, and it is now labelled "Auto save # cheat" Shadooow 2022-03-01 23:14:09 +00:00
  • 1e94aea625 Don't apply mortar/GL default penalty for enemy/militia is they cannot have trait skills, improved code to support old skill system. Sevenfm 2022-03-01 18:20:46 +00:00
  • c23d62de02 Makes it so that if ASSIGN_SKILL_TRAITS_TO_ENEMY or MILIATIA is disables then enemies or militia will not get penalties/bonuses from new traits which then should fix the issue where enemies do not use mortars at all when this option is disabled. Shadooow 2022-03-01 17:49:24 +00:00
  • a184f76753 Fix for grenades being put into inventory instead back into hand if the soldier is stopped from throwing it in middle of animation by game (interrupt/spotting another enemy). Shadooow 2022-02-28 22:23:33 +00:00
  • 851f82e2db Russian translation: minor fix. Sevenfm 2022-02-23 13:44:27 +00:00