I am trying to rework zombies like in yum's zed mode but with no need to download additional mode, it means we will have custom files wich will make the same effect. There are lots of relations so we will need a lot of custom files which will make the mission file much bigger but i think this...
don't know how you tested it, but when I was testing it was giving me 10 points if not in vehicle and + some points for case standing, so I got 15 points
Have no time to test now, just look upon this variants, and may be try to test them.
private ["_veh","_inVeh","_speed","_regeneration","_thirst","_hunger","_exceptions","_blood","_cursorTarget"];
_veh = gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName');
_inVeh =...
I remaked the script structure a bit, now testing.
As for last checks, I mean if you pass the first check (blood < 11999) for example you passed it with 11990 and then regenerate while standing 20 points at once, it may cause BE kick, because of 12010 blood amount.
So made such structure (code...
Have checked your release, so exceptions also don't work properly. The regeneration is always 10 + regeneration based on speed.
So the script isn't finished yet =(
Speed values also should be changed, cause not all of them make the effect, as when sneaking - has the same effect like walking.
almost got it working, need more test with exceptions, and still regenerate only 10 points each time
private ["_vehicle","_inVehicle","_speed","_regeneration", "_exceptions"];
waituntil {!alive player ; !isnull (finddisplay 46)};
_vehicle = vehicle player;
_inVehicle = (_vehicle != player)...
This has also worked, but with the same problems, like not all exceptions work, and no matter in vehicle or not, sleep or not, what movement speed i have, it regenerate 10 poiints for each loop
private ["_regeneration", "_exceptions"];
waituntil {!alive player ; !isnull (finddisplay 46)}...
I meab you have 11995 for instance so the script will loop and you can get additional 20 points if make no movement, so your blood should become 12015 and BE can kick - ban in this case. That's why i decided to make this check cause i don't know wether it is present in some of dayz_code to limit...
have tried this one
private ["_regeneration"];
waituntil {!alive player ; !isnull (finddisplay 46)};
_regeneration = 1; //change to whatever you like, 0 - no regeneration, 1 - normal regeneration, 2 - double speed regeneration, 3 - triple speed regeneration.
while {alive player} do {
if...
found some errors:
if ((r_player_blood < 12000) AND !(_exceptions) then { - missing ")" after (_exceptions)
so should be like this: if ((r_player_blood < 12000) AND !(_exceptions)) then {
And this line: if (vehicle player == player) AND !(s_player_sleep) then {
should look like...
it seems to have some i supose syntaxis errors cause I have stuck at "requesting character data from server"
And logs PRT shows this:
23:36:21 Error in expression <se {
r_player_blood = r_player_blood;
};
sleep 2;
};>
23:36:21 Error position: <;
sleep 2;
};>
23:36:21 Error Missing )...
s_player_sleep is a global variable used in different scripts
it is used like other global variables I have found for this script, like r_player_unconscious and others
think should change this
_exceptions = r_player_unconscious,r_player_injured,r_player_infected,r_fracture_legs,r_fracture_arms,r_player_inpain,r_player_loaded,(dayz_statusArray select 0) > 0.5, (dayz_statusArray select 1) > 0.5;
to this
_exceptions =...
It ssems as far as we use switch (true), the script could be simplifed to this:
private ["_regeneration", "_exceptions"];
waituntil {!alive player ; !isnull (finddisplay 46)};
_regeneration = 1; //change to whatever you like, 0 - no regeneration, 1 - normal regeneration, 2 - double speed...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.