Jump to content

[UPDATE 1.6.+] Walk Amongst The Dead


juandayz

Recommended Posts

ok a quick test. to see if is your fn_selfactions.sqf the problem.. gonna call it from keyboard.sqf  so remove everything about walkingdead from fn_selfactions.sqf

open the smear_guts.sqf and change the whole code for it

Spoiler

private ["_txt","_zedbody","_nearestplayers"];

_zbody = cursorTarget;
_wasguted = _zbody getVariable["wasguted",false];
_setinfectRand= round(random 10);
_SetchanceInf = 7;


if (player getVariable["combattimeout",0] >= diag_tickTime) exitWith {
systemChat ("You cannot made it under combat");};


if (hasGutsOnHim) exitWith {
systemChat ("already covered in zombie guts");
};

if (vehicle player != player) exitWith {systemChat ("You cannot made it in a vehicle");};


if (!isNull _zbody && {player distance _ent < 5}) then {
if (!Alive _zbody && {(_zbody isKindOf "zZombie_base")}) then {

if (!_wasguted) then {

if (_setinfectRand < _SetchanceInf) then {
r_player_infected = true;
player setVariable["USEC_infected",true,true];
systemChat ("You was infected by the blood");
};

player playActionNow "Medic"; 
[player,"gut",0,false,10] call dayz_zombieSpeak;

	
	sand_USEDGUTS = true; 
	sand_washed =  false;
	hasGutsOnHim = true;
_zbody setVariable["wasguted",true,true];
player setVariable ["USEC_inPain", true, true];
};
};
};

 

now in your custom keyboard.sqf  at bottom but before the last "_handled" paste:

 if (_dikCode == 0x14) then {execVM "zedutility\walkamongstthedead\smear_guts.sqf";}; 

Now go in game kill a zed.. im he and press T key.

Link to comment
Share on other sites

Just now, kingpapawawa said:

did you intend for it to send 4 messages that the effect has worn off?

zombies are aware of you now
time out zeds are aware of you now
zombies are aware of you now
zombies are aware of you now

walkamongsthedead.sqf

Spoiler

sand_endScript = {
systemChat ("Zombies are aware of you now"); //remove me
player_zombieCheck = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_zombieCheck.sqf';
player_zombieAttack = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_zombieAttack.sqf';
DZE_hasZombieCamo = false;
hasGutsOnHim = false;
sand_washed  = true;    
sand_USEDGUTS = nil;
player removeAction s_player_cleanguts;
s_player_cleanguts = -1;
_control ctrlShow false;
//playSound "heartbeat_1";
};

 

Link to comment
Share on other sites

Simple error on client side. Works fine, just throwing this error

Error in expression <yer_cleanguts;
s_player_cleanguts = -1;
_control ctrlShow false;

};

sand_z>
  Error position: <_control ctrlShow false;

};

sand_z>
  Error Undefined variable in expression: _control
File mpmissions\__CUR_MP.Chernarus\scripts\walkamongstthedead\walkamongstthedead.sqf, line 19

Link to comment
Share on other sites

15 hours ago, ViktorReznov said:

Simple error on client side. Works fine, just throwing this error

Error in expression <yer_cleanguts;
s_player_cleanguts = -1;
_control ctrlShow false;

};

sand_z>
  Error position: <_control ctrlShow false;

};

sand_z>
  Error Undefined variable in expression: _control
File mpmissions\__CUR_MP.Chernarus\scripts\walkamongstthedead\walkamongstthedead.sqf, line 19

check the step 4 if u are adding the s_player_cleanguts -1;

4-custom Variables.sqf

Find:

//Player self-action handles
dayz_resetSelfActions = {

below paste


s_player_zhide2 = -1;
s_player_zhide3 = -1;
s_player_cleanguts = -1;
Link to comment
Share on other sites

  • 4 months later...
1 hour ago, chi said:

can someone thats using ZSC on 1.0.6+ please send me their Description.ext and description.hpp... This has gotten really confusing for me

 

These are included by default with ZSC: 

Link to comment
Share on other sites

Sorry, I meant a copy that's working with the WalkAmongstTheDead script

I don't understand why, but i don't have a RscPictureGUI defined anywhere in my 1.0.6.1 pbo's by default, even with ZSC. And in the WATD instructions above, it doesn't say to add it.

I feel like i've messed up somewhere, so please feel free to scold me ;-)

Link to comment
Share on other sites

On 5/10/2017 at 7:29 PM, juandayz said:

@Draundenth 

1-init.sqf

At the very very  very very very  very very very very very  very very very  very very very very very  very very very  very very very very very  very very very  very very very very very  very very very  very very very very very  very very very  very very very end

after this line:


	endLoadingScreen;
};

paste:


call compile preprocessFileLineNumbers "zedutility\walkamongstthedead\config.sqf";

 

2-description.ext  after this lines:


aiKills = 1;
diagRadio = 1;
diagHit = 1;

paste:

  Hide contents


class RscPictureGUI
{
	access=0;
	type=0;
	idc=-1;
	colorBackground[]={0,0,0,0};
	colorText[]={0.38,0.63,0.25999999,0.75};
	font="TahomaB";
	sizeEx=0;
	lineSpacing=0;
	text="";
	style="0x30 + 0x100";
	x=0;
	y=0;
	w=0.2;
	h=0.15000001;
};

	

/////////////

class RscText
{
	type = 0;
	idc = -1;
	x = 0;
	y = 0;
	h = 0.037;
	w = 0.3;
	style = 0x100; 
	font = Zeppelin32;
	SizeEx = 0.03921;
	colorText[] = {1,1,1,1};
	colorBackground[] = {0, 0, 0, 0};
	linespacing = 1;
};

class RscPicture
{
	access=0;
	type=0;
	idc=-1;
	style=48;
	colorBackground[]={0,0,0,0};
	colorText[]={1,1,1,1};
	font="TahomaB";
	sizeEx=0;
	lineSpacing=0;
	text="";
};

class RscLoadingText : RscText
{
	style = 2;
	x = 0.323532;
	y = 0.666672;
	w = 0.352944;
	h = 0.039216;
	sizeEx = 0.03921;
	colorText[] = {0.543,0.5742,0.4102,1.0};
};

class RscProgress
{
	x = 0.344;
	y = 0.619;
	w = 0.313726;
	h = 0.0261438;
	texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
	colorFrame[] = {0,0,0,0};
	colorBar[] = {1,1,1,1};
};

class RscProgressNotFreeze
{
	idc = -1;
	type = 45;
	style = 0;
	x = 0.022059;
	y = 0.911772;
	w = 0.029412;
	h = 0.039216;
	texture = "#(argb,8,8,3)color(0,0,0,0)";
};

//
// the loading screen itself
//
class DayZ_loadingScreen
{ 
	idd = -1;
	duration = 10e10;
	fadein = 0;
	fadeout = 0;
	name = "loading screen";
	class controlsBackground
	{
		class blackBG : RscText
		{
			x = safezoneX;
			y = safezoneY;
			w = safezoneW;
			h = safezoneH;
			text = "";
			colorText[] = {0,0,0,0};
			colorBackground[] = {0,0,0,1};
		};
	};
	class controls
	{
		class Title1 : RscLoadingText
		{
			text = "$STR_LOADING"; // "Loading" text in the middle of the screen
		};
		class CA_Progress : RscProgress // progress bar, has to have idc 104
		{
			idc = 104;
			type = 8; // CT_PROGRESS
			style = 0; // ST_SINGLE
			texture = "\ca\ui\data\loadscreen_progressbar_ca.paa";
		};
		class CA_Progress2 : RscProgressNotFreeze // progress bar that will go reverse
		{
			idc = 103;
		};
		class Name2: RscText // the text on the top-left
		{
			idc = 101;
			x = 0.05;
			y = 0.029412;
			w = 0.9;
			h = 0.04902;
			text = "";
			sizeEx = 0.05;
			colorText[] = {0.543,0.5742,0.4102,1.0};
		};
	};
};

// logo watermark
class RscTitles {
class zCamoStatusGUI {
	idd = -1;
	fadeout=0;
	fadein=0;
		onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
		duration = 10e10;
		name= "zCamoGui";
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class zCamoIcon:RscPictureGUI {
			idc = 1;
			text="zedutility\walkamongstthedead\zombie.paa";
			x="0.958313 * safezoneW + safezoneX";
			y="0.43 * safezoneH + safezoneY";
			w=0.059999999;
			h=0.079999998;
			colorText[]={1,1,1,1};
			};
		};
	};
	class wm_disp {
		idd = -1;
		onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
		fadein = 0;
		fadeout = 0;
		duration = 10e10;
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class wm_text2 {
				idc = 1;
				x = safeZoneX+0.027;//safeZoneW*0.01;
				y = safeZoneY+safeZoneH-0.16;
				w = 0.151*safeZoneH;
				h = 0.057*safeZoneH;
				shadow = 2;
				class Attributes
				{
					font = "EtelkaNarrowMediumPro";
					color = "#24FFFFFF";
					align = "left"; // put "center" here if you want some background
					valign = "middle";
					shadow = 2;
				};
				colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
				font = "EtelkaNarrowMediumPro";
				size = 0.06*safeZoneH;
				type = 13;
				style = 0;
				text="";
			};
		};
	};
};
///////

now  delete this  whole line: (in description.ext)


#include "\z\addons\dayz_code\gui\description.hpp"

3-custom fn_selfactions.sqf  ( HERE YOU NEED MADE A CUSTOM FN_SELFACTIONS.sqf and to make it, you also need made  a custom compiles.sqf)

so before proceed made this:

  Reveal hidden contents

A-open \@DayZ_Epoch\addons\dayz_code\init\  and copy this file:  compiles.sqf  (to open dayz_code.pbo you will need pbo manager.)

B- go to: ............\MPMissions\DayZ_Epoch_11.Chernarus\
and create a new folder called "custom". Then paste inside the compiles.sqf

C-open \@DayZ_Epoch\addons\dayz_code\compiles\ and copy fn_selfactions.sqf

D-go to: ............\MPMissions\DayZ_Epoch_11.Chernarus\custom\ and paste fn_selfactions.sqf

E-open your init.sqf and find this line:



call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";

replace by:



call compile preprocessFileLineNumbers "custom\compiles.sqf";

F-Open your new custom compiles.sqf (the one located in custom folder)

find this line:



fnc_usec_selfActions =           compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selfActions.sqf";

replace by:



fnc_usec_selfActions =           compile preprocessFileLineNumbers "custom\fn_selfActions.sqf";

 

3-Once you have your new custom compiles.sqf and fn_Selfactions.. proceed with step 3. Open your new fn_selfactions (in custom folder)

  Reveal hidden contents

A-Find:



/*
	if(_typeOfCursorTarget == "TOW_DZE") then {
		if (s_player_towing < 0) then {
			if(!(_cursorTarget getVariable ["DZEinTow", false])) then {
				s_player_towing = player addAction [localize "STR_EPOCH_ACTIONS_ATTACH" "\z\addons\dayz_code\actions\tow_AttachStraps.sqf",_cursorTarget, 0, false, true];				
			} else {
				s_player_towing = player addAction [localize "STR_EPOCH_ACTIONS_DETACH", "\z\addons\dayz_code\actions\tow_DetachStraps.sqf",_cursorTarget, 0, false, true];				
			};
		};
	} else {
		player removeAction s_player_towing;
		s_player_towing = -1;
	};
	*/

and below Add this line:



if (!_isAlive && {(_cursorTarget isKindOf "zZombie_base")}) then {
_wasguted = _cursorTarget getVariable["wasguted",false];

if (!_wasguted) then {
if ("ItemKnife" in _itemsPlayer) then {
if (s_player_zhide2 < 0) then {
s_player_zhide2 = player addAction [format["<t color='#0096ff'>SmearGutsOnYou</t>"], "zedutility\walkamongstthedead\smear_guts.sqf",_cursorTarget,0, false,true];
};
          
  		
} else {
	
        player removeAction s_player_zhide2;
        s_player_zhide2 = -1;	
		};
		};
_lootzed = _cursorTarget getVariable["lootzed",false];		
if (!_lootzed) then {		
if (s_player_zhide3 < 0) then {
s_player_zhide3 = player addAction [format["<t color='#0096ff'>CheckZed</t>"], "zedutility\walkamongstthedead\lootzed.sqf",_cursorTarget,0, false,true];
};
} else {
player removeAction s_player_zhide3;
s_player_zhide3 = -1;	
};	

};	

B-Find:



} else {
	//Engineering

below add:_



player removeAction s_player_zhide2;
s_player_zhide2 = -1;
player removeAction s_player_zhide3;
s_player_zhide3 = -1;

4-Here you need made a custom variables.sqf (same as you did with selfactuions and compiles.sqf)

So go to  ...\@DayZ_Epoch\addons\dayz_code\init\  and copy  variables.sqf

Now paste variables.sqf in "custom" folder

Open your init.sqf  find this line


call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";

replace by:


call compile preprocessFileLineNumbers "custom\variables.sqf";

4-Now in this new variables.sqf (the one into custom folder)

  Reveal hidden contents

Find:



//Player self-action handles
dayz_resetSelfActions = {

below paste



 s_player_zhide2 = -1;
s_player_zhide3 = -1;

5-Download from here:  http://www.mediafire.com/file/9d74axmfym1tz16/zedutility.rar

and place the "zedutility" folder into ...\Mpmissions\DayZ_Epoch_11.Chernarus\

6- Open the config.sqf located in \zedutility\walkamongstthedead\  to add more or less time to your cammo before he wash automatically


DZ_ZCAMO_USE_TIME = 30;//30 seconds for default.

for example


DZ_ZCAMO_USE_TIME = 120;//for 2 minutes

ok, I just scrolled down and saw this. I think this is gonna fix my problem... 

Link to comment
Share on other sites

  • 1 month later...

Hello all,

I am trying to get this installed, however I keep getting this error. Google hasn't helped either.

 

ErrorMessage: File mpmissions\DayZ_Epoch_11.Chernarus\description.ext, line 62: /zCamoStatusGUI/controls.zCamoIcon: Undefined base class 'RscPictureGUI'

 

Here is my description.ext

Quote

respawn = "BASE";
respawnDelay = 0;
respawnDialog = 0;
onLoadMission = "DayZ Epoch Chernarus";
OnLoadIntro = "Welcome to Chernarus";
OnLoadIntroTime = 0;
OnLoadMissionTime = 0;
disabledAI = 1;
disableChannels[] = {0,2,6};
enableItemsDropping = 0;
onPauseScript = "";
briefing = 0;
debriefing = 0;

titleParam1 = "AutoLogin:";
valuesParam1[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 31};
defValueParam1 = 10; //auto login time limit in seconds, set value to 31 to disable auto login
textsParam1[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, "Disabled"};

loadScreen = "\z\addons\dayz_code\gui\loadingscreen.paa";

class Header
{
    gameType = COOP;            //DM, Team, Coop, ...
    minPlayers = 1;             //min # of players the mission supports
    maxPlayers = 100;           //Max # of players the mission supports
};

aiKills = 1;
diagRadio = 1;
diagHit = 1;

class CfgSounds
{
    sounds[] =
    {
        Radio_Message_Sound
        ,IWAC_Message_Sound
    };
    class Radio_Message_Sound
    {
        name="Radio_Message_Sound";
        sound[] = {scripts\radio\radio.ogg,0.4,1};
        titles[] = {};
    };
    class IWAC_Message_Sound
    {
        name="IWAC_Message_Sound";
        sound[] = {scripts\radio\IWACsound.ogg,0.4,1};
        titles[] = {};
    };
};

class RscTitles {
    class zCamoStatusGUI {
        idd = -1;
        fadeout=0;
        fadein=0;
            onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
            duration = 10e10;
            name= "zCamoGui";
            controlsBackground[] = {};
            objects[] = {};
            class controls {
                class zCamoIcon:RscPictureGUI {
                idc = 1;
                text="scripts\zedutility\walkamongstthedead\zombie.paa";
                x="0.958313 * safezoneW + safezoneX";
                y="0.43 * safezoneH + safezoneY";
                w=0.059999999;
                h=0.079999998;
                colorText[]={1,1,1,1};
                };
            };
        };
    #include "dayz_code\configs\zschud.hpp"
    class wm_disp {
        idd = -1;
        onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
        fadein = 0;
        fadeout = 0;
        duration = 10e10;
        controlsBackground[] = {};
        objects[] = {};
        class controls {
            class wm_text2 {
                idc = 1;
                x = safeZoneX+0.027;//safeZoneW*0.01;
                y = safeZoneY+safeZoneH-0.16;
                w = 0.151*safeZoneH;
                h = 0.057*safeZoneH;
                shadow = 2;
                class Attributes {
                    font = "EtelkaNarrowMediumPro";
                    color = "#24FFFFFF";
                    align = "left"; // put "center" here if you want some background
                    valign = "middle";
                    shadow = 2;
                };
                colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
                font = "EtelkaNarrowMediumPro";
                size = 0.06*safeZoneH;
                type = 13;
                style = 0;
                text = "";
            };
        };
    };    
};

#include "dayz_code\gui\description.hpp"
#include "\z\addons\dayz_code\Configs\CfgLoot\CfgLoot.hpp"
#include "dayz_code\Configs\CfgServerTrader.hpp"

#include "\z\addons\dayz_code\Configs\RscDisplay\ZSCdefines.hpp"
#include "dayz_code\configs\RscDisplay\advancedTrading.hpp"
#include "dayz_code\configs\zscdialogs.hpp"
#include "dayz_code\configs\zscATMdialogs.hpp"

 

 

Thanks in advance!

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
  • Discord

×
×
  • Create New...