Back to NxLabs

NxLabs / Vintage Story

Projectile Flee

PBy PatchCat

Causes animals to react when a projectile hits the ground nearby

Projectile Flee

Description

Projectile Flee
My first mod! I thought it was pretty weird that the animals didn't react when you throw or shoot anything nearby so I made this.


It triggers passive animals to run away and predators to attack back if the projectile is thrown near them.
The default setup is pretty minimal and more immersive than realistic but you can make the game more challenging by making it higher.

Config:

Config Values

Change the distance from the projectile that triggers the animal to react:

 

The default is:

<pre style="font-family: 'Cascadia Mono'; font-size: 9pt; color: #000000;">HorizontalRange</pre>

3.5 horizontal blocks

&nbsp;

<pre style="font-family: 'Cascadia Mono'; font-size: 9pt; color: #000000;">VerticalRange</pre>

5 vertical blocks

&nbsp;

<span style="color: #000000;">Change the distance from the player that triggers the animal to attack back:</span>

&nbsp;

The default is:

<pre style="font-family: 'Cascadia Mono'; font-size: 9pt; color: #000000;">PredatorSeekRange</pre>

17 blocks


Change the values here : ...\AppData\Roaming\VintagestoryData\ModConfig\ProjectileFlee.json (Default Location)

Compatibility:
It will work with any creature that has the tag "animal". I can add other compatibility or changes if needed, let me know!

- Works with fish and anything with the class "EntityFish".

- It works with anything classed as a projectile.

- It excludes animals that are tamed.

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.