Commit Graph
7637 Commits
Author SHA1 Message Date
silversurfer 969de84e59 AI improvements (by Sevenfm):
AI_EXTRA_SUPPRESSION
- AI will use suppression fire more often in RED state (set minimum AI CTH to 1)

AI_NEW_MORALE
- Better dynamic morale calculation depending on tactical situation.
- Additional min/max limits for AI morale
- Disabled HOPELESS morale for soldiers without guns (they can pick up weapon or attack with hands sometimes)

AI_BETTER_COVER
- Additional checks for line of sight, fresh corpses and overcrowded locations

AI_EXTRA_FLANKING
- Allow flanking for BRAVEAID/BRAVESOLO

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2275 4f8fa57e-7814-0410-bad4-adc449f26b7c
2015-12-19 14:19:15 +00:00
silversurfer 2c889635ac Fix: New drug system didn't work and led to crashes of the debug build at start. Data will now be assigned to NewDrug directly instead of going through a placeholder which breaks the vectors.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8005 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-12-14 10:15:09 +00:00
silversurfer 1e54f492ff AI flanking improvement by Sevenfm:
Improved AI RED/YELLOW flanking:
 - better direction calculation (use direction arrays)
 - increased search range 4->8
 - removed incorrectly calculated AP limit (use CalcActionPoints instead)
 - additional direction for flank spot searching
 - prefer desired direction
 - penalize tiles with no cover from noise location
 - penalize tiles too far from noise location
 - don't go into deep water for flanking
 - skip water tiles (can flank over water tiles only if can cross them in one turn)
 - min/max flanking range depends on time of day and base sight range
 - skip buildings when searching for flank spot if not in building already, because soldiers often run into buildings and stop flanking
 - use RUNNING movement mode for flanking instead of default SWATTING
 - only CUNNINGSOLO and CUNNINGAID soldiers flank
 - don't start flanking when no friends between soldier and noise gridno (in 3 directions)
 - stop flanking when no friends between soldier and noise gridno (in 3 directions)
 - stop flanking and reset flank counter in BLACK state
 - avoid map edges when flanking
 - disable flanking for soldiers with limited roaming range (STATIONARY/ONGUARD/CLOSEPATROL/SNIPER)

 In general, AI flanking is much more effective now (it never fully worked previously, especially in turnbased).

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8003 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-11-17 19:19:22 +00:00
silversurfer d0922e0370 Fix: Sector L4 had an invalid water type
git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2274 4f8fa57e-7814-0410-bad4-adc449f26b7c
2015-11-08 12:41:32 +00:00
Wanne 8e9ad379c2 Fix: Hireable Mike Script (by merc05)
- Fixed "Hiring Mike Instantly" when using auto-initiated conversation with Mike
- see: http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=22803&goto=342868&#msg_342868

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2273 4f8fa57e-7814-0410-bad4-adc449f26b7c
2015-11-06 08:15:47 +00:00
Wanne 38e77c7295 Fix: Fixed compilation errors when trying to compile UB version
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8001 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-11-04 08:12:47 +00:00
silversurfer 0ff8256c40 Fix: When talking to a shopkeeper the game could crash with an assertion in Shopkeeper Interface.cpp line 990 because the temp vector wasn't initialized properly.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8000 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-11-03 12:34:31 +00:00
Wanne a3806919ad Bugfix: Allow shooting on "water tiles" instead of showing the "?", if our soldier is on ground level > 0
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7998 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-10-23 14:47:15 +00:00
Wanne a40fd1d7ce Added / Updated Chinese EDT files (by TBS & zwwooooo)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameData@7997 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-10-16 17:12:24 +00:00
Wanne 91eef3098c - Equip Milita Improvements: I've written code, which adds attachments to free positions on the gun militia chose to pick up (by navaroe)
- Bugfix: Reinforcements:  Parts of roadblocks were resurrected after reinforcements death (by navaroe)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7995 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-10-15 10:40:58 +00:00
Wanne 1bcda08c70 - Updated Chinese translations (by zwwooooo)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameData@7994 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-10-05 19:31:49 +00:00
Wanne fbd5cc001f - Updated Chinese translations (by zwwooooo)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7993 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-10-05 19:31:35 +00:00
Wanne 6d08593bd0 MeLoDy Updates
- Increased horizontal table column width to fit longer merc names


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7991 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-09-13 15:21:55 +00:00
Wanne b9a07dd36a MeLoDy Updates
- Increased horizontal table column width to fit longer merc names
- Externalized header texts 

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7990 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-09-13 13:49:41 +00:00
Wanne ffdcb827df Externalized Quest strings (Encyclopedia) (FactDescText, QuestDescText) to the language Text files
- See comment // TODO.Translate

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7989 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-09-13 12:00:23 +00:00
Wanne df70bdf3ac - Renamed Win 8 Fix to Win8/Win10 Fix
git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2272 4f8fa57e-7814-0410-bad4-adc449f26b7c
2015-09-13 09:47:25 +00:00
Wanne a2589f7034 Bugfixes / Improvements (macros) of Assignments (by Franimus)
- Fixed warning for INT8 overflow on scroll region priority, seemingly had no effect though
- Use new assignment macros
- Bugfix - POWs' activity level being overwritten
- Feature - automatically bandage bleeding mercs on a PATIENT assignment
- Bugfix - mercs treated at facilities should not use mercs' medkits
- Added 3 new enums for facility doctor, patient, and repair
- Bugfix for facility patients not detected as being in a facility
- Bugfix - iBurstAPCost was ignoring half of its calculation due to extraneous semicolon


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7988 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-09-12 11:27:28 +00:00
Flugente 3ab623e452 Externalised ini values: CORPSE_DELAY_UNTIL_ROTTING and CORPSE_DELAY_UNTIL_DONE_ROTTING control when a corpse rots and vanishes.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7981 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-19 20:02:00 +00:00
Flugente 59210496d1 Externalised ini values: CORPSE_DELAY_UNTIL_ROTTING and CORPSE_DELAY_UNTIL_DONE_ROTTING control when a corpse rots and vanishes.
git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2271 4f8fa57e-7814-0410-bad4-adc449f26b7c
2015-08-19 19:59:02 +00:00
Flugente 8a84db40d4 Fix: enemy tanks spawned by cheats are not added to the sector count
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7980 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-18 19:26:41 +00:00
Flugente a87200619a Fix: singleshot launchers are always displayed as out of range
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7979 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-18 18:50:10 +00:00
Flugente 96d1177e31 Fix: sectors can't be selected in GETITEM menu
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7978 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-17 21:09:44 +00:00
Flugente 5385ae1295 - Fix: cleaning weapons prompt read parameters wrong
- when a merc regains HP via surgery, display the gain
- if an EPC leaves the team, add them to the list of departed characters

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7977 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-17 20:00:19 +00:00
silversurfer 873929c410 Fix (by sevenfm): Queen position was not read correctly from Mod_Settings.ini
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7976 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-17 17:09:51 +00:00
inshy e251139d99 Do not use a "Tab" instead "Space" in the text messages. We don't have symbol for button "Tab" in the fonts, so when we use it in the text the game show "A"
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7975 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-15 18:31:58 +00:00
Flugente 257df463fa Radio sets no longer need a battery. Item #1698 is no longer needed (is still in for compatibility reasons for now).
git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2270 4f8fa57e-7814-0410-bad4-adc449f26b7c
2015-08-14 20:52:06 +00:00
Flugente 8fa2d4402c Rdio sets no longer need a battery.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7974 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-14 20:50:27 +00:00
inshy dfe2dae684 -Translated "MeLoDY" web for Russian language
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7973 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-14 11:49:37 +00:00
Flugente 2655b37ddf Fix: ap cost for AI_ACTION_CLIMB_ROOF was wrong and calculated too often
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7972 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-13 18:14:57 +00:00
inshy 58265d947f Sandbags no longer need to be filled, item #1541 has been removed.
Empty sandbags (#1540) are now a 'stack' of bags that can be used to create 100 sandbag structures and it can be merged.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameData@7971 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-13 17:13:59 +00:00
inshy 2d267a9d9b -Fixed grammar in English (It is Ok to use the word "insertion" in Kerberus web???)
-Translated main page of Kerberus web for Russian language

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7970 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-13 13:21:21 +00:00
Flugente 7fed5fd5dd - Sandbags no longer need to be filled.
- Item flags 1 and 4 (EMPTY_SANDAG and SHOVEL) are no longer used.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7968 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-12 21:14:48 +00:00
Flugente 0d0a547bcf Sandbags no longer need to be filled, item #1541 has been removed.
Empty sandbags (#1540) are now a 'stack' of bags that can be used to create 100 sandbag structures and it can be merged.

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2269 4f8fa57e-7814-0410-bad4-adc449f26b7c
2015-08-12 21:12:34 +00:00
Flugente d97eb0c4c3 - clarified ini values
- small background adjustments

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2268 4f8fa57e-7814-0410-bad4-adc449f26b7c
2015-08-12 20:20:43 +00:00
Flugente 80bdeff0e4 drinking aclcohol causes less dynamic opinion events, as there were way too many if drinking in a large group
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7967 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-12 20:14:14 +00:00
Flugente 6fdde45807 - The 'Improve gear' function in the [Ctrl] + [.] menu improves the gear of all present mercs by replacing their items with sector items with higher status
- Fix: AP costs for item consumption were not substracted

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7966 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-11 22:51:00 +00:00
Flugente 80cf6af0ce - Fix: opinion events on drinking alcohol did not happen
- Fix: mercs in transit complain about mercs present in Arulco

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7965 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-09 22:21:37 +00:00
Flugente 13875810a4 minor code cleanup
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7963 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-08 09:33:28 +00:00
Flugente 5e8ab2af31 Fix: possible access to invalid memory if waypoint is list was corrupted
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7962 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-07 20:16:15 +00:00
Flugente 929d15ec8a changed several variable names for body types to 'ubBodyType', as this is more consistent and allows wider use of macros
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7961 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-07 20:09:10 +00:00
Flugente 67fa865543 - Fix: Mike and Iggy could spawn as tanks
- Tanks always get 100 HP
- replaced a few hardcoded values with enums


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7960 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-07 18:54:58 +00:00
Flugente 7dbff83e24 - Fix: VS2010 debug build issue with reading in StructureConstruct.xml
- replaced a few hardcoded values with enums
- use TANK(...) macro instead of checking for bodytype by hand

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7959 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-05 19:01:11 +00:00
Flugente 90486b015b Oly start PMC hiring if > 0 militia have been selected
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7958 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-04 19:11:13 +00:00
inshy 2b45f79af9 Russian language files updated:
-Updated 2 new lines for 169.EDT

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameData@7957 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-02 20:02:02 +00:00
inshy b20997749b Russian language files updated:
-Added missing WAV files for new IMP (#169)
-Added missing WAV files some other characters

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameData@7956 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-02 20:01:01 +00:00
silversurfer abe7117231 Fix (by navaroe): The game could try to place more soldiers on the map than the map had slots which would cause the game to crash.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7955 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-08-02 13:59:07 +00:00
inshy 0c27f5f2c4 Russian language files updated:
-Fixed grammar in Russian

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7954 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-07-30 18:39:42 +00:00
inshy 5474f16334 Russian language files updated:
-Fixed some mistranslation

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7953 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-07-29 20:19:37 +00:00
Flugente 0beda54c8d Fix: constructing/deconstructing a fortifiaction only worked if the tileset was part of the additonal tileset, not if it was a part of GENERIC 1
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7938 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-07-26 09:50:16 +00:00
Flugente 0a748a02b3 Message boxes can have a dropdown. For usage, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=20659&goto=341863&#msg_341863
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7935 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-07-25 17:34:18 +00:00