Editing Fear Factor

From Eco - English Wiki

Your changes will be displayed to readers once an authorized user accepts them. (help)

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{contentneeded}}
{{contentneeded}}


In the formulae below:
To Be Fixed up:
* ''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).


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)
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 <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
Please note that all contributions to Eco - English Wiki are considered to be released under the CC BY-NC-SA 4.0 (see Eco:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)

Templates used on this page: