Want a chance to win some prizes while helping update the wiki? Then check out the wiki's contest page.

Difference between revisions of "User:Evil4Zerggin/Naval combat defines"

From Hearts of Iron 4 Wiki
Jump to navigation Jump to search
 
Line 11: Line 11:
  
 
* 50 speed, 50 visibility: All 100%.
 
* 50 speed, 50 visibility: All 100%.
* 50 speed, 25 visibility: LG 100%, HG 100%, Torp ~40%.
+
* 50 speed, 25 visibility (50 profile): LG 100%, HG 100%, Torp ~40%.
* 60 speed, 30 visibility: LG 100%, HG 100%, Torp ~39%.
+
* 60 speed, 30 visibility (50 profile): LG 100%, HG 100%, Torp ~39%.
* 60 speed, 20 visibility: LG 100%, HG ~55%, Torp ~17%.
+
* 60 speed, 24 visibility (40 profile): LG 100%, HG ~79%, Torp ~24%.
* 60 speed, 15 visibility: LG 100%, HG ~30%, Torp ~10%.
+
* 60 speed, 20 visibility (33 profile): LG 100%, HG ~55%, Torp ~17%.
* 60 speed, 12 visibility: LG ~53%, HG ~18%, Torp ~6%.
+
* 60 speed, 15 visibility (25 profile): LG 100%, HG ~30%, Torp ~10%.
 +
* 60 speed, 12 visibility (20 profile): LG ~53%, HG ~18%, Torp ~6%.
 +
 
 +
Hypothesis:
 +
 
 +
* Still based on 100% * visibility / speed.
 +
* If weapon profile < ship profile, 100% hit chance.
 +
* max(1.0, (ship profile / weapon profile)^2)

Latest revision as of 08:46, 4 March 2019

  • COMBAT_BASE_HIT_CHANCE: Maximum chance to hit. 1.0 = 100% hit chance.

Hit chance testing

Series 1

  • COMBAT_BASE_HIT_CHANCE = 1.0
  • Hit profiles: LG 25, HG 45, Torp 80

Results:

  • 50 speed, 50 visibility: All 100%.
  • 50 speed, 25 visibility (50 profile): LG 100%, HG 100%, Torp ~40%.
  • 60 speed, 30 visibility (50 profile): LG 100%, HG 100%, Torp ~39%.
  • 60 speed, 24 visibility (40 profile): LG 100%, HG ~79%, Torp ~24%.
  • 60 speed, 20 visibility (33 profile): LG 100%, HG ~55%, Torp ~17%.
  • 60 speed, 15 visibility (25 profile): LG 100%, HG ~30%, Torp ~10%.
  • 60 speed, 12 visibility (20 profile): LG ~53%, HG ~18%, Torp ~6%.

Hypothesis:

  • Still based on 100% * visibility / speed.
  • If weapon profile < ship profile, 100% hit chance.
  • max(1.0, (ship profile / weapon profile)^2)