Because each force entity may be host to more than one falloff, overlapping areas must be combined in some way. Internally, falloff levels are represented as a float between 0.0
and 1.0
, where 1.0
represents the full strength of the force, and can be treated much like a percentage value. The following combination methods are available, and examples of their operations have been provided:
Gyro_Force_FalloffCombine_Multiply(entity force)
Sets the specified force to combine it's falloff components by multiplying their results together. For example, falloff levels of 0.5
and 0.8
will combine into 0.4
. This is the default behaviour for new forces.
Gyro_Force_FalloffCombine_Subtract(entity force)
Sets the specified force to combine it's falloff components by subtracting the inverse of the results. For example, falloff levels of 0.9
, 0.9
and 0.9
will combine into 0.7
.
Gyro_Force_FalloffCombine_Minimum(entity force)
Sets the specified force to combine it's falloff components by selecting the single smallest result. For example, falloff levels of 0.8
, 0.3
and 0.5
will combine into 0.3
.