segabl / pd2-useful-bots

A lightweight bot overhaul
GNU General Public License v3.0
7 stars 5 forks source link

Shield lights block bot bullets #19

Closed ghost closed 1 year ago

ghost commented 1 year ago

So the game has a feature, that I assume is left over from when piercing weapons didn't exist, where if you shoot the Shield's lights they get destroyed. This blocks a bullet even if it's a piercing one, but lets you shoot through it once it's destroyed.

Bots on the other hand can't destroy these objects (which I assume was done, so they don't destroy artefacts?). This causes them to sometimes get stuck trying unsuccessfully to shoot through a Shield until either of them moves.

To fix this, either you'll need to find a way to let the bots shoot through breakable objects (which could fix other issues no one noticed if there's actually other breakable objects that block their bullets without breaking line of sight) or you could make a separate ""bugfix"" mod that makes the Shield's lights not block bullets and then mark it as required on Useful Bot's modworkshop page.

segabl commented 1 year ago

I fear that breakable objects are pretty deep within raycast weapon code and it's probably not worth overriding the entire hit detection just so it either ignores light objects or lets shots go through it. Also can't say I've noticed this issues at all so far so it must be pretty rare.

ghost commented 1 year ago

The conditions for it to happen often are pretty specific, so probably that's why. I found it happens most often when the bot is using a sniper rifle (or another weapon with little to no spread) and a Shield gets close to them while they're holding a position. When those conditions are met, it happens maybe like 20% of the time in my own experience.

I would still love a mod that removes the Shield's light hitbox even ignoring the bots having that problem, since it's annoying to hit a Shield but not deal damage to it. But in the end it is a very minor issue, so it's fine to leave it be.

Off-topic, is there somewhere I could speak to you in general? I have an idea for a mod I wanna make myself, but reading modding documentation often confuses me and leads me nowhere, especially with what I wanna do now.

segabl commented 1 year ago

On your off topic question, you can message me on Discord (Hoppip#1630) or join my Server (https://discord.gg/RJzxGy68Kn) where others may also be able to help when I'm not available. Finally of course there's the MWS Discord (https://discord.gg/Eear4JW) which has dedicated modding/help/request channels. I'll close this issue as I will most likely not make any changes related to the original topic in this mod itself.

ghost commented 1 year ago

Note: This appears to be fixed by Overkill themselves in patch 233.1.