Fear Factor: Difference between revisions

From Eco - English Wiki
[unchecked revision][checked revision]
m 1 revision imported
Demian (talk | contribs)
Rewrite page using proper math formulae. Improve grammar and fluency.
Line 1: Line 1:
{{contentneeded}}
{{contentneeded}}


To Be Fixed up:
In the formulae below:
* ''distance'' = Distance between the predator (the player or another animal) and the prey [[Animals|animal]].
* ''range'' = Predator's detection range (<code>detectRange</code> value), which can be reduced by taking [[Predatory Instincts]].
* ''fear'' = Prey's fear factor (<code>fearFactor</code> value).


How Does Fear Factor work?
A prey will be put on alert if: <math>\mathit{distance} < (\mathit{range} \times \mathit{fear})</math>


Range = Square of the predators (Players) detection range (reduced by taking predatory instincts)
The prey's alertness towards a predator is assigned each tick according to the following formula:
Distance = Square of  the distance between predator (Player) and the prey (animal).


<math>\mathit{alertness} = \mathit{alertness} + {\mathit{range}^2 - \mathit{distance}^2 \over \mathit{range}^2} \times 50</math>


if the Distance is less than the Range * prey's (animals) FearFactor then put the animal on alert,
If <math>\mathit{alertness} \ge 100</math> the prey will flee. Default alertness to predators may be hard coded currently.
 
How alert the prey (animal) is to this predator (player) is calculated by
 
Alertness increases each tick by ((Range - Distance) / Range) * 50 (default alertness to predators, may be hard coded currently);
 
if Alertness gets above 100 the animal will flee

Revision as of 21:14, 22 February 2022

Template:Contentneeded

In the formulae below:

  • distance = Distance between the predator (the player or another animal) and the prey animal.
  • range = Predator's detection range (detectRange value), which can be reduced by taking Predatory Instincts.
  • fear = Prey's fear factor (fearFactor value).

A prey will be put on alert if: 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒<(𝑟𝑎𝑛𝑔𝑒×𝑓𝑒𝑎𝑟)

The prey's alertness towards a predator is assigned each tick according to the following formula:

𝑎𝑙𝑒𝑟𝑡𝑛𝑒𝑠𝑠=𝑎𝑙𝑒𝑟𝑡𝑛𝑒𝑠𝑠+𝑟𝑎𝑛𝑔𝑒2𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒2𝑟𝑎𝑛𝑔𝑒2×50

If 𝑎𝑙𝑒𝑟𝑡𝑛𝑒𝑠𝑠100 the prey will flee. Default alertness to predators may be hard coded currently.