fix(trol): True Form troll size, log, reach, root during attacks, slam
The troll pulsed several times a second and stayed small because PlayerVisualHider.Hide put the hidden Visual back to scale 1 every frame while Trol_PlayerUpdate_Patch grew it back, and the troll follows that scale. Hide and Show take keepScale now, and the Trol calls pass it. The camera height, which reads the same scale, stops jumping too. The log in the troll's hand is the troll's own log model, hung the way VisEquipment does it, instead of the Trol's, which was built for a person's hand and came out huge and sideways. Punch and slam reach further and hit wider, with a new Troll Attack Reach option (1.3). The player is held still through every attack clip, throw included. The ground slam spawns the troll's own troll_groundslam_aoe with the player's damage, kept off friends, plus its trigger and terrain effects. It carries chop and pickaxe at least equal to its blunt, so it breaks trees and rocks, and with Ground Slam Crater on it digs into the terrain where it lands, never inside a ward without access.
This commit is contained in:
parent
c64cb393c7
commit
db29f868ea
4 changed files with 190 additions and 33 deletions
|
|
@ -54,6 +54,8 @@ namespace RacesOfValheim
|
|||
public static ConfigEntry<bool> TrueFormUseTrollModel;
|
||||
public static ConfigEntry<float> TrueFormModelSize;
|
||||
public static ConfigEntry<float> TrueFormTrollDamageShare;
|
||||
public static ConfigEntry<float> TrueFormAttackReach;
|
||||
public static ConfigEntry<bool> TrueFormSlamCrater;
|
||||
|
||||
// ─── Log Weapon (tier 7+) ──────────────────────────────────────────────
|
||||
public static ConfigEntry<float> LogWeaponMaxDurability;
|
||||
|
|
@ -142,6 +144,10 @@ namespace RacesOfValheim
|
|||
new ConfigDescription("How tall the troll stands, as a share of the True Form size set by Scale above. 1 = exactly as tall as the old True Form.", new AcceptableValueRange<float>(0.5f, 2f)));
|
||||
TrueFormTrollDamageShare = config.Bind(trueForm, "Troll Attack Damage", 0.5f,
|
||||
new ConfigDescription("Share of a real troll's damage each troll attack deals. Your Clubs skill then scales it the way it scales a club, and the True Form Melee Bonus and tier bonuses add on top.", new AcceptableValueRange<float>(0.1f, 2f)));
|
||||
TrueFormAttackReach = config.Bind(trueForm, "Troll Attack Reach", 1.3f,
|
||||
new ConfigDescription("Multiplies how far the troll's punch and slam reach and how wide they hit. 1 = a real troll's reach at the size you stand.", new AcceptableValueRange<float>(0.5f, 3f)));
|
||||
TrueFormSlamCrater = config.Bind(trueForm, "Ground Slam Crater", true,
|
||||
new ConfigDescription("The ground slam digs into the ground where it lands, like a pickaxe blow. Never inside a ward you have no access to."));
|
||||
|
||||
const string logWeapon = "Trol - Log Weapon";
|
||||
LogWeaponMaxDurability = config.Bind(logWeapon, "Max Durability", 6f,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue