The Witcher 3

File information

Last updated

Original upload

Created by

phlowerchild

Uploaded by

phlowerchild

Virus scan

Safe to use

Documentation

Readme

View as plain text

Damage Taken With Mod
With Roll = Distance fallen over 6 (units) * 1000/6
Without Roll = Distance fallen over 3 (units) * 1000/3

The function I used to create this formula and the paramaters it is using can be found in the actor.ws file in the mod folder. Just hit CONTROL + F and search for some of the values listed below to find them if you want
to change the formula to your own liking. Note, you would have to open up this mods actor.ws file, modifying this readme will do nothing.


//modReducedFallingDamage++
private editable var damageDistanceNotReducing : float; default damageDistanceNotReducing = 3.0f; //here you could change the parameters
private editable var deathDistNotReducing : float; default deathDistNotReducing = 50.0f;
private editable var damageDistanceReducing : float; default damageDistanceReducing = 6.0f;
private editable var deathDistanceReducing : float; default deathDistanceReducing = 90.0f;
private editable var fallDamageMinHealthPerc : float; default fallDamageMinHealthPerc = 0.05f;
//modReducedFallingDamage--

//modReducedFallingDamage++
function DetermineFallingDamage( heightDiff : float, damageDistance : float) : float
{
var dangerDistance : float;
var damageDealt : float;

dangerDistance = heightDiff - damageDistance;
damageDealt = (1000.0f * dangerDistance/damageDistance); //here you could change the formula
return damageDealt;
}