[Release] DayZ Dynamic Dogs

Stuff and Junk

Well-Known Member
[Release] DayZ Dynamic Dogs
author: Dango

credits: Pixel
I do not take credit for the creation of this feature. I only take credit for the modifications required to accomplish my goals. To my knowledge development was dropped for this feature long ago and that is why I am releasing this to the community.

Description

This feature spawns a dog companion when a player comes within so many yards of any dog house on any map. This is based on a trigger that can only be activated by players to prevent wild dogs from running around aimlessly causing issues for the server or other players. This has only been deployed on a DayZ Mod server but is scripted to not be mod specific.

Requirements

This script requires the use of a notepad++ or similar program, a PBO manager or similar program and access to all outlined PBO files below.

Easy = Blue <10

Installation
  1. Download the package: DayZ Dynamic Dogs
  2. Extract the package into the mission PBO root.
  3. In the init.sqf after game settings add this:
    Code:
    dogOwner = [];
  4. In the init.sqf file inside of the (isServer) block after server monitor add this:
    Code:
    [] execVM "addin\dogInit.sqf";
  5. At the end of the init.sqf file inside the (!isDedicated) block after all the code add this:
    Code:
    _nul = [] execVM "addin\plrInit.sqf";
    Optional: If you have already created a new (!isDedicated) block to house your other scripts then just add it inside that one.
  6. Open your sched_corpses.sqf in the scheduler folder of the server PBO and find this section:
    Code:
    _delQtyAnimal = 0;
        {
            if (local _x && !(typeOf _x)) then {
                _x call sched_co_deleteVehicle;
                _delQtyAnimal = _delQtyAnimal + 1;
            };
        } forEach entities "CAAnimalBase";
    Then change it to this:
    Code:
    _delQtyAnimal = 0;
        {
            if (local _x && !((typeOf _x) in ["Pastor","Fin"])) then {
                _x call sched_co_deleteVehicle;
                _delQtyAnimal = _delQtyAnimal + 1;
            };
        } forEach entities "CAAnimalBase";
  7. Open the init.sqf mission file and add this variable to either your custom variables or after the game settings:
    Code:
    heliLift = true;
Support Thread: http://opendayz.net/threads/support-dayz-dynamic-dogs.21931/

--------------------------------------------------

Version 1.5
  • Debug information added to trigger creation.
  • Correct dog.init file was restored.
  • Tested functional on a Headless Client.
  • Player dog actions have been improved.
  • Added variable for Mi17 towing.
Known Issues
  • The rpt log may report bugs about dog actions.
 
Last edited:
Back
Top