RadiationSource behaves strangely at low intensity #34456
Labels
A: General Interactions
Area: General in-game interactions that don't relate to another area.
D3: Low
Difficulty: Some codebase knowledge required.
P3: Standard
Priority: Default priority for repository items.
T: Bugfix
Type: Bugs and/or bugfixes
Description
If you have the
RadiationSource
component on an entity set tointensity: 0.1
they will never register on the geiger counter or cause any radiation poisoning. Changingslope
to any value still results in no radiation. If you set intensity at 0.105, 0.11 etc, then it will behave as expected.If you make a stack of 2 of this 0.1 intensity entity and place it in the environment or carry it, it will emit radiation, at approximately the correct values. Changing the slope value seems to cause minor variation from expected values when comparing the output of different stacks.
I have exhausted myself testing for now, but I think there is also a problem with something in the calculation mutliplying when it should be adding, or maybe some kind of compound error with the sum of the base values.
Reproduction
You can start testing it with something like this:
Screenshots
Intensity 0.11, slope 0.9, stack of two.
Intensity 0.1, slope 0.9, stack of two.
This might be expected, but it always seems to be off, even accounting for .01 and multiplication of values.
Additional context
I am so tired of testing this, and I might have either missed something obvious or made an obvious mistake somewhere, but I am certain that at least something is wrong here with it not registering 0.1 intensity correctly.
The text was updated successfully, but these errors were encountered: