Fear Factor: Difference between revisions

From Eco - English Wiki
[unchecked revision][checked revision]
m 1 revision imported
No edit summary
Tag: 2017 source edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{contentneeded}}
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).


To Be Fixed up:
A prey will be put on alert if: <math>\mathit{distance} < (\mathit{range} \times \mathit{fear})</math>


How Does Fear Factor work?
The prey's alertness towards a predator is assigned each tick according to the following formula:


Range = Square of the predators (Players) detection range (reduced by taking predatory instincts)
<math>\mathit{alertness} = \mathit{alertness} + {\mathit{range}^2 - \mathit{distance}^2 \over \mathit{range}^2} \times 50</math>
Distance = Square of  the distance between predator (Player) and the prey (animal).


 
If <math>\mathit{alertness} \ge 100</math> the prey will flee. Default alertness to predators may be hard coded currently.
if the Distance is less than the Range * prey's (animals) FearFactor then put the animal on alert,
 
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

Latest revision as of 10:19, 2 July 2024

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:

If the prey will flee. Default alertness to predators may be hard coded currently.