mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-09 01:32:53 +03:00
+ [FIXED] Prevent player zombies from getting any default loadouts. + [FIXED] Bad vehicle type message when using default loadout override and no backpack. + [FIXED] dayz_zedsAttackVehicles logic was reversed fixed now so that true = attack vehicles. + [ADDED] Safes now have a keypad GUI. Simply click on the numbers to enter your combo and then press #. https://www.dropbox.com/s/b00fgdpo13wokg9/Untitled-1.jpg + [ADDED] Tons of awesome cars by vilas from http://www.armaholic.com/page.php?id=17447 + [FIXED] Models needed extra variable to prevent being sunk into the ground. + [CHANGED] Bleeding duration reduced to minimum of 30 sec and max of 330 seconds. Before it was min 100 max 500. + [ADDED] When kneeling bleeding per second is reduced by 50%. + [ADDED] When crawling bleeding per second is reduced by 75%. + [ADDED] When changing locations the locations name will display in the bottom right. + [CHANGED] Replaced m107 with BAF_LRR_scoped. + [CHANGED] Replaced as50 with AK_107_PSO. TODO + [FIXED] Lock vehicle no longer shows on killed vehicles. + [ADDED] Disabled purchased vehicle parachute spawning by default added variable DZE_TRADER_SPAWNMODE = true; to enable. (Default: false) + [CHANGED] Plot pole has changed to another model a "no entry" sign and can be removed by anyone. When done building take your plot pole with you, if it isn't yours remove it and put it back down again. + [ADDED] Loot positions on top of some tables. + [ADDED] Briefcase that can hold up to 10 x 10oz Gold Bars or 100oz. + [ADDED] Full moon nights as option with dayz_fullMoonNights = true; + [CHANGED] Can no longer Salvage vehicle parts with 0 damage. Fixes bugged hitpoints and duping. + [REMOVED] Remove all crates of toolbelt items. This was just to add stock to traders and since most servers are now auto stocking them at the traders its not needed and cumbersome to use. + [CHANGED] Generator can only be built within 30m of gas stations that say "Needs Power". + [CHANGED] Moved light bulb to farm loot table as it was to common on trash loots. + [ADDED] Fuel pump can be built near standard fuel source (i.e. rusty tanks) then powered with a generator to make a refuel station. + [CHANGED] R3f realism no more fade to black, changed to use dayz shaking and knockouts. + [ADDED] Reset tiredness when you take painkillers. + [ADDED] Reset tiredness when you sleep at a tent. + [ADDED] added back fixed rbull soda and added new can orange sherbet
65 lines
2.1 KiB
Plaintext
65 lines
2.1 KiB
Plaintext
/*
|
|
File: tame_dog.sqf 1.1
|
|
Author: Kane "Alby" Stone
|
|
Expanded to allow all meats as input by: [VB]AWOL - DayZ Epoch
|
|
|
|
Description:
|
|
Allows a player to tame/domesticate a dog.
|
|
Script is applied to object via addAction.
|
|
|
|
Variables:
|
|
_target = Object that action is attached too.
|
|
_caller = Object that activates the action.
|
|
_id = ID of the action handler.
|
|
_dog = Intended target of the script.
|
|
*/
|
|
|
|
private ["_target","_caller","_id","_dog","_fsmid","_removed","_selected","_animalID","_textRemoved","_chanceToFail","_itemIn","_countIn"];
|
|
_target = _this select 0;
|
|
_caller = _this select 1;
|
|
_id = _this select 2;
|
|
_dog = _this select 3;
|
|
|
|
_removed = 0;
|
|
_itemIn = "FoodmeatRaw";
|
|
_countIn = 1;
|
|
_selected = "";
|
|
|
|
{
|
|
if( (_removed < _countIn) && ((_x == _itemIn) || configName(inheritsFrom(configFile >> "cfgMagazines" >> _x)) == _itemIn)) then {
|
|
_removed = _removed + ([player,_x] call BIS_fnc_invRemove);
|
|
};
|
|
if(_removed == 1) exitWith { _selected = _x; };
|
|
} forEach magazines player;
|
|
|
|
// Only proceed if removed count matches
|
|
if(_removed == _countIn) then {
|
|
|
|
// get name of item removed
|
|
_textRemoved = getText(configFile >> "CfgMagazines" >> _selected >> "displayName");
|
|
|
|
// add failure rate based on skill level variable (days alive)
|
|
_chanceToFail = (((random 1) + (dayz_skilllevel/100)) > 0.5);
|
|
|
|
if(!_chanceToFail) then {
|
|
|
|
_animalID = _dog getVariable "fsm_handle";
|
|
_animalID setFSMVariable ["_isTamed", true];
|
|
sleep 1;
|
|
diag_log format["DEBUG: %1, id: %2 [%3]",_dog,_animalID,completedFSM _animalID];
|
|
if (!moveToCompleted _dog) then {
|
|
_dog moveTo (position _dog);
|
|
};
|
|
_dog disableAI "FSM";
|
|
(group _dog) setBehaviour "AWARE";
|
|
_fsmid = [_dog, typeOf _dog] execFSM "\z\addons\dayz_code\system\dog_agent.fsm";
|
|
_fsmid setFSMVariable ["_handle", _fsmid];
|
|
player setVariable ["dogID", _fsmid];
|
|
_dog setVariable ["fsm_handle", _fsmid];
|
|
_dog setVariable ["characterID", dayz_characterID, true];
|
|
|
|
cutText [format["Dog consumed %1, and is now tamed.",_textRemoved], "PLAIN DOWN"];
|
|
} else {
|
|
cutText [format["Dog consumed %1, yet remains untamed.",_textRemoved], "PLAIN DOWN"];
|
|
};
|
|
}; |