Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
fixed unlock vents (credits to @manianac)
Browse files Browse the repository at this point in the history
  • Loading branch information
v0idp committed Nov 23, 2021
1 parent ac6239f commit 6036c05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions hooks/HudManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ void dHudManager_Update(HudManager* __this, MethodInfo* method) {
GameObject_SetActive(shadowLayerObject,
!(State.FreeCam || State.EnableZoom || State.playerToFollow.has_value() || State.Wallhack) && !GetPlayerData(*Game::pLocalPlayer)->fields.IsDead,
NULL);

app::GameObject_SetActive(app::Component_get_gameObject((Component_1*)__this->fields.ImpostorVentButton, NULL), State.UnlockVents || GetPlayerData(*Game::pLocalPlayer)->fields.Role->fields.CanVent, nullptr);
}
}

Expand Down
2 changes: 1 addition & 1 deletion user/gitparams.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#define GIT_CUR_COMMIT 7dca97469a6412e2940cc900b93419e3dd006019
#define GIT_CUR_COMMIT ac6239f6fd6e63386d15d664ff9d299fe4cffb4b
#define GIT_BRANCH main

0 comments on commit 6036c05

Please sign in to comment.