Jump to content

Pavlovo prison


MaxPowers

Recommended Posts

Giggle if you want. Glad I can make you happy. A map addon is not part of DZ and doesnt follow the rights of the DML, but I am not sure if its APL-SA or APL.

 

And I dont try to be a lawyer. You guys disrespect copyright and Intellectual Property, that's just disgusting.

 

Everything in the map add on is part of Dayz, Epoch and Arma 2.

Link to comment
Share on other sites

  • 2 weeks later...
  • 6 months later...
  • 1 month later...

For those who are interessted. I added crazy zeds to the Prison. Via trigger.

 

In mission.sqm

class Item5
        {
			position[]={1312.28,0,4106.52};  // database cords, xyz
			a=100;
			b=100;
			activationBy="ANY";
			repeating=1;  // every one who enters the area after this spawns an additional horde
			interruptable=1;
			age="UNKNOWN";
			name="ZombleSpawnTrigger";
			expCond="(vehicle player) in thislist;";
			expActiv="zomblespawnt = [] execVM ""scripts\prisonZeds.sqf"";";
			expDesactiv="terminate zomblespawnt;";
			class Effects
			{
			};
		};

put in mission root prisonZeds.sqf (or in your folder. My specific folder is "scripts")

_zombletypes = [
"z_worker1"
];
_zomblesposition =[1312.28,4106.52,0]; //where you want the zombies to spawn, this location is xzy
_i = 1;
for "_i" from 15 to 45 do // spawns between 15 and 45 zombies
{
_genzombles = _zombletypes call BIS_fnc_selectRandom;
_agent = createAgent [_genzombles, _zomblesposition, [], 10, "NONE"];
_zombleselectedpos = getPosATL _agent;
[_zombleselectedpos,_agent] execFSM "\z\addons\dayz_code\system\zombie_agent.fsm";
};

fff3f1632d.jpg

Link to comment
Share on other sites

  • 2 months later...

For those who are interessted. I added crazy zeds to the Prison. Via trigger.

 

In mission.sqm

class Item5
        {
			position[]={1312.28,0,4106.52};  // database cords, xyz
			a=100;
			b=100;
			activationBy="ANY";
			repeating=1;  // every one who enters the area after this spawns an additional horde
			interruptable=1;
			age="UNKNOWN";
			name="ZombleSpawnTrigger";
			expCond="(vehicle player) in thislist;";
			expActiv="zomblespawnt = [] execVM ""scripts\prisonZeds.sqf"";";
			expDesactiv="terminate zomblespawnt;";
			class Effects
			{
			};
		};

put in mission root prisonZeds.sqf (or in your folder. My specific folder is "scripts")

_zombletypes = [
"z_worker1"
];
_zomblesposition =[1312.28,4106.52,0]; //where you want the zombies to spawn, this location is xzy
_i = 1;
for "_i" from 15 to 45 do // spawns between 15 and 45 zombies
{
_genzombles = _zombletypes call BIS_fnc_selectRandom;
_agent = createAgent [_genzombles, _zomblesposition, [], 10, "NONE"];
_zombleselectedpos = getPosATL _agent;
[_zombleselectedpos,_agent] execFSM "\z\addons\dayz_code\system\zombie_agent.fsm";
};

 

 

private ["_spawnPos","_round","_paths","_bossRounds"];

_spawnPos =[1312.28,4106.52,0];
_round = 0;
_bossRounds = [5,10,15,20,21,22,23,24,25,26,27,28,29,30];
_ammoRounds = [5,6,10,11,15,16,20,21,25,26,27,28,29,30];
_healRounds = _bossRounds;
_paths = ["\z\addons\dayz_code\system\zombie_agent.fsm","EPOCHMODS\zupa\walkers\zombie_agent.fsm"];
_RoundTimeWait = 5;
hits = 0;

fnc_kill_zeds = {
	private ['_zCount'];
	_zCount = _spawnPos nearEntities ["zZombie_Base", 100];
	if (count _zCount > 0) exitWith {
		{
			_x setDamage 1;
		} count _zCount;
	};
};

fnc_heal = {
	private ['_selection','_damage','_display','_control'];
	disableSerialization;
	dayz_sourceBleeding = objNull;
	r_player_blood = r_player_bloodTotal;
	r_player_inpain = false;
	r_player_infected = false;
	r_player_injured = false;
	dayz_hunger = 0;
	dayz_thirst = 0;
	dayz_temperatur = 37;
	r_fracture_legs = false;
	r_fracture_arms = false;
	r_player_dead = false;
	r_player_unconscious = false;
	r_player_loaded = false;
	r_player_cardiac = false;
	r_player_lowblood = false;
	r_player_timeout = 0;
	r_handlercount = 0;
	r_interrupt = false;
	r_doLoop = false;
	r_drag_sqf = false;
	r_self = false;
	r_action = false;
	r_action_unload = false;
	r_player_handler = false;
	r_player_handler1 = false;
	disableUserInput false;
	'dynamicBlur' ppEffectAdjust [0];
	'dynamicBlur' ppEffectCommit 5;
	_selection = 'legs';
	_damage = 0;
	player setHit[_selection,_damage];
	player setVariable['messing',[dayz_hunger,dayz_thirst],true];
	player setVariable['NORRN_unconscious',false,true];
	player setVariable['USEC_infected',false,true];
	player setVariable['USEC_injured',false,true];
	player setVariable['USEC_inPain',false,true];
	player setVariable['USEC_isCardiac',false,true];
	player setVariable['USEC_lowBlood',false,true];
	player setVariable['USEC_BloodQty',12000,true];
	player setVariable['unconsciousTime',0,true];
	player setVariable['hit_legs',0,true];
	player setVariable['hit_hands',0,true];
	player setVariable['medForceUpdate',true,true];
	_display = uiNameSpace getVariable 'DAYZ_GUI_display';
	_control = _display displayCtrl 1303;
	_control ctrlShow false;
	_display = uiNameSpace getVariable 'DAYZ_GUI_display';
	_control = _display displayCtrl 1203;
	_control ctrlShow false;
	player setdamage 0;
	0 fadeSound 1;
	resetCamShake;
};

fnc_ammoSupply = {
	private ['_class','_selection','_pos','_safePos','_temp'];
	_class		=		(getArray (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'magazines'));
	_selection =	_class select 0;
	
	for "_x" from 1 to 5 do {
		_pos = getPosATL player;
		_pos = [((_pos select 0) + (random 15)),((_pos select 1) + (random 15)),0];
		_temp = createVehicle ["WeaponHolder", _pos, [], 0, "CAN_COLLIDE"];
		_temp addMagazineCargoGlobal [_selection,2];
	};
	
};

fnc_hit_counter = {
	hits = hits + 1;
	systemchat format ['HITS: %1',hits];
};

fnc_boss = {
	private ['_boss','_zombleselectedpos','_pos','_sphere'];
	_boss = createAgent ["z_worker1", _spawnPos, [], 10, "NONE"];
	_zombleselectedpos = getPosATL _agent;
	[_zombleselectedpos,_boss] execFSM "\z\addons\dayz_code\system\zombie_agent.fsm";
	_pos  = getPosATL _boss;
	_sphere = "Sign_sphere25cm_EP1" createVehicle [(_pos select 0),(_pos select 1),0];
	_sphere attachTo [_boss, [0,0,3]];
	_boss removeAllEventHandlers 'handleDamage';
	_boss addEventHandler ['handleDamage',{_this call fnc_hit_counter}];
	while {!isNull _boss && alive _boss && (hits <= 250)} do {
		_boss setDamage 0;
		if (hits >= 250) exitWith {_boss setDamage 1;hits = 0;};
	};
};

for "_round" from 1 to 999 do {
	private ['_waitTimer','_i','_complete','_agent','_agentPos','_meters','_zCount'];
	
	_waitTimer = time + _RoundTimeWait;
	waitUntil {time >= _waitTimer};
	systemchat format ['Round: %1',_round];
	
	_i = 0;
	_complete = false;
	
	while {_i != (_round + 5)} do {
		_agent = createAgent ["z_worker1", _spawnPos, [], 10, "NONE"];
		_agentPos = getPosATL _agent;
		call compile format ['[_agentPos,_agent] execFSM "%1";',(_paths select floor random count _paths)];
		_i = _i + 1;
		sleep .1;
	};
	
	if (_round in _bossRounds) then {call fnc_boss;};
	if (_round in _ammoRounds) then {call fnc_ammoSupply;};
	if (_round in _healRounds) then {call fnc_heal;};
	
	while {!_complete} do {
		if (isNull player) exitWith {call fnc_kill_zeds;};
		if !(alive player) exitWith {call fnc_kill_zeds;};
		_meters = player distance _spawnPos;
		if (_meters > 60) exitWith {call fnc_kill_zeds;};
		_zCount = _spawnPos nearEntities ["zZombie_Base", 40];
		if (count _zCount == 0) exitwith {_complete = true;};
	};
	
};

Link to comment
Share on other sites

  • 3 weeks later...

I have installed this but when I start the game I am geting the message about unable to play because of editable/deleted content. warehouse (when I click ok everything runs ok)

 

I have checked the code and nothing showing for warehouse any one got any idea's about the error please.

 

also is there any way to stop the Zombies walking through the fence or walls?

 

Thanks

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...