mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
NCTH CalcNewChanceToHitGun refactoring / cleanup (by silversurfer)
o Externalized ja2_options.ini value if you want to use / or not the cleaned up version of CalcNewChanceToHitGun: USE_NEW_CTH_CALCULATION o The cleanup only effects the game if you play with NCTH system o The refactoring makes the code much easier to read and also shrinks the locs o Fixed some old bugs in calculation o In the future the switch USE_NEW_CTH_CALCULATION can be removed completely o more infos: http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/322986/Re_Potential_NCTH_Code_Change_.html#Post322986 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6235 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -512,6 +512,10 @@ typedef struct
|
||||
UINT16 guiMaxItemSize;
|
||||
UINT16 guiOIVSizeNumber;
|
||||
|
||||
// silversurfer: this is only for the cleaned up NCTH calculation. Please remove if the new functions are accepted
|
||||
// see Tactical\Weapons.cpp funtion CalcNewChanceToHitGun()
|
||||
BOOLEAN fUseNewCTHCalculation;
|
||||
|
||||
//Sight range
|
||||
UINT32 ubStraightSightRange;
|
||||
UINT32 ubVisDistDecreasePerRainIntensity;
|
||||
|
||||
Reference in New Issue
Block a user