mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-16 15:20:11 -05:00
[Cheat] No ReDead/Gibdo freeze (#2643)
* No freeze * Simplified * removed random spaces * Removed unnecessary parenthesis
This commit is contained in:
parent
f6ce7e6492
commit
fb8dacbc69
@ -1004,6 +1004,8 @@ namespace GameMenuBar {
|
|||||||
UIWidgets::Tooltip("This allows you to put up your shield with any two-handed weapon in hand except for Deku Sticks");
|
UIWidgets::Tooltip("This allows you to put up your shield with any two-handed weapon in hand except for Deku Sticks");
|
||||||
UIWidgets::PaddedEnhancementCheckbox("Time Sync", "gTimeSync", true, false);
|
UIWidgets::PaddedEnhancementCheckbox("Time Sync", "gTimeSync", true, false);
|
||||||
UIWidgets::Tooltip("This syncs the ingame time with the real world time");
|
UIWidgets::Tooltip("This syncs the ingame time with the real world time");
|
||||||
|
UIWidgets::PaddedEnhancementCheckbox("No ReDead/Gibdo Freeze", "gNoRedeadFreeze", true, false);
|
||||||
|
UIWidgets::Tooltip("Prevents ReDeads and Gibdos from being able to freeze you with their scream");
|
||||||
|
|
||||||
{
|
{
|
||||||
static int32_t betaQuestEnabled = CVarGetInteger("gEnableBetaQuest", 0);
|
static int32_t betaQuestEnabled = CVarGetInteger("gEnableBetaQuest", 0);
|
||||||
|
@ -332,7 +332,7 @@ void func_80AE2C1C(EnRd* this, PlayState* play) {
|
|||||||
if ((ABS(sp32) < 0x1554) && (Actor_WorldDistXYZToActor(&this->actor, &player->actor) <= 150.0f)) {
|
if ((ABS(sp32) < 0x1554) && (Actor_WorldDistXYZToActor(&this->actor, &player->actor) <= 150.0f)) {
|
||||||
if (!(player->stateFlags1 & 0x2C6080) && !(player->stateFlags2 & 0x80)) {
|
if (!(player->stateFlags1 & 0x2C6080) && !(player->stateFlags2 & 0x80)) {
|
||||||
if (this->unk_306 == 0) {
|
if (this->unk_306 == 0) {
|
||||||
if (!(this->unk_312 & 0x80)) {
|
if (!(this->unk_312 & 0x80) && !CVarGetInteger("gNoRedeadFreeze", 0)) {
|
||||||
player->actor.freezeTimer = 40;
|
player->actor.freezeTimer = 40;
|
||||||
func_8008EEAC(play, &this->actor);
|
func_8008EEAC(play, &this->actor);
|
||||||
GET_PLAYER(play)->unk_684 = &this->actor;
|
GET_PLAYER(play)->unk_684 = &this->actor;
|
||||||
@ -561,7 +561,7 @@ void func_80AE3834(EnRd* this, PlayState* play) {
|
|||||||
s16 temp_v0 = this->actor.yawTowardsPlayer - this->actor.shape.rot.y - this->unk_30E - this->unk_310;
|
s16 temp_v0 = this->actor.yawTowardsPlayer - this->actor.shape.rot.y - this->unk_30E - this->unk_310;
|
||||||
|
|
||||||
if (ABS(temp_v0) < 0x2008) {
|
if (ABS(temp_v0) < 0x2008) {
|
||||||
if (!(this->unk_312 & 0x80)) {
|
if (!(this->unk_312 & 0x80) && !CVarGetInteger("gNoRedeadFreeze", 0)) {
|
||||||
player->actor.freezeTimer = 60;
|
player->actor.freezeTimer = 60;
|
||||||
func_800AA000(this->actor.xzDistToPlayer, 0xFF, 0x14, 0x96);
|
func_800AA000(this->actor.xzDistToPlayer, 0xFF, 0x14, 0x96);
|
||||||
func_8008EEAC(play, &this->actor);
|
func_8008EEAC(play, &this->actor);
|
||||||
|
Loading…
Reference in New Issue
Block a user