-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Broken parachute after dying with one in your inventory" fix #6
Comments
Interesting, but what does "doesn't work properly" means? |
Instead of trying to explain it in words, check out this short video: I have a parachute on me, then I die with the suicide cheat. Basically, the controls don't work and you will just fall to your death as the game thinks you don't have a parachute on. |
This is a very serious bug, are you sure it's vanilla and mods like SilentPatch don't fix it already? Anyway, I will add, thanks. |
Yes, this is a very long-standing vanilla bug that surprisingly isn't already fixed by SilentPatch (I would've contacted him and asked him if he would like to add it as well, but he's not working on any mods for R* games anymore for obvious reasons) Either way, I'd assume this just never came up during testing at R*. But yes, good to hear it's getting added - I also have it in my Chaos Mod but it's nice to have for everyone else, too :) |
Hey there!
First off, thank you guys for this mod, it definitely brings in lots of fantastic fixes and makes the game more enjoyable :)
2nd off, I was working on one of my own mods that adds some Chaos Mod related fixes as well and ended up finding a solution to the bug where the parachute doesn't work properly after you die with one in your inventory.
In the external
PLCHUTE
script there are 2 variables:FREEFALL_STAGE
andPARACHUTE_CREATION_STAGE
.These 2 variables aren't reset to 0 when the player spawns.
The fix I found is to hook a method within
CGameLogic::Update
(in my case, the call forCReferences::RemoveReferencesToPlayer
) and just reset those to 0 in there.Working code from my mod:
I thought I'd share it with you guys so you can implement it yourself :)
The text was updated successfully, but these errors were encountered: