dayz mission addin (serverside scripts)

piXel

Valued Member!
===========Updated 17-02-2013==========

This is version 2 of my addin for DayZ. server side scripted, so clients don't need an extra mod.

The added story line is a laboratory where things went wrong and the zombies entered the world through anomalies. As a helping hand in this harsh environment you can find companion dogs that you can command. See movie clip for details.

The dogshouses with dogs are located (with a random radius of 70 meters) in: Bor, Msta, Polana, Vyshnoye, Grishino, Dubrovka.

Install notes in .zip file

what is updated?
this
Only want the dog and know what .sqf is.
here

As a BE side note: I noticed the latest battleye for servers has a new text file "attachto.txt" This document needs to be empty. I did not have problems with script.txt. If you do, please tell me.


Notes -
The server needs to keep track of the dog owners in your "init.sqf" in the (isServer) section you have to declare dogOwner = []; correctly. See my file as an example and maybe the next is useful too.

#### To make your added doghouse work (dogspawn): ####

needs in doghouse item in the .sqm initialisation:
init="_nul = [this]execVM ""addin\dogInit.sqf"";";

in the description.ext below class RscPicture {}; add {sounds and graphics):
#include "addin\fx\descrExt.h"

in the init.sqf in section "isServer" (then server knows who has dog):
dogOwner = [];

in the init.sqf in the section "!isDedicated" (dog commands for the player)
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "addin\plrInit.sqf";}];
//dayZ original _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
_nul = [] execVM "addin\plrInit.sqf";

copy folder "addin" in your mission folder (all the scripts)


#### To make your added doghouse work (anomaly): ####

needs in doghouse item .sqm initialisation (for instance the stone anomaly):
init="_nul = [this]execVM ""addin\anomalyStone.sqf"";";

in the description.ext below class RscPicture {}; add {sounds and graphics):
#include "addin\fx\descrExt.h"

copy folder "addin" in your mission folder (all the scripts)


See my files as an example. (And placement=3000; in the .sqm file means placed in a random radius of 3000 meters. Then the game becomes less static. I do this for anomalies)


=============Change log============

Changes
Initialisation changed, no trigger but through init.sqf! (original construction was terrible, sorry)
a. Dogs should properly "connect" to player.
b. Intro should play
c. working reinitialisation of scripts when you died.
Helicopter lift script correctly connected to mi17. Now ("UH1H_DZ","Mi17_DZ")
Anomalies are completely clientside.

Known bug
If you change cloths your dog will die if/or you want a new dog, after changing cloths go back to lobby (reinitialise player) .

Thanks
You and especially people who helped me test it.

=========download at first message========
 

Attachments

  • dayzAddin_21.zip
    71 KB · Views: 3,276
Back
Top