Skip to content

Encumbrance

SphereII edited this page Sep 18, 2024 · 1 revision

Encumbrance

The 0-SCore Encumbrance allows a modder to add a simple weight management system.

 

The Encumbrance feature itself only performs the calculations to set the cvar number. It is up to the modder themselves on how to use that cvar to apply it to their players

 

For example, having the cvar value being used to calculate the player speed or movement.

 

Release Notes:

 

- Encumbrance check fires when something is added / removed from back pack, toolbelt, and equipment.

 

- Once encumbrance is calculated, it's total value is added to a cvar, specified in the Config block. 

By default, this is encumbranceCVar.

 

- The value of the cvar is based on percent.  When set to 1f, the player is considered at MaxEncumbrance. 

            - A value of 1.5 means the player is considered to b e 50% over encumbered.

 

- Maximum Encumbrance is read from the Config Block. However, if the CVar "MaxEncumbrance" is set, it will use that value instead.

 

- If Max Encumrabrance drops below 0, it will be reset to the default Config Block Entry.

 

- The CVar will not be reset, only the value being used to perform the calculation.

 

- ItemWeight can be 0, and can also be negative numbers.


Created with the Personal Edition of HelpNDoc: Keep Your Sensitive PDFs Safe with These Easy Security Measures

0-SCore

Table of contents

Clone this wiki locally