code/__DEFINES/movement.dm
MIN_GLIDE_SIZE | The minimum for glide_size to be clamped to. |
---|---|
MAX_GLIDE_SIZE | The maximum for glide_size to be clamped to. This shouldn't be higher than the icon size, and generally you shouldn't be changing this, but it's here just in case. |
DELAY_TO_GLIDE_SIZE | Broken down, here's what this does: divides the world icon_size (32) by delay divided by ticklag to get the number of pixels something should be moving each tick. The division result is given a min value of 1 to prevent obscenely slow glide sizes from being set Then that's multiplied by the global glide size multiplier. 1.25 by default feels pretty close to spot on. This is just to try to get byond to behave. The whole result is then clamped to within the range above. Not very readable but it works |
Define Details
DELAY_TO_GLIDE_SIZE
Broken down, here's what this does: divides the world icon_size (32) by delay divided by ticklag to get the number of pixels something should be moving each tick. The division result is given a min value of 1 to prevent obscenely slow glide sizes from being set Then that's multiplied by the global glide size multiplier. 1.25 by default feels pretty close to spot on. This is just to try to get byond to behave. The whole result is then clamped to within the range above. Not very readable but it works
MAX_GLIDE_SIZE
The maximum for glide_size to be clamped to. This shouldn't be higher than the icon size, and generally you shouldn't be changing this, but it's here just in case.
MIN_GLIDE_SIZE
The minimum for glide_size to be clamped to.