Page 1 of 1

[0.17.17] selection_box on biters corpses is wrong

Posted: Sun Mar 24, 2019 4:11 pm
by lovely_santa
Hi,

while modding I came across this issue, the selection_box of the biters-corpses are not set correctly.
  • For the demo biter (small-biter-corpse) the selection box is too high up, shifting it down by 0.37 fixes this as shown in the picture.
  • For the full game biters (medium, big and behemoth-biter-corpse) the selection_box is too small, in fact, they are all set to the same value, and also needs some sort of shift correction.
Naamloos.png
Naamloos.png (1.91 MiB) Viewed 952 times
Kind regards
lovely_santa

EDIT: I temporary overwrite the selection box from the base game, these values for the selection_box are working for me:
EDIT2: The spitters are all wrong as well

Code: Select all

local new_selection_box = {
  ["small-biter"     ] = {{-0.80, -0.43}, {0.80, 1.17}},
  ["medium-biter"    ] = {{-1.10, -0.65}, {1.10, 1.55}},
  ["big-biter"       ] = {{-1.50, -0.80}, {1.50, 2.20}},
  ["behemoth-biter"  ] = {{-1.88, -1.00}, {1.88, 2.75}},

  ["small-spitter"   ] = {{-0.80, -0.90}, {0.80, 0.70}},
  ["medium-spitter"  ] = {{-1.10, -1.25}, {1.10, 0.95}},
  ["big-spitter"     ] = {{-1.50, -1.80}, {1.50, 1.20}},
  ["behemoth-spitter"] = {{-1.88, -2.13}, {1.88, 1.63}},
}

Re: [0.17.17] selection_box on biters corpses is wrong

Posted: Thu Mar 28, 2019 1:34 pm
by Bilka
The corpses have many different variations with very different dimensions. Considering that the only time a player will ever select a corpse is in the map editor, I don't consider it worth our time to try to find a selection box with fits all variations.

Just for the laughs, here is a very extreme example of the different dimension: