ReactiveDrop / reactivedrop_public_src

Alien Swarm: Reactive Drop game source code and issue tracker.
https://reactivedrop.com
119 stars 34 forks source link

Onslaught parasites can spawn half-stuck inside a wall #2

Open geotavros opened 2 years ago

geotavros commented 2 years ago

See the screenshot. Parasites can spawn half-stuck inside a wall and cannot move.

https://steamcommunity.com/sharedfiles/filedetails/?id=2803003415

This happens because there's some inconsistency in parasites' hull.

Parasites have HULL_TINY set in code which is Vector(-12,-12, 0), Vector(12, 12, 12).

However, it seems that for navigation and collision they use a much bigger hull.

Earlier, for ASBI WB RNG3 challenge I did some experimenting and found that hull check set to model's bounding box Vector(-28,-22, -10), Vector(16, 21, 22) allows parasites to not get stuck when spawned as wanderer or pack or prespawn.

I assume changing collision hull to Vector(-12,-12, 0), Vector(12, 12, 12) will make parasites almost impossible to kill with ranged weapons. So we need to look at fixing the size supplied to ValidSpawnPoint()

geotavros commented 2 years ago

cb1552d doesn't seem to resolve this. Besides this isn't a mapping fix, this should be fixed in code.

BenLubar commented 2 years ago

GitHub got confused by its own word wrapping.

jhh8 commented 2 years ago

lols