Fear Factor

From Eco - English Wiki
Revision as of 11:19, 2 July 2024 by StalEF (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)

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.