jotunn 2.30 compatibility + minor bugs
This commit is contained in:
parent
6193b3ee2d
commit
ce671e7124
14 changed files with 107 additions and 49 deletions
|
|
@ -542,19 +542,20 @@ namespace RacesOfValheim
|
|||
|
||||
if (!RaceInput.Allowed || !grounded) return;
|
||||
|
||||
// Right click rams, left click bites, middle click slams. All three read raw
|
||||
// UnityEngine.Input rather than going anywhere near Humanoid.StartAttack, which
|
||||
// Sverm_RavagerBlockNativeAttack_Patch refuses outright for the whole form - see the
|
||||
// class doc for why that turned out to be the only reliable option.
|
||||
if (Input.GetMouseButtonDown(1))
|
||||
// Right click rams, left click bites, middle click slams. All three read the device
|
||||
// directly (mouse, or its gamepad counterpart - see RaceInput.AttackDown) rather than
|
||||
// going anywhere near Humanoid.StartAttack, which Sverm_RavagerBlockNativeAttack_Patch
|
||||
// refuses outright for the whole form - see the class doc for why that turned out to
|
||||
// be the only reliable option.
|
||||
if (RaceInput.AttackDown(1))
|
||||
{
|
||||
StartCoroutine(AttackRoutine(SvermRavagerAttacks.Ram, 2f, 0.3f, 0.7f));
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(0))
|
||||
else if (RaceInput.AttackDown(0))
|
||||
{
|
||||
StartCoroutine(AttackRoutine(SvermRavagerAttacks.Bite, 2f, 0.3f, 0.6f));
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(2))
|
||||
else if (RaceInput.AttackDown(2))
|
||||
{
|
||||
StartCoroutine(AttackRoutine(SvermRavagerAttacks.Slam, 1.2f, 0.4f, 1.0f));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue