FallingSheep
OpenDayZ Lord!
I will do this over the coming dayz (ha) and send it to you.
Things will be more expensive for the bandits.
Has the hemp bug (able to pull allot from a crop) been looked at?
Can you also check the humanity as mine has always jumped around particularly when taking clothes.
ok ive added a check in the harvest script (will port to overpoch builds soon, just doing some other stuff)
EDIT: changing again
EDIT2: here is the new code
Code:
//put together for DayZ Epoch - Credits to Shogun338 from Insurrection gaming - modified for separate "gather weed" script
private ["_gearmenu","_playerPos","_nearWeed","_weed","_objectID","_objectUID"];
_playerPos = getPosATL player;
_nearWeed = count nearestObjects [_playerPos, ["fiberplant"], 4] > 0;
_weed = nearestObject [player, "fiberplant"];
if !(_nearWeed) exitWith {
cutText [format["You need to be near the weed plants in order to gather."], "PLAIN DOWN"];
};
IsHarvesting = false;
if (dayz_combat == 1) then {
cutText [format["You are in Combat and Cannot Gather the Weed."], "PLAIN DOWN"];
} else {
if (IsHarvesting)then{
cutText [format["You are already gathering Weed!"], "PLAIN DOWN"];
}else{
IsHarvesting = true;
disableSerialization;
_gearmenu = FindDisplay 106;
_gearmenu CloseDisplay 106;
player playActionNow "Medic";
r_interrupt = false;
sleep 6;
_objectID = _weed getVariable["ObjectID","0"];
_objectUID = _weed getVariable["ObjectUID","0"];
deleteVehicle _weed;
[_objectID,_objectUID] call server_deleteObj;
_weed setDamage 1;
player addMagazine "ItemKiloHemp";
sleep 2;
cutText [format["You've Gathered Some Weed. Smoke it or sell it to a Black market dealer!"], "PLAIN DOWN"];
IsHarvesting = false;
};
};
Last edited: