Revert "Update animation bools and fix Settings.lua; use correct block in monkey idle state"

This reverts commit 8305a2581b.
This commit is contained in:
Sezz 2022-05-06 01:44:15 +10:00
parent ff9dec662b
commit e42538aa8d
7 changed files with 38 additions and 6 deletions

View file

@ -26,7 +26,9 @@ public:
virtual bool HasCrawlExtended() const = 0;
virtual bool HasCrouchRoll() const = 0;
virtual bool HasCrawlspaceSwandive() const = 0;
virtual bool HasMonkeyTurn180() const = 0;
virtual bool HasMonkeyAutoJump() const = 0;
virtual bool HasOscillateHang() const = 0;
virtual bool HasSprintJump() const = 0;
virtual bool HasAFKPose() const = 0;
virtual bool HasOverhangClimb() const = 0;

View file

@ -14,6 +14,8 @@ void Animations::Register(sol::table& parent)
"crouchRoll", &Animations::HasCrouchRoll,
"crawlspaceSwandive", &Animations::HasCrawlspaceDive,
"monkeyAutoJump", &Animations::HasMonkeyAutoJump,
"monkeyTurn180", &Animations::HasMonkeyTurn180,
"oscillateHang", &Animations::HasOscillateHang,
"overhangClimb", &Animations::HasOverhangClimb,
"slideExtended", &Animations::HasSlideExtended,
"sprintJump", &Animations::HasSprintJump,

View file

@ -18,6 +18,8 @@ struct Animations
bool HasCrawlExtended; // Extended crawl moveset.
bool HasCrouchRoll; // Crouch roll.
bool HasOverhangClimb; // Overhang functionality.
bool HasMonkeyTurn180;
bool HasOscillateHang;
static void Register(sol::table &);
};

View file

@ -57,11 +57,13 @@ public:
bool HasCrawlExtended() const override { return Anims.HasCrawlExtended; }
bool HasCrouchRoll() const override { return Anims.HasCrouchRoll; }
bool HasCrawlspaceSwandive() const override { return Anims.HasCrawlspaceDive; }
bool HasMonkeyTurn180() const override { return Anims.HasMonkeyTurn180; }
bool HasMonkeyAutoJump() const override { return Anims.HasMonkeyAutoJump; }
bool HasAFKPose() const override { return Anims.HasPose; }
bool HasOverhangClimb() const override { return Anims.HasOverhangClimb; }
bool HasSlideExtended() const override { return Anims.HasSlideExtended; }
bool HasSprintJump() const override { return Anims.HasSprintJump; }
bool HasOscillateHang() const override { return Anims.HasOscillateHang; }
bool DoFlow() override;
};

View file

@ -11,7 +11,7 @@ local RotationAxis = Flow.RotationAxis
local ItemAction = Flow.ItemAction
-- Title level
Flow.SetIntroImagePath("Screens\\Main.png")
Flow.SetIntroImagePath("SCREENS\\MAIN.PNG")
Flow.SetTitleScreenImagePath("Screens\\Title.png")
Flow.SetFarView(210)

View file

@ -1,7 +1,12 @@
-- TombEngine settings file
-- Created by MontyTRC
<<<<<<< HEAD
-- Place in this Lua script all the engine settings for your game
-- WARNING: bad values could make your game unplayable, please follow with attention the reference guide
=======
-- Place all the engine settings for your game in this Lua script.
-- WARNING: Bad values could make your game unplayable; please follow reference guide attentively.
>>>>>>> state_cleaning_tier_2
local Flow = TEN.Flow
@ -17,10 +22,25 @@ settings.showDebugInfo = true;
settings.errorMode = Flow.ErrorMode.WARN;
Flow.SetSettings(settings);
<<<<<<< HEAD
local anims = Flow.Animations.new();
anims.crawlExtended = true;
anims.crouchRoll = true;
anims.crawlspaceSwandive = true;
anims.monkeyTurn180 = true;
anims.monkeyAutoJump = false;
anims.oscillateHang = true;
anims.pose = false;
Flow.SetAnimations(anims);
Flow.SetAnimations(anims);
=======
local anims = Animations.new();
anims.hasPose = false;
anims.hasSlideExtended = false;
anims.hasSprintJump = true;
anims.hasMonkeyAutoJump = false;
anims.hasCrawlspaceDive = true;
anims.hasCrawlExtended = true;
anims.hasCrouchRoll = true;
anims.hasOverhangClimb = false;
SetAnimations(anims);
>>>>>>> state_cleaning_tier_2

View file

@ -108,15 +108,19 @@ void lara_as_monkey_idle(ItemInfo* item, CollisionInfo* coll)
if (TrInput & IN_LEFT)
{
item->Animation.TargetState = LS_MONKEY_TURN_LEFT;
return;
}
else if (TrInput & IN_RIGHT)
{
item->Animation.TargetState = LS_MONKEY_TURN_RIGHT;
return;
}
item->Animation.TargetState = LS_MONKEY_IDLE;
else if (TrInput & IN_ROLL && g_GameFlow->HasMonkeyTurn180())
{
item->Animation.TargetState = LS_MONKEY_TURN_180;
}
else
{
item->Animation.TargetState = LS_MONKEY_IDLE;
}
return;
}