John

Hunting script - Need testers before I release

5 posts in this topic

Posted (edited)

Hi fellas,

On my test server I have a basic animal hunting script running. Unfortunately, I cannot get on my gaming PC to try it, so everything is being done via logs and what not. So before I post it on the releases section im just looking for people to jump into the server and let me know if it is working.

If you are interested in running this, gimme a hand to iron out the kinks!

Here is an outline of what the script does -

- Spawns a defined amount of sheep randomly around the map

- Maintains that amount of sheep by periodically re spawning them using the Exile thread task system. Every X minutes the server checks the number of alive animals and maintains the defined amount.

- When a player kills a sheep, he should have an action to "Consume"

- The player will do an animation.

- If the player has Vishpirin in his inventory, he cannot get sick. However if he does not there is a 30% chance he will get sick.

- If the player gets sick he will be sick for a period of time (random), while sick the following occurs

  • Every 15 seconds the player will take 1% damage and a camera shake / bloody effect will appear
  • Stamina is enabled for the duration of the sickness.
  • Every 15 seconds, the duration of the sickness is reduced by 5 seconds.
  • If the player is sitting down (default button ') every 15 seconds, the duration of the sickness is reduced by 15 seconds
  • When the duration reaches 0, the player is no longer sick

Potential list issues -

1. The consume action doesnt appear on the dead sheep

2. Bad stuff happens when you press consume ( if you could enable script errors, that would be dandy)

Server IP - 216.244.84.154:2312

Password - exiletest

Only @Exile required.

 

 

Edited by John
2 people like this

Share this post


Link to post
Share on other sites

Will have a look for ya, John ;)

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

John, we were planning on adding hunting into the Arma 3 for Exile Addon in a later revision....

Thanks. Keep up the good work

Share this post


Link to post
Share on other sites

First Problem:

Spoiler

 3:59:50 Error in expression <ributes select 2) + (30) min 100) max 0)];

_chanceForSick = random 1;

if (_cha>
 3:59:50   Error position: <];

_chanceForSick = random 1;

if (_cha>
 3:59:50   Error Missing )
 3:59:50 File mpmissions\__CUR_MP.Stratis\unrest\functions\JohnO_fnc_consumeAnimal.sqf, line 6
 3:59:50 Error in expression <ributes select 2) + (30) min 100) max 0)];

_chanceForSick = random 1;

if (_cha>
 3:59:50   Error position: <];

_chanceForSick = random 1;

if (_cha>
 3:59:50   Error Missing )
 3:59:50 File mpmissions\__CUR_MP.Stratis\unrest\functions\JohnO_fnc_consumeAnimal.sqf, line 6
 3:59:50 Error in expression <Duration = _sickDuration - 15;
};    
else
{
_sickDuration = _sickDuration - 5;
};
>
 3:59:50   Error position: <{
_sickDuration = _sickDuration - 5;
};
>
 3:59:50   Error Missing ;
 3:59:50 File mpmissions\__CUR_MP.Stratis\unrest\functions\JohnO_fnc_isSick.sqf, line 22
 3:59:50 Error in expression <Duration = _sickDuration - 15;
};    
else
{
_sickDuration = _sickDuration - 5;
};
>
 3:59:50   Error position: <{
_sickDuration = _sickDuration - 5;
};
>
 3:59:50   Error Missing ;
 3:59:50 File mpmissions\__CUR_MP.Stratis\unrest\functions\JohnO_fnc_isSick.sqf, line 22

Second Problem:

According to client logs I'm being kicked for script restriction 3 when 1/50 animals are spawned ;)

2 people like this

Share this post


Link to post
Share on other sites

Almost done

This has turned out to be the biggest absolute fuck around ever. Thanks ARMA.

2 people like this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.