Jump to content

Recommended Posts

Hollow's Center for Disease Control

http://www.CraftDoge.com 

 

 

jfaLTU9.jpg

 

 

A nice little Balota Addition

 

I made this build as a housing place for my CDC Trader in which you can trade zombie parts for gold, the idea is a single scientist is trying to find the cure and needs you to gather zombie flesh for him and he is willing to make it worth your wild.

 

Below are tutorials for with, and without the trader.

 

 

ScreenShots:

http://imgur.com/a/uMig4

 

Downloads:

http://www.craftdoge.com/downloads/

 

 

Tutorial WITHOUT Trader: (with trader tutorial below)

 

click the download link above and download the CDC_Balota.zip

 

Unpack your dayz_server.pbo

 

Add the following code to the bottom of your server_functions.sqf  located at: 

dayz_server\init\server_functions.sqf

[] ExecVM "\z\addons\dayz_server\custom\CDC_Balota.sqf";

Create a folder named "custom" and place the CDC_Balota.sqf

you downloaded, inside the custom folder.

 

Place the custom folder in the root of your dayz_server.pbo then repack and upload your pbo

 

To add the map marker open your mission.sqm

 

search for 

class Markers

and scroll to the bottom of the markers and add this code

class Item20
		{
			position[]={4843.2983,365.13501,2278.8335};
			name="Centre for Disease Control";
			text="Centre for Disease Control";
			type="mil_triangle";
			colorName="ColorYellow";
		};

Remember to change the items=? and class Item20  to match your own markers.

(keep in mind the first marker item is 0, so if you have 24 markers, it should read items=25 and this marker should be class Item24)

 

 

 

Tutorial WITH Trader:

 

Do the above, but substitue all CDC_Balota.sqf in the code with

Trader_CDC_Balota.sqf

 

 and use the Trader_CDC_Balota.zip download obviously.

 

Open your server_traders.sqf and add this code to the bottom

// CDC
menu_RU_Doctor = [
	[["Specimens",900],["Medical Supplies",901]],
	[],
	"neutral" 
];

at the top of your server_traders.sqf add "RU_Doctor" to the list of servertraders

 

Now make the new TID's in your Database and add the items to them

(assuming you have changed or added items to traders before)

 

Now your done. 

 

 

Reply with any questions

 

Additions to this build are welcome, everyone has full permission to use this how ever they want.

Share this post


Link to post
Share on other sites

This looks really cool and I do plan on adding this to my server, every server should have this, LOL.

 

I have no problem adding this, but if you could provide a brief description as to how to add the trade it would be much appreciated.

Share this post


Link to post
Share on other sites

This looks really cool and I do plan on adding this to my server, every server should have this, LOL.

 

I have no problem adding this, but if you could provide a brief description as to how to add the trade it would be much appreciated.

Sure thing, Original post has been updated to include a tutorial

Share this post


Link to post
Share on other sites

so this addon has 4 buidlings and a lot of dead bodys ? 

 

thats what i need xD

 Damn your right, i should have put much more objects an built a large city for the singular trader,

On second thought how dare i post a small build, everyone knows the artistic universal motto is "more is better".

 

Im ashamed, you have shown me the light!

 

Share this post


Link to post
Share on other sites

Can someone please help!?!?!? I can't even find server_functions.sqf 

It's literally nowhere to be found!!!

 

I don't have any of these directories!?:

dayz_server\init\server_functions.sqf

Share this post


Link to post
Share on other sites

dayz server.pbo and not mission.pbo xD

I'm really confused? I don't have a server_functions.sqf located anywhere..

 

The closest I've come too is the file in \MPMissions                 dayz_01.chernarus.pbo

I downloaded and extracted that .pbo file and it gives me the i

init.sqf

mission.sqm

description.ext

 

Can someone please explain where I find this folder in English please?

Share this post


Link to post
Share on other sites

I'm a little confused on how to get this working?
I've got the marker added and working but the building itself is not there.
 
I have created a custom folder in the .pbo file with the name set to "custom" and the .sqf file in it like so
8af7884af5a90325a74b4e973dbfed9a.png

a299d143561bb47e34f49ba77e1d5e0f.png

In the server_traders file I have

// CDC
menu_RU_Doctor = [
	[["Specimens",900],["Medical Supplies",901]],
	[],
	"neutral" 
];

With the "RU_Doctor" added to the top.

My server_functions.sqf file is located at
Root:@DayZ_Epoch_Server\addons\dayz_server\init\server_functions.sqf

I have

[] ExecVM "\z\addons\dayz_server\custom\Trader_CDC_Balota.sqf";

on the bottom line like so (This is the last 22 lines in server_functions.sqf):

server_setLocalObjVars = {
	private ["_obj","_holder","_weapons","_magazines","_backpacks","_player","_objectID","_objectUID"];

	_obj = _this select 0;
	_holder = _this select 1;
	_player = _this select 2;

	_objectID 	= _obj getVariable["ObjectID","0"];
	_objectUID	= _obj getVariable["ObjectUID","0"];

	_weapons = 		getWeaponCargo _obj;
	_magazines = 	getMagazineCargo _obj;
	_backpacks = 	getBackpackCargo _obj;
	
	deleteVehicle _obj;

	_holder setVariable ["WeaponCargo", _weapons];
	_holder setVariable ["MagazineCargo", _magazines];
	_holder setVariable ["BackpackCargo", _backpacks];
	
	diag_log format["SAFE LOCKED: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), (getPlayerUID _player)];
};
[] ExecVM "\z\addons\dayz_server\custom\Trader_CDC_Balota.sqf";



I have also tried it above }; and still didn't work.
I'm a little confounded with the reason for it not working. Everything seems to be in order or so looks it. Am I missing something small?

Cheers if you can help out.


EDIT:

SOLVED

 

Found a fix and it completely works! Amazing addition to my server! Thanks a lot!

Share this post


Link to post
Share on other sites

Hi, I really like this addition, but find the WITH trader tutorial a bit confusing. You have new TIDs, but I already have Medical supplies under different TID. What items should I add to db etc? :)

Share this post


Link to post
Share on other sites

added everything the way you said. Problem is i cant enter database it is down and never worked i add in all my traders items through the CFG file which is easier anyways. How would i do this? (the trader in teh cdc ten is not holdinga  weapon even though it looks like it and no items pop up in trader menu nor mission or anything, just the layout the buildings and trader)

Share this post


Link to post
Share on other sites

added everything the way you said. Problem is i cant enter database it is down and never worked i add in all my traders items through the CFG file which is easier anyways. How would i do this? (the trader in teh cdc ten is not holdinga  weapon even though it looks like it and no items pop up in trader menu nor mission or anything, just the layout the buildings and trader)

I wrote this PreCfg days, ill add a new tutorial soon

Share this post


Link to post
Share on other sites

I wrote this PreCfg days, ill add a new tutorial soon

Oh one more thing boss, the island Cave, vehicles inside blow up or you cant enter them, when you bring one from outside cave and exit out of vehicle you spawn on top of the cave. Helis blow up on landing and etc.

Share this post


Link to post
Share on other sites

Ok got a great new building, check........new trader check.but I have no experience with setting up traders or tids can you help with this last bit pls

delighted with everything so far, just gotta get the trader buying and selling

cheers

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By Grahame
      By Grahame, @natoedand @Drokz (and others). Based on ExileZ 2.0 by Patrix87 which was forked from an original project named EXILE-Z created by SAM, Otto and CaptionJack of RelentlessServers.com based on Civilian Life by code34. Released under the same Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license.
      Incorporates DayZ-style Heli Crash Site code from @rvg?!, based on the original script by @Richie 
      Feature List from the original ExileZ 2.0
      Dynamically spawns Ryan's Zombies. An infinite set of spawner configurations Harassing zombies aka Random encounters that will spawn near players wherever they are. Hordes! The number of zombies in a town is proportional to the number of player in that town (adjustable ratio) Very lightweight. Server Side only! A constant flow of zombies in towns. Fully configurable Supports any map! Map support included in base EpochZ 1.0 build for Altis, Tanoa, Chernarus Redux, Australia and Takistan Safezone protection. Zombie Missions! (Not tested in EpochZ 1.0) The possibility to display infested zones on map. Adjustable zombies health and damage. Zombies won't disappear if close to a player. Zombies won't spawn right next to a player. Turn off all lights on the map by setting the LightsOff variable to true in fn_init.sqf  (not working atm... we're working on a fix) New Features in EpochZ 1.0
      Reworked for use on Epoch servers. Infected will not be spawned within minJammerDistance of a frequency jammer. DayZ Style Heli Crash Site code incorporated within EpochZ so infected will spawn at a heli crash site. If you use it then remove the helicrash.pbo from @epochhive/addons Infected entering safe zones defined in fn_init.sqf in the SafeZonePositions[] array will be deleted. If SpawnWithinTriggerRadius is set to true in fn_init.sqf then the infected will spawn throughout the entire trigger area, otherwise they will spawn between MinSpawnDistance and MinSpawnDistance of the centre of the trigger. Download
      https://github.com/morgoth0/EpochZ
      Installation
      If you just want to use our default version on Altis then simply upload the epochz.pbo in @epochhive/addons in the GitHub repository into the same location on your Epoch server and restart.
      This addon is incredibly customizable and I am working on full documentation for it to help people set it up the way they want. In the meantime the code is very well commented and, assuming you have a reasonable knowledge of configuring addons then here are the files in which you can change it to suit your needs:
      epochz/init/fn_init.sqf: contains all configuration settings and trigger definitions
      epochz/init/TriggerPositions.sqf: defines all locations for infected spawns and which trigger class they are in
      epochz/init/ZClasses: defines the classes of infected spawned in each trigger type
      epochz/init/ZLoot.sqf: what loot is found on the infected
      epochz/init/ZVest: what vests are worn by the infected
      Screenshot
      http://www.grahamecurtis.com/images/epochz_spawns.jpg
    • By Grahame
      First test of infected spawns via the standard ARMA3 Epoch lootbubble. Infected spawn out of LOS and right now just a hard coded one per building.   No DayZ code was used in this new feature.   As always, apologies for the video quality, my PC is a potato...    
    • By Grahame
      The year is 2025, six months after person or persons unknown unleashed the H7D3 virus on the world, killing a large proportion of the world's population and turning many of the "survivors" into mindless "zombies" - feral and infectious, very much alive and very, very hungry...
      Trying to create the feel of John Ringo's Black Tide Rising universe with less weaponry available, though if you want to chase Zs with a Saiga they are around. Knock yourself out.
      IP: 149.56.28.85:2302
      Visit the EpochZ Community Forum or contact us on Discord.
      Required Mods
      Ryan's Zombies and Demons: currently using COS to spawn the Zs, though there are also native spawns around the map with more to come. Normal infected in urban areas are walkers, the spawns are fast Zombies so watch out.
      CBA_A3, CUP Weapons, CUP Units, CUP Vehicles: it's 2025 with 2025 weapons and vehicles. I've completely overhauled loots.h for CUP but not increased the loot spawn chances.
      CUP Terrains Core: for upcoming map changes and the ports of old Wicked AI missions.
      Tryk's Multi-Player Uniforms: lots more uniforms for the uniform junkies out there. This is the one that you want if you are downloading via Steam: http://steamcommunity.com/sharedfiles/filedetails/?id=779520435
      RDS Civilian Vehicles: primarily for the deployable bicycle but you also get a load of old favourites including Thomas the Tractor and the excellent Yamaha TT650!
      Enhanced Movement Mod: Sneeki Breeki your way into a base with a buddy vaulting you over the wall, or just climb on a roof or through a window to avoid the infected!
      Hellenic Armed Forces Mod (HAFM): for all those nice Greek uniforms and vehicles. 
      NI Arms All-in-One Mod: All the weapons and attachments from the mod are available at the traders and spawn as loot. 
      Scripts
      A3EAI: with vehicle and helicopter patrols. AI patrols and spawns replace the default Epoch antagonists (apart from the Epoch UAVs and subsequent militia if you don;t shoot them down). The AI will interact with the Zs and vice versa.
      SEM, BlackEagl's and WAI Missions: all with weapons, equipment and loot customized for CUP and including SEM Convoy missions. And yes, there is the WAI Nuke mission. If no one's dealt with that before the timer expires run like hell
      DayZ style Helicopter Crash Sites: with reduced CUP-based loot.
      C-130 Supply Drops, guarded by AI and with CUP-based loot.
      Deployable and packable bicycles and unarmed mozzies, so long as you have a Tool Kit (available in starting gear) and the other build parts (just Vehicle Repair Parts for a bicycle).
      New buildables at your base including working Portable Lights, a Sink and Field Toilet (both are water sources), Razor Wire, Watch Tower, various Sandbag Walls, Fuel Pump, large and small Camo Nets, Loudspeakers, a Burn Barrel and an ATM.
      Black Market Traders in trader camps and elsewhere.
      HALO/Ground Spawns and you can select limited Starting Gear
      Halv's Repair and Reammo Script, rearm and repair your vehicles in the repair shops at gas stations
       @Sp4rkY's Extended Safe Zones with Vehicle Protection!
      Advanced Towing and Advanced Rappelling
      Features
      All players are BLUFOR, roaming, dynamic and mission AI are OPFOR, infected are RESISTANCE allowing the interaction between the Ai and infected - they will fight each other when spawned together. No building restrictions, build where ever you want 150m Jammer range 7-day base maintenance 48-hour vehicle locks 4 hour restarts, day/night cycle PvE or PvP, your choice (but remember the AI and Zs will be after you too) The only safe zones are the five marked on the map (north, south, east, west and central). Everywhere else on the map is a free-fire zone so stay frosty, and alert.
    • By chi
      Can someone tell me if im doing something wrong here? Im trying to spawn a random amount of coins on Zombies when they die.
      This is my zombie_generate.sqf and im calling it from my custom compiles. Sorry, but im on my phone and cant find a spoiler box button.
      #include "\z\addons\dayz_code\loot\Loot.hpp"
      private ["_bypass","_position","_unitTypes","_radius","_method","_agent","_maxlocalspawned","_doLoiter","_wildspawns","_maxControlledZombies",
      "_cantSee","_isOk","_zPos","__FILE__","_fov","_safeDistance","_farDistance","_xasl","_eye","_ed","_deg","_skipFOV","_wildSpawns","_tooClose",
      "_type","_loot","_array","_rnd","_lootType","_index","_weights","_loot_count","_favStance","_lootGroup"];
      _position = _this select 0;
      _doLoiter = _this select 1; // wonder around
      _unitTypes = _this select 2; // class of wanted models
      //_wildspawns = _this select 3;
      _bypass = _this select 3;
      _maxlocalspawned = round(dayz_spawnZombies);
      //Lets check if we need to divide the amount of zeds
      if (r_player_divideinvehicle > 0) then {
          _maxlocalspawned = round(dayz_spawnZombies / r_player_divideinvehicle);
      };
      _maxControlledZombies = round(dayz_maxLocalZombies);
      _cantSee = {
          private "_isOk";
          _isOk = true;
          _zPos = +(_this select 0);
          if (count _zPos < 3) exitWith {
              diag_log format["%1::_cantSee illegal pos %2", __FILE__, _zPos];
              false
          };
          _zPos = ATLtoASL _zPos;
          _fov = _this select 1; // players half field of view
          _safeDistance = _this select 2; // minimum distance. closer is wrong
          _farDistance = _this select 3; // distance further we won't check
          _zPos set [2, (_zPos select 2) + 1.7];
          {
              _xasl = getPosASL _x;
              if (_xasl distance _zPos < _farDistance) then {
                  if (_xasl distance _zPos < _safeDistance) then {
                      _isOk = false;
                  } else {
                      _eye = eyePos _x; // ASL
                      _ed = eyeDirection _x;
                      _ed = (_ed select 0) atan2 (_ed select 1);
                      _deg = [_xasl, _zPos] call BIS_fnc_dirTo;
                      _deg = (_deg - _ed + 720) % 360;
                      if (_deg > 180) then { _deg = _deg - 360; };
                      if ((abs(_deg) < _fov) && {( // in right angle sector?
                              (!(terrainIntersectASL [_zPos, _eye]) // no terrain between?
                              && {(!(lineIntersects [_zPos, _eye]))}) // and no object between?
                          )}) then {
                          _isOk = false;
                      };
                  };
              };
              if (!_isOk) exitWith {false};
          uiSleep 0.001;
          } forEach playableUnits;
          _isOk
      };
      _skipFOV = false;
      if ((_maxlocalspawned < _maxControlledZombies) && (dayz_CurrentNearByZombies < dayz_maxNearByZombies) && (dayz_currentGlobalZombies < dayz_maxGlobalZeds)) then {
          if (_bypass) then {  
              _skipFOV = true;
              _position = [_position,3,20,1] call fn_selectRandomLocation;
          };
          if (surfaceIsWater _position) exitWith { diag_log "Location is in Water Abort"; };
          if ((_skipFOV) or {([_position, 15, 10, 70] call _cantSee)}) then {
              _tooClose = {isPlayer _x} count (_position nearEntities ["CAManBase",30]) > 0;
              if (_tooClose) exitwith { diag_log "Zombie_Generate: was too close to player."; };
              
              if (count _unitTypes == 0) then {
                  _unitTypes = getArray (missionConfigFile >> "CfgLoot" >> "Buildings" >> "Default" >> "zombieClass");
              };
              
              // lets create an agent
              _type = _unitTypes call BIS_fnc_selectRandom;
              _radius = 5;
              //_method = if (_doLoiter) then {"CAN_COLLIDE"} else {"NONE"};
              _agent = createAgent [_type, _position, [], _radius, "CAN_COLLIDE"]; 
              uiSleep 0.03;
              
              //add to global counter 
              dayz_spawnZombies = dayz_spawnZombies + 1;
              dayz_CurrentNearByZombies = dayz_CurrentNearByZombies + 1;
              dayz_currentGlobalZombies = dayz_currentGlobalZombies + 1;
              
              //Add some loot
              if (0.3 > random 1) then {
                  _lootGroup = configFile >> "CfgVehicles" >> _type >> "zombieLoot";
                  if (isText _lootGroup) then {
                      //_lootGroup = dayz_lootGroups find getText (_lootGroup);
                      _lootGroup = Loot_GetGroup(getText _lootGroup);
                      //[_agent, _lootGroup, 1] call loot_insert;
                      Loot_Insert(_agent, _lootGroup, 1);
                  };
              };
              
              _agent setVariable["agentObject",_agent];
              if (!isNull _agent) then {
                  _agent setDir random 360;
                  uiSleep 0.03;
                  _position = getPosATL _agent;
                  _favStance = (
                      switch ceil(random(3^0.5)^2) do {
                          //case 3: {"DOWN"}; // prone
                          case 2: {"middle"}; // Kneel "middle"
                          default {"Up"}; // stand-up
                      }
                  );
                  _agent setUnitPos _favStance;
                  _agent setVariable ["stance", _favStance];
                  _agent setVariable ["BaseLocation", _position];
                  _agent setVariable ["doLoiter", _doLoiter]; // true: Z will be wandering, false: stay still
                  
                  _coinsRandom = random 1;
                  if (_coinsRandom <= 0.5) then {
                  _cash = round(random 20) * 5; // number between 0 and 200 Add Coins to Zombie
                  _agent setVariable["CashMoney",_cash ,true]; // Add Coins to Zombie
                  };
              };
          };
      };
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...