Sevenfm 93c41f2f97 AI suppression fire improvements.
CalcBestShot:
- added standard check for valid opponent
- use standard knowledge functions
- blind soldier can only attack seen/heard personally
- determine suppression fire (shooting at target nobody sees currently)
- don't shoot if target location is seen and empty
- no fire on unseen opponents with throwing knives
- only enemy team can use blind suppression fire
- only try to suppress alive and conscious human targets
- additional check to limit shooting through walls
- alt weapon holding scope mode is used only when ubAllowAlternativeWeaponHolding == 3
- hip firing allowed only for human bodytypes
- take into account direction when checking stance
- shoot heavy guns in standing stance only when using hip fire
- penalize suppression fire

Red AI suppression fire:
- check valid target
- check weapon/ammo requirements
- check that soldier is not sniper
- check friendly fire chance
- reduce chance to shoot if target is beyond weapon range
- check that we have spare ammo

Improved code to prepare suppression fire:
- change stance first of needed
- allow shooting with aiming
- reserve APs to hide if no cover or enemy is close
- added debug messages

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8878 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2020-08-06 07:53:12 +00:00
2020-06-25 22:42:44 +00:00
2020-08-02 16:55:46 +00:00
2020-07-24 19:25:47 +00:00
2016-01-31 17:54:51 +00:00
2007-06-09 09:01:04 +00:00
2020-06-25 22:42:44 +00:00
2020-06-25 22:42:44 +00:00
2020-02-27 18:23:38 +00:00
2013-04-14 22:58:58 +00:00
2014-10-24 06:59:07 +00:00
2007-10-20 06:56:34 +00:00
2007-10-20 06:56:34 +00:00
2007-10-20 06:56:34 +00:00
2007-10-20 06:56:34 +00:00
2020-05-30 14:26:16 +00:00
2016-03-08 21:06:31 +00:00
2013-10-19 12:47:53 +00:00

Last 1.13 SVN 4721



Compilation of UB :



Set #define JA2UB and #define JA2UBMAPS in file builddefines.h.



Compilation of JA2 :



Rem #define JA2UB and #define JA2UBMAPS in file builddefines.h.





Example :



UB :



#define JA2UB 

#define JA2UBMAPS



JA2 :



//#define JA2UB 

//#define JA2UBMAPS





www.legion.zone.zg.pl
S
Description
No description provided
Readme
57 MiB
Languages
C++ 90.4%
C 9.3%
HTML 0.2%
CMake 0.1%