Asdow
82aca548f5
Merge branch 'master' into ExtraMercs
2025-09-24 16:14:10 +03:00
BeatAroundTheBuscher and GitHub
ed00830202
Fixes Upper/Lower Casing for include paths ( #487 )
...
* Fixing upper/lower case for includes
types.h, zconf.h and zlib.h were renamed so that global includes like Types.h
are not used.
2025-08-16 22:01:12 -03:00
Asdow
1a8db5d15b
More conversions to SoldierID
2025-06-27 19:58:20 +03:00
Asdow
d0dbb9afb1
Remove unused function
2024-12-01 21:37:52 +02:00
Asdow
bfb724eab9
Use SoldierID
2024-12-01 18:23:52 +02:00
Asdow
66f5156f03
Use SoldierID
2024-11-30 16:52:18 +02:00
Asdow
3f448a62fb
Remove unused functions
2024-11-19 00:08:46 +02:00
Asdow
f50bdf99cc
Convert to SoldierID
2024-11-17 20:41:09 +02:00
Asdow
274be524e6
More functions converted to SoldierID
2024-11-17 16:25:12 +02:00
Asdow
34f0b40f93
Convert functions and globals to SoldierID
2024-11-17 14:53:52 +02:00
Asdow
f58cf588a6
Mark TacticalStatusType::sSlideReason as _UNUSED
...
Removed from function call parameters at the same time.
It was supplied to SlideTo, SlideToLocation and SoldierLocationRelativeToScreen but was never used.
2024-11-17 14:20:37 +02:00
Asdow
3fe6e4f3d8
GetSoldier() to SoldierID
2024-11-17 10:33:29 +02:00
Asdow
3e1c87f53c
Remove unused global gusOldSelectedSoldier
2024-11-17 10:27:42 +02:00
Asdow
cbf53f8848
TacticalStatusType::ubLastRequesterSurgeryTargetID to SoldierID
2024-11-17 10:26:01 +02:00
Asdow
f0be44bb42
Convert to SoldierID
...
TacticalStatusType::ubEnemySightingOnTheirTurnEnemyID
TacticalStatusType::ubEnemySightingOnTheirTurnPlayerID
TacticalTeamType::ubLastMercToRadio
2024-11-17 10:23:01 +02:00
Asdow
61c5a41bea
LocateSoldier() & HandleMercLeavingEquipmentInDrassen() & HandleMercLeavingEquipmentInOmerta()
2024-11-17 01:35:49 +02:00
Asdow
b98732daa7
Convert gusSelectedSoldier to SoldierID
2024-11-15 19:06:34 +02:00
Asdow
1345d92521
Convert Soldier Find.cpp to SoldierID
2024-11-14 00:45:50 +02:00
Asdow
4d740055da
Provide access function to MenPtrs, MercPtrs & MercSlots
...
All raw array accesses should be done with these instead.
2024-11-13 01:33:32 +02:00
Asdow
5cf0ef4bde
Correct variables from INT8 to INT16
2024-11-09 22:52:21 +02:00
Asdow
a81820d0d7
Fix UB compilation
2024-11-09 16:46:39 +02:00
Asdow
03482ffc3d
Merge branch 'master' into ExtraMercs
2023-07-26 13:17:49 +03:00
majcosta and GitHub
d007d3ba9e
Remove gszCivGroupNames dependency from main executable ( #114 )
...
* Add include guard to EditorMercs.h
* bring CivGroup related symbols from Tactical over to Editor
and adjust #includes accordingly
* remove redundant #ifdef
2023-01-26 19:09:46 -03:00
Asdow and GitHub
ae1fd0a2ee
Prisoner feature bugfix ( #110 )
...
* Allow game to continue after offering to surrender to enemies
* Fix issues related to surrender and POW quests
- Quests were ended prematurely if one had prisoners in both alma and tixa
- Strategic status flags for rescue/escape were not set properly
- Only the maximum amount a prison can hold will be taken as POWs, rest of the mercs will either escape or have to fight to the death, to prevent a player having unrescuable POWs
- Capturing a mercenary had a lot of functions called that should not have been, IF the merc is not going to be captured after all
* Switch all tactical surrender calls to use one unified function
* Only mercs that are capable can escape
Incapacitated mercs left behind will die.
Should probably prioritize incapacitated mercs to be captured by the enemy to prevent needless deaths
* Combine pow quest state changes into one function
* Add JumpIntoEscapedSector to header file
* Allow enemy to demand surrender even if they already have POWs in Tixa and Alma
* Remove surrender from UB
* Address review feedback
2023-01-22 23:35:08 +02:00
Asdow
1f0a8f46e8
Import changes from the local SVN working copy
2022-10-10 10:08:44 +03:00
Sevenfm
6d14282538
NEW_SUPPRESSION_CODE:
...
- use effective experience level when calculating base suppression tolerance, so nearby squad leaders may raise effective level and help fight suppression
- if NEARBY_FRIENDLIES_AFFECT_TOLERANCE option is active, nearby friends can help increase suppression tolerance, up to +-3 points added depending on distance, only for merc bodytypes
CheckStatusNearbyFriendlies: minor code improvements, fixed variable names, use INT16 for calculation
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9182 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2021-10-15 08:44:57 +00:00
Sevenfm
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).
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9030 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2021-05-16 18:46:37 +00:00
Flugente
c5022fa1e5
New feature: turncoats can be created from enemies and ordered to switch sides
...
Requires GameDir >= r2535
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=360191&#msg_360191
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8811 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2020-05-30 00:13:42 +00:00
Sevenfm
8b53d273f9
New tags in CivGroupNames.xml: Side, CustomSide allow setting custom side for civilian group.
...
NewEye: fix possible bug.
InitShopKeeperSubTitledText: correctly initialize data.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8764 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2020-02-27 10:51:45 +00:00
Flugente
e205697804
Fix: possible underflow in UB code
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8605 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2018-08-28 20:44:16 +00:00
Flugente
3bbdd4a23a
New ability: a disguised spy can distract unalerted enemies, making it easier to sneak by.
...
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=20228&goto=352562&#msg_352562
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8528 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2018-02-25 19:07:31 +00:00
Flugente
e55b480996
New feature: Getting and using intel allows for more spy-related roleplay.
...
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23643&goto=352475&#msg_352475
Requires GameDir >= r2401.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8522 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2018-02-18 23:17:34 +00:00
Flugente
73462c3610
- Fix: external iInitialMercArrivalLocation was overwritten by value from savegame
...
- Fix: gridno outside of map is used as valid map gridno
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8104 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2016-03-12 00:23:09 +00:00
Flugente
d1e1759aa2
Removed ENABLE_ZOMBIES-define
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8047 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2016-01-31 17:54:51 +00:00
Flugente
eff368f099
- New Quest: if Kingpin is unaware Maria escaped with the player's help, he enlists the player to kill the DaSilvas
...
- Moved civ factions for mod compatibility (UC)
Does not break savegame compatibility.
Requires GameDir >= r2252.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7889 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-06-13 17:26:16 +00:00
Flugente
f6f19d01cd
Fix: captured enemy officers still provided boni
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7760 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2015-02-28 15:32:51 +00:00
silversurfer
faf345ac18
Fix (by Sevenfm): Corrected mixed suppression parameters MAX_CTH_PENALTY_FOR_TARGET_SHOCK and MAX_CTH_PENALTY_FROM_SHOCK and also fixed suppression calculation.
...
http://www.ja-galaxy-forum.com/ubbthreads.php/topics/337412/Re:_Code_Snippets#Post337412
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7621 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2014-10-31 15:36:02 +00:00
Flugente
0efc3b7241
- When ordering a merc to interrogate, one can now select what type of prisoners should be interrogated primarily. Thus one no longer has to empty the prison just to get to the one remaining officer.
...
- Generals are now a separate prisoner type. They cannot join militia, but yield an impressive ransom.
- various prisoner fixes
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7327 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2014-07-10 21:19:26 +00:00
Flugente
6edf7dd079
- New Feature: Enemy Generals are unique enemies whose location randomized and unknwon to the player. As long as they are alive, the enemy gets signifiant strategic boni. The player must learn of their location and take take them out, preferrably without alerting them prior.
...
- Covert Ops: Bleeding is deemed suspicious only if COVERT_DETECTEDIFBLEEDING is set to TRUE.
- renamed special prisoners to officers.
- lowered the priority of enemy troops becoming medics
- prisoners in player-controlled prisons now use the prioner-colour scheme used by Shank and Dynamo
Requires GameDir >= r2028.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7179 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2014-05-01 13:28:33 +00:00
Flugente
2e773a029d
- New Feature: enemies roles allows the AI to use medics and officers, and the player can now identify high-value targets among the enemy.
...
Requires GameDir >= r1987.
- If an enemy is spawned with a radio set, he is more likely to become a radio operator.
- It is now possible to mount a gun on prone allies if you are facing them on the right angle.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7072 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2014-03-16 18:24:40 +00:00
Wanne
11037729f0
Merged from revision: 6905
...
Improved Snitch Trait (by anv)
- The snitch actions can be selected in the strategy view "Assignment" menu
o Spreading Propaganda: Accessible in town sectors
o Gathering Rumours: Accessible in town sectors
o Undercover Prison Snitch: Accessible from Facilities menu (Prison)
o Preventing Misbehaviour: New Snitch Menu
o Passive Reputation Increase
see: http://www.bears-pit.com/board/ubbthreads.php/topics/329412/1.html
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6906 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2014-02-12 17:22:40 +00:00
Flugente
f4dcc15ffa
New Feature: Campaign History collects combat data and displays battle reports on the website.
...
requires GameDir >= r1901.
For more info, see http://www.bears-pit.com/board/ubbthreads.php/topics/329205.html#Post329205
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6705 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2013-12-22 23:22:45 +00:00
Wanne
f8a0a5eb2c
New options in ja2_options.ini (by Sevenfm)
...
1) PLAYER_HIT_COUNT = 0
This works as ENEMY_HIT_COUNT option, but for player mercs.
Possible values: 0 - 4
2) SOLDIER_TOOLTIP_DISPLAY_SUPPRESSION_INFO = TRUE
Show additional info in tactical tooltip:
- APs lost due to suppression
- Suppression Tolerance
- Effective Shock Level ( Shock level modified by traits and backgrounds. This value is compared with current suppression tolerance to determine "cowering" effect )
- AI morale level
3) SHOW_ENEMY_WEAPON = TRUE
Show enemy weapon name above soldier - after health, name and rank.
You can see exact weapon name only on short distances, range calculation is similar to dynamic tooltips and based on soldiers actual viewing range and experience.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6691 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2013-12-16 09:13:55 +00:00
Wanne
0bae7724a0
New option ALTERNATE_MOUSE_COMMANDS in Ja2_Options.ini (by Sevenfm)
...
- With this option = TRUE, mousewheel is inverted for changing stance with ALT+mousewheel, also some new mouse actions are possible.
- Alternate mouse actions: see "Docs\Manual\JA2_113_Alternate_Mouse_Commands.xlsx"
https://ja2svn.no-ip.org/source/ja2_v1.13_data/GameDir/Docs/Manuals/JA2_113_Alternate_Mouse_Commands.xlsx
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6684 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2013-12-06 16:47:10 +00:00
Wanne
b9b58fe790
Ctrl + D in turnbased - skip player interrupts for that turn (by Sevenfm)
...
- This only works for singleplayer
- This only works for Old interrupt system
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6682 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2013-12-05 08:08:20 +00:00
Flugente
74f52b3982
Changing MAX_NUMBER_PLAYER_MERCS midgame no longer renders savegames unloadable, as the teamsize is stored in the savegame anyway
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6294 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2013-08-19 23:27:50 +00:00
Flugente
71274fdf55
- new function: militia can be ordered to pick up gear from sector in tactical, just like ordering them to drop it. does not work in combat for obvious reason.
...
- if militia stand in water and are ordered to drop their equipment, they will drop it on land.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6263 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2013-07-31 18:59:32 +00:00
Flugente
a1f49b3ca3
Feature improvement: the prisoner system now distinguishes between different types of prisoners (admin, regular, elite). Advanced troops are harder to interrogate, but have a high chance of retaining their rank, should they join yor militia.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6219 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2013-07-12 23:54:50 +00:00
Flugente
ee416f72bc
new feature: soldier profiles allows defining individual names/bodytypes/hair/skin/traits of soldiers and militia. The game will choose randomly from this pool.
...
WARNING: GameDir revision >= 1672 is required.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6071 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2013-05-10 23:30:42 +00:00
Flugente
265fd3bc61
Fix: EPC inventory cannot be accessed, and Nails does not allow to take his vest
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6048 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2013-05-01 21:23:55 +00:00