Resource icon

Global Stamina Drain Reduction [PUB57] 1

Author
fatwood
Downloads
13
Views
402
First release
Last update
Rating
0.00 star(s) 0 ratings
No permission to download Join the discussion

More resources from fatwood

Replace/overwrite weightoverloading.cs in scripts/misc​

Changes Made:​

  1. Global Reduction Factor: A new constant StaminaDrainReductionFactor is introduced to apply a uniform reduction across all stamina drain calculations. It's set to 0.5 to reduce stamina loss by 50%. You can adjust this value based on your needs.
  2. Modified Stamina Calculations: In each place where stamina is reduced (FatigueOnDamage, EventSink_Movement), the calculated stamina loss is multiplied by the StaminaDrainReductionFactor to decrease the amount deducted.
  3. Adjusted Logic for Stamina Reduction:
    • FatigueOnDamage: Adjusted stamina loss with the global factor.
    • EventSink_Movement: Applied the global factor when calculating stamina loss due to overloading and when decrementing stamina during movement.

Active Shards

Donations

Total amount
$80.00
Goal
$1,000.00
Back