You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In that screenshot, Ace is clearly leaning into Victoria's line of fire. Ideally, Victoria would realize this is unsafe and cancel her shot attempt. But the checks that happen to stop these kinds of things from happening don't take leaning into account. (So from the perspective of those checks, Ace is in the doorway and is not at risk.) And then you get brain injuries.
The text was updated successfully, but these errors were encountered:
basicsmods
changed the title
[Bug]: Pawns don't take leaning into account when deciding whether it's safe (in terms of friendly-fire) to shoot.
[Bug]: Pawns don't take allies leaning into account when deciding whether it's safe (in terms of friendly-fire) to shoot.
Dec 27, 2023
basicsmods
changed the title
[Bug]: Pawns don't take allies leaning into account when deciding whether it's safe (in terms of friendly-fire) to shoot.
[Bug]: Pawns don't take an ally's leaning into account when deciding whether it's safe (in terms of friendly-fire) to shoot.
Dec 27, 2023
If anyone knows how to ask the question "is a pawn leaning?" and "which tile is the pawn leaning into?" then I could potentially try to implement the requested logic. I just don't know how to ask either of those questions and getting a pawn's .Position field just returns the coordinates of their original tile (which won't be in the way of the shot).
From my testing, one of the main issues on this topic is that the shotLine used in Verb_LaunchProjectileCE.CanHitCellFromCellIgnoringRange(..) (the method that is used to determine whether or not a pawn should actually try to shoot or not) is different from the one used in ProjectileCE.TryCollideWith(..) (the method that actually confirms the impact of the fired shot).
I really think this issue should be looked into and fixed in CE itself, but for the time being, my extension mod accomplishes 97% of the behaviour that I'd want.
In that screenshot, Ace is clearly leaning into Victoria's line of fire. Ideally, Victoria would realize this is unsafe and cancel her shot attempt. But the checks that happen to stop these kinds of things from happening don't take leaning into account. (So from the perspective of those checks, Ace is in the doorway and is not at risk.) And then you get brain injuries.
The text was updated successfully, but these errors were encountered: