[#bugs] Stun gas doesn't pass `ParentObject.GetPart<Gas>()` to `GetRespiratoryAgentPerfo...
Marked for crossposting by: Noelle Lavenza (transgendeer)
Message (jump):
<Noelle Lavenza (transgendeer)> Stun gas doesn't pass
ParentObject.GetPart<Gas>()
toGetRespiratoryAgentPerformanceEvent.GetFor()
inApplyStun()
, meaning stun gas always has an effective density of zero. Fixing this makes stun gas stun enemies properly.
Comments (12)
-
-
repo owner -
assigned issue to
- edited description
-
assigned issue to
-
-
assigned issue to
test this out then toss back to me?
-
assigned issue to
-
- changed status to open
-
-
assigned issue to
Diagnosis is made up. The first thing
GetRespiratoryAgentPerformanceEvent.GetFor()
does if theGas
part isn’t provided is obtain it from its parent object, which is being provided in this call. Debug logging confirms that the Performance value coming back from the event call is non-zero and varies by gas density. -
assigned issue to
-
I forgot to undo a change to stun gas grenade gas density when I was testing this and didn’t remember it was still in, so what I thought was the change was actually just a massively-inflated density, i.e. 1200 instead of 120 for StunGasGrenade3. Oops.
-
I’m not sure if stun gas was broken in this specific way, but it definitely was nonfunctional previously: however it now seems to work semifine: it works for stunning, I haven’t been able to trigger QN loss. I have no idea what changed or if this was intentional. Figured it was worth mentioning.
-
Issue
#2678was marked as a duplicate of this issue. -
Issue
#5342was marked as a duplicate of this issue. -
Issue
#3438was marked as a duplicate of this issue. -
Issue
#3263was marked as a duplicate of this issue. -
- changed status to resolved
- Log in to comment
Supersedes
#5342,#3438,#3263.