Asdow
6a8a22aba2
Move iter->exists() check to first
2026-06-12 15:52:24 +03:00
Marco Antonio J. Costa and majcosta
b4176bb2d9
Fix/drag unconscious softlock
...
Same logic but cleaned up version of https://github.com/1dot13/source/pull/602 which Tais contributed with Claude Code's help
Most calls to SOLDIERTYPE::IsDragging() aren't supposed to have a side effect of cancelling a drag, being simple queries.
Changing the default to reflect that is right move.
Assisted-by: Claude:
2026-06-01 21:45:55 -03:00
Greysa and Asdow
3d589bd78e
A little code cleanup and moved debug reload to shift + alt + r
2026-05-23 21:22:28 +03:00
Greysa and Asdow
ead2932316
Added dual wielding unjamming, tidied up reload and unjam code a little
2026-05-23 21:22:28 +03:00
Greysa and Asdow
bb55299ff6
Basic implementaion of unjamming on reload hotkey.
...
TODO:
text strings
check dual wielding
2026-05-23 21:22:28 +03:00
Asdow
4fcf03d31a
Include cleanup Tactical/.*cpp
2025-12-09 00:35:18 +02:00
steph-pg and majcosta
7499daf06a
Let 'w' allow to look with no extra click
2025-10-15 16:55:54 -03:00
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
1013531a7f
Remove #pragma optimize("", off) calls
2024-12-01 21:17:23 +02:00
Asdow
bfb724eab9
Use SoldierID
2024-12-01 18:23:52 +02:00
Asdow
24656f2810
Use SoldierID
2024-11-30 15:20:18 +02:00
Asdow
0d97e36c34
Use SoldierID
2024-11-21 23:56:44 +02:00
Asdow
dbc4135974
Use SoldierID
2024-11-20 21:03:08 +02:00
Asdow
1e16de30d7
Remove wrong cast
2024-11-18 23:22:19 +02:00
Asdow
f49013307f
Convert to SoldierID
2024-11-18 01:01:57 +02:00
Asdow
b74ccf3ddc
Convert to SoldierID
2024-11-17 23:45:48 +02:00
Asdow
b98732daa7
Convert gusSelectedSoldier to SoldierID
2024-11-15 19:06:34 +02:00
Asdow
2b024d63c6
Fix endless loop
2024-11-09 16:46:55 +02:00
Asdow
10250dc035
Merge branch 'master' into ExtraMercs
2024-11-09 13:44:53 +02:00
Asdow and GitHub
49a119e6b9
Convert INVTYPE boolean fields to flagmask ( #325 )
...
Rearranged fields from largest to smallest to remove alignment padding
2024-08-22 08:48:29 +03:00
Asdow and GitHub
a26845b608
Check that a dropped backpack belongs to a controllable merc ( #320 )
...
Fixes handle BP pickup behavior if a merc drops a backpack and then leaves the sector.
2024-08-10 20:14:15 +03:00
olafwqq and GitHub
4d09bea13e
Address two compiler warnings ( #258 )
2024-01-01 22:43:31 +02:00
Asdow
03482ffc3d
Merge branch 'master' into ExtraMercs
2023-07-26 13:17:49 +03:00
rftrdev and GitHub
b5ec955324
Disable backpack climb check for non-player soldiers ( #117 )
2023-01-27 17:56:46 -08: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
Marco Antonio Jaguaribe Costa and Asdow
8b1c4effa0
nuke all the #if 0's
...
scripted commit:
find . -not -path '*/.*' -and -not -path '*/ext*' -type d -exec coan source -R -E {} ';'
https://coan2.sourceforge.net/coan_man_1.html
2023-01-19 00:13:08 +02:00
majcosta and GitHub
24425a82b1
More unused stuff removal ( #49 )
...
* More unused stuff removal
delete:
- giant 'metaheaders' (JA2 All.h, Laptop All.h, etc), preferring to add #includes directly where needed
- unused ExceptionHandling and DbMan translation units
- unused WizShare.h, Bitmap.h, trle.h, video_private.h headers
* remove mentions from vc proj files too
* remove preprocessor conditionals for unused definitions
find . -iname '*.h' -o -iname '*.cpp' -exec unifdef.exe -m -UPRECOMPILED_HEADERS -UJA2_PRECOMPILED_HEADERS -UWIZ8_PRECOMPILED_HEADERS -UPRECOMPILEDHEADERS {} ';'
then manually fixed a couple files the tool errored out on
* yes, the comments too
as title
2023-01-03 15:51:48 +02:00
Asdow
6dbbfa227a
Change shift + B to also pick up back packs in tactical
...
Instead of always dropping backpacks, it will now either pick up or drop backpacks depending on if any have been dropped
2022-11-10 18:40:00 +02:00
Asdow
1f0a8f46e8
Import changes from the local SVN working copy
2022-10-10 10:08:44 +03:00
Sevenfm
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.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9369 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-04-24 18:21:44 +00:00
Sevenfm
cdc605d5ab
Press [\] to break window glass with crowbar or any two-handed weapon. Weapon can be damaged in the process.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9368 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-04-21 13:00:09 +00:00
Sevenfm
b2ea45b182
ESC for multiple selected mercs: first stop mercs, next press unready weapon.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9358 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-04-02 15:39:58 +00:00
Sevenfm
0782dec389
ESC: unready weapon for all selected mercs.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9357 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-04-02 15:28:41 +00:00
Sevenfm
9acaa41e95
Added Autobandage option to Skill Menu.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9344 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-03-25 10:50:18 +00:00
Shadooow
06599477a0
changed ctrl + shift + T to be gated behind cheat activation, and it is now labelled "Auto save # cheat"
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9314 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-03-01 23:14:09 +00:00
Sevenfm
81f493aa5a
Quick keys Alt + 0..9 and Alt + [~] now work consistently in normal and cheat mode.
...
Moved Alt + 1..5 cheat hotkeys to Ctrl + Alt + 1..5
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9309 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-02-20 13:42:59 +00:00
Shadooow
a8fec72f2e
ALT+g cheat changed from "semi-random" merc to merc of your choosing.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9308 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-02-19 14:13:00 +00:00
Sevenfm
aa5e2dc4c3
PlaceObject: don't show incompatible face item message when doing autoplacement.
...
SwapGoggles: swap face item to helmet if possible.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9301 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-02-15 12:03:54 +00:00
Sevenfm
878447af9f
Improved code for flashlight/stock transformation hotkeys.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9300 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-02-13 16:55:39 +00:00
Sevenfm
8d655ceb96
Shift+T: allow transformation into item with the same item size (for example, shovel mode transformation).
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9298 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-02-13 07:22:12 +00:00
Sevenfm
04d14f436f
New hotkey Shift+P - transform stock.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9297 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-02-13 06:56:23 +00:00
Sevenfm
3a9d6d65e4
Shift+T: only allow item transformation if item is corpse or resulting item is of the same item class, also check it's not transformation into same item.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9296 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-02-11 11:22:33 +00:00
Shadooow
6ca75431ae
Disallowed to pick up items from openable structures like crates if they are currently closed. This additionally fixes bug where Bobby Ray's delivery wouldn't show up if the player had sector of the delivery currently loaded and there were any unpicked items from previous delivery in the delivery crate.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9285 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-01-31 03:39:50 +00:00
Sevenfm
c972655886
ESC key:
...
- close active skill sub-menu
- stop moving merc
- stop moving group of mercs
- stop dragging
- unready weapon
Changed hotkeys:
- [A]: activate skills menu.
- [Alt]+[A]: start autobandage
- [Q]: change scope mode
- [Ctrl]+[Q]: change grenade launcher angle
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9260 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2022-01-16 13:59:59 +00:00
Sevenfm
27c0d1f8fe
With ALTERNATE_MOUSE_COMMANDS = TRUE, mouse wheel allows to change active interface level.
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9224 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2021-12-31 20:46:44 +00:00
Sevenfm
1ee875be61
New ingame options screen (by rftr).
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9212 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2021-11-17 07:50:20 +00:00
Shadooow
f0f558f872
fixed collapsed soldiers sometimes not being able to get up when they should have until next player round
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9200 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2021-10-28 09:36:58 +00:00
Shadooow
20335041f7
fixed autobandaging showing up during conversation which caused numerous issues
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9169 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2021-09-24 02:10:48 +00:00
Flugente
af12b8210c
Fix: opening options during Meanwhile leaves the game inoperable
...
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9148 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2021-07-31 14:21:27 +00:00