NRailwayGun

All 24 NRailwayGun constants from HOI4 v1.19 — datamined values with the developers' own comments.

NRailwayGun defines (24 entries)
KeyValueComment
RAILWAY_GUN_POSSIBLE_RANGES { 30, 15, 45 } Possible values for railway gun range in pixel.
ATTACK_TO_FORTS_MODIFIER_FACTOR
For optimization reasons, they are listed here and equipment DB must use one of those.
when writing railway gun in equipment, use the index in this array
the first value in array is the default value
1.333 Forts modifier is calculated by multiplying railway gun attack value with this and dividing by 100
ATTACK_TO_ENTRENCHMENT_MODIFIER_FACTOR 0.8 Entrenchment modifier is calculated by multiplying railway gun attack value with this and dividing by 100
ATTACK_TO_BOMBARDMENT_MODIFIER_FACTOR 0.4 Bombardment modifier is calculated by multiplying railway gun attack value with this and dividing by 100
DAILY_MANPOWER_GAIN_RATIO 0.05 Railway Guns will be able to gain this ratio of their max manpower daily
DISBAND_MANPOWER_LOSS 0 The ration of manpower lost on disbanding railway guns
ENCIRCLED_DISBAND_MANPOWER_FACTOR 0.2 The percentage of manpower returned when an encircled unit is disbanded
OUT_OF_SUPPLY_SPEED -0.8 Max speed reduction from supply for railway guns
BASE_CAPTURE_CHANCE 0.2 The base chance of railway guns being captured during an overrrun. Will be further modified by the equipment capture chance of the capturing unit.
DISTRIBUTION_RAILWAY_GUN_PRESENCE_SCORE -100 Score for Railway Guns in nearby provs. x3 if on that province. x2 if adjacent. x1 if 2 away.
DISTRIBUTION_OUR_UNITS_PRESENCE_SCORE 1 Score for our units in province when distributing Railway Guns
DISTRIBUTION_FRIENDLY_UNITS_PRESENCE_SCORE 0 Score for friendly units in province when distributing Railway Guns
DISTRIBUTION_HOSTILE_UNITS_PRESENCE_SCORE -45 Score for hostile units in province when distributing Railway Guns
DISTRIBUTION_COMBATS_PRESENCE_SCORE -30 Score for combats in province when distributing Railway Guns
DISTRIBUTION_COMBATS_INRANGE_SCORE 15 Score for combats in range when distributing Railway Guns
DISTRIBUTION_OUR_UNITS_INRANGE_SCORE 2.5 Score for our units in range when distributing Railway Guns
DISTRIBUTION_FRIENDLY_UNITS_INRANGE_SCORE 1.5 Score for friendly units in range when distributing Railway Guns
DISTRIBUTION_HOSTILE_UNITS_INRANGE_SCORE 6 Score for hostile units in range when distributing Railway Guns
DISTRIBUTION_DISTANCE_SCORE -0.08 Score for distance to province when distributing Railway Guns
DISTRIBUTION_PROVINCE_CONTROLLED_BY_ENEMY_SCORE -3 Score for staying in province controlled by enemy
DISTRIBUTION_PROVINCES_CONTROLLED_BY_ENEMY_INRANGE_SCORE 15 Score for provinces controlled by enemy in range when distributing Railway Guns
DISTRIBUTION_HOLD_POSITION_SCORE 30 Score for staying in the same province when distributing Railway Guns
DISTRIBUTION_NO_RAILWAY_SCORE -500 Score for provinces with no railways (need to be low, but we allow RG to enter port provinces without railways)
DISTRIBUTION_SUPPLY_DEFICIT_SCORE -100 Score for provinces without sufficient supply cap