Jump to content

THE Z-IMS


Recommended Posts

HELLO. THIS IS THE SECOND VERSION TO TEST. ITS FULLY WORKING JUST RIGHT NOW. BUT NEEDS SOME TESTS IN REAL SERVERS. SO I GONNA POST  HERE TO EVERYONE WHO WANNA USE THIS MOD IN HES SERVER AND WANNA SHARE HERE ABOUT HIS EXPERIENSE (cause lag, rpt errors, etc).

https://ibb.co/jkBAo5

*WHAT ITS THIS

*Players need piss: ( every time you drink thers a chance to need pee. Get a tree to make pee)

*Players need poop: ( every time you eat thers a chance to need poop. Get a tree to make pee) (use toilet paper and waterbottles to get a better clean)

*Players need fix tooths: ( every time you drink or eat thers a chance to get a broken/rotten tooth) (use a knife, string and nails to fix your tooth) (use antibacterial wipe and antibiotics to get a better fix)

*Players need sex:  (every time players spawns thers a chance to need sex) (sex alone, sex with death animals, dead zeds, others players). (get a tent to masturbate if u don like zeds,humans or animals)

*Woman characters can be pregnant: (pregnancy gonna made loose blood)

*Womans need abort her child: (you will need the sames items to fix tooth to made your abort)

*Randoms Heart attacks on players: (get epinephrine to stop the heart attack)

 

Tnks to @iben (take a look on this guy i think he gonna be the next zupa here) for find some errors and fix them. Tnks to @Hooty@S4M  @Kimarik for tests and ideas They was very helpfull. Tnks to @oldmatechoc for helpme with icon positions. And Tnks to @Sandbird this idea becomes to me when i was updating his walk amongst dead mod, So this mod have a strong base on his code.

 

DOWNLOAD: http://www.mediafire.com/file/o9eb7h99202zv5s/zims.rar

 

UNINSTALL THE FIRST TEST REALIZE  (only if u already install it) TO GET THE LAST VERSION.

Spoiler

1-Open your init.sqf

Spoiler

remove this line



call compile preprocessFileLineNumbers "scripts\othersystem\init_pisspoo.sqf";

 

 

 

2-Open your description.ext

Spoiler

Remove all this lines:



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;
};

and:



	class pissGUI {
	idd = -1;
	fadeout=0;
	fadein=0;
		onLoad = "uiNamespace setVariable ['pissGUI_display', _this select 0]";
		duration = 10e10;
		name= "pissnewgui";
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class pissIcon:RscPictureGUI {
			idc = 1;
			text="scripts\othersystem\pissicon.paa";
			x = 0 * safezoneW + safezoneX;// lower me to drag left				
            y = 0.330 * safezoneH + safezoneY; 
            w = 0.075;
            h = 0.10;
			colorText[]={1,1,1,1};
			};
		};
	};
	class pooGUI {
	idd = -1;
	fadeout=0;
	fadein=0;
		onLoad = "uiNamespace setVariable ['pooGUI_display', _this select 0]";
		duration = 10e10;
		name= "poonewgui";
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class pooIcon:RscPictureGUI {
			idc = 1;
			text="scripts\othersystem\pooIcon.paa";
			x = 0 * safezoneW + safezoneX;// lower me to drag left				
            y = 0.130 * safezoneH + safezoneY; 
            w = 0.075;
            h = 0.10;
			colorText[]={1,1,1,1};
			};
		};
	};
	class thootGUI {
	idd = -1;
	fadeout=0;
	fadein=0;
		onLoad = "uiNamespace setVariable ['thootGUI_display', _this select 0]";
		duration = 10e10;
		name= "thootnewgui";
		controlsBackground[] = {};
		objects[] = {};
		class controls {
			class thootIcon:RscPictureGUI {
			idc = 1;
			text="scripts\othersystem\toothIcon.paa";
			x = 0 * safezoneW + safezoneX;// lower me to drag left				
            y = 0.200 * safezoneH + safezoneY; 
            w = 0.075;
            h = 0.10;
			colorText[]={1,1,1,1};
			};
		};
	};

now find this line: and remove the call



onPauseScript = "scripts\othersystem\noleave.sqf";

so its looks



onPauseScript = "";

 

 

3-Custom Compiles.sqf

Spoiler

find:



player_consume = compile preprocessFileLineNumbers "scripts\othersystem\player_consume.sqf";

replace by the default path



player_consume = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_consume.sqf";

 

4- remove "othersystem" folder from mpmissions\your instance\scripts\

 

 

 

*INSTALL THE LAST VERSION

 

YOU GONNA NEED A CUSTOM VARIABLE.sqf and CUSTOM COMPILES.sqf and CUSTOM FN_SELFACTIONS.sqf   (i guess you alredy have one or know how to do it.)

1-Open your init.sqf and at VERY BOTTOM PASTE:

Spoiler

A-If you already have custom PublicEH.sqf Skip and proceed with step B

Find this line:


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

replace by:


call compile preprocessFileLineNumbers "dayz_code\init\publicEH.sqf";

*Now go to \@Dayz_Epoch\dayz_code.pbo\init\ and copy the publicEH.sqf into mpmissions\yourinstance\dayz_code\init\

 

B-At bottom of init.sqf paste:


call compile preprocessFileLineNumbers "scripts\zims\functions\init_zims.sqf";

 

2-Open your description.ext  
 

Spoiler

A-Below this line:


class RscTitles {

paste:


#include "scripts\zims\icons\zims_defines.hpp" 

B-Replace this line:


onPauseScript = "";

by:


onPauseScript = "scripts\zims\functions\noleave.sqf";

 

3-Custom Compiles.sqf

Spoiler

Find this line :


player_consume = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_consume.sqf";

and replace by:


player_consume = compile preprocessFileLineNumbers "scripts\zims\eat_drink_scripts\player_consume.sqf";

If u dont have this line in your custom compiles just add it into If !isdedicated  section.

Example:


if (!isDedicated) then {
	diag_log "Loading custom client compiles";
	
	fnc_usec_selfactions = compile preprocessFileLineNumbers "dayz_code\compile\fn_selfActions.sqf";
	player_consume = compile preprocessFileLineNumbers "scripts\zims\eat_drink_scripts\player_consume.sqf";
};

 

4-In your variables.sqf (custom)

Spoiler

Find:


dayz_resetSelfActions = {

just below paste:


s_player_hattack = -1;//zims heartattack
s_player_makepiss = -1;//zims piss
s_player_makepoo = -1;//zims poop
s_player_fixthoot = -1;//zims tooth
s_player_pregnant = -1;//zims pregnant
s_player_hsex = -1;//zims human sex
s_player_zsex = -1;//zims zed sex
s_player_asex = -1;//zims animal sex
s_player_nsex = -1;//zims touchmyself

Now above of the same line:  this line


dayz_resetSelfActions = {

add :


dayz_sex = [];//zims publicvariable 

 

5-Changing your custom PublicEH.sqf

Spoiler

Find this line:


"PVDZ_obj_Fire"   addPublicVariableEventHandler {(_this select 1) spawn BIS_Effects_Burn};

just below paste:


"dayz_sex"    addPublicVariableEventHandler {(_this select 1) execVM "scripts\zims\sexscripts\sexhumanvictim.sqf"}; 


 

6-In your custom fn_selfactions.sqf

Spoiler

A-paste:


///////////ZIMS TOUCH MYSELF
if (needsex) then {
if (_istypeTent) then {
if (s_player_nsex < 0) then {
s_player_nsex = player addAction [("<t color=""#3399cc"">" + ("Touch my self") + "</t>"), "scripts\zims\sexscripts\sexalone.sqf"];};
} else {
player removeAction s_player_nsex;
s_player_nsex = -1;
};
};
//////END ZIMS

above of:


	//Study Body
	if (_cursorTarget getVariable["bodyName",""] != "") then {

B- Paste:


////ZIMS SEX WITH ANIMALS ZEDS HUMANS 

if (needsex) then {
if (!_isAlive && {(_cursorTarget isKindOf "Animal")}) then {
if (s_player_asex < 0) then {
s_player_asex = player addAction [("<t color=""#3399cc"">" + ("fuck animal!") + "</t>"), "scripts\zims\sexscripts\sexanimal.sqf",cursorTarget, 0, false, true, "",""];};
} else {
player removeAction s_player_asex;
s_player_asex = -1;
};

_zfked = _cursorTarget getVariable["zfked",false];
if (!_zfked) then { 
if (!_isAlive && {(_cursorTarget isKindOf "zZombie_base")}) then {
if (s_player_zsex < 0) then {
s_player_zsex = player addAction [format["<t color='#0096ff'>fuck zombie</t>"], "scripts\zims\sexscripts\sexzed.sqf",_cursorTarget,0, false,true];};
} else {
player removeAction s_player_zsex;
s_player_zsex = -1;
};
};


_readytofuck =  cursorTarget getVariable ["readytofuck", false];
if (!_readytofuck) then {
if (_isAlive && {!(_cursorTarget isKindOf "zZombie_base")} && {!(_cursorTarget isKindOf "Animal")} && {!(_typeOfCursorTarget in serverTraders)} && {_isMan}) then {
if (s_player_hsex < 0) then {
s_player_hsex = player addAction [format["<t color='#3399cc'>make love</t>"], "scripts\zims\sexscripts\sexhuman2.sqf",_cursorTarget,0, false,true];};
//s_player_hsex = player addAction [("<t color=""#3399cc"">" + ("make love!") + "</t>"), "scripts\zims\sexscripts\sexhuman.sqf",cursorTarget, 0, false, true, "",""];
} else {
player removeAction s_player_hsex;
s_player_hsex = -1;
};
};
};

///////ZIMS ENDS

above of:


// All Traders
	if (_isMan && {!(isPlayer _cursorTarget)} && {_typeOfCursorTarget in serverTraders} && {!_isPZombie}) then {

 

C-Below of :


} else {
	//Engineering

paste:


player removeAction s_player_nsex;
s_player_nsex = -1;
player removeAction s_player_asex;
s_player_asex = -1;
player removeAction s_player_zsex;
s_player_zsex = -1;
player removeAction s_player_hsex;
s_player_hsex = -1;

D-Now at very bottom paste:


if (pregnant) then {
if ("ItemKnife" in _itemsPlayer) then {
if (s_player_pregnant < 0) then {
s_player_pregnant = player addAction [("<t color=""#3399cc"">" + ("Abort my child") + "</t>"), "scripts\zims\sexscripts\abort.sqf"];};
} else {
player removeAction s_player_pregnant;
s_player_pregnant = -1;
};
};


if (heartattack) then {
if ("ItemEpinephrine" in magazines player) then {
if (s_player_hattack < 0) then {
s_player_hattack = player addAction [("<t color=""#3399cc"">" + ("Prevent HeartAttack") + "</t>"), "scripts\zims\others\preventheart.sqf"];};
} else {
player removeAction s_player_hattack;
s_player_hattack = -1;
};
};

 

7- Paste the zims folder into mpmissions\yourinstance\scripts\

Link to comment
Share on other sites

Sounds great ........ but why the fuck animals or zeds? Hooker1 to 5 and RU_Hooker1 to 5.

I have created a a row of 4 hookers next to Lenzburg Traders (Napf) and every Hooker has her own S1203 Van nearby :tongue:

Unfortunate they have no animation and don´t take coins :unsure:

 

Link to comment
Share on other sites

27 minutes ago, Anhor said:

Sounds great ........ but why the fuck animals or zeds? Hooker1 to 5 and RU_Hooker1 to 5.

I have created a a row of 4 hookers next to Lenzburg Traders (Napf) and every Hooker has her own S1203 Van nearby :tongue:

Unfortunate they have no animation and don´t take coins :unsure:

 

hooker , vans.. sounds great

Link to comment
Share on other sites

52 minutes ago, S4M said:

Hi all, To complement it I think it would be well to put the blood group too. :biggrin:

To Epoch? It´s allready in. Just change this in your init.sqf to false

dayz_classicBloodBagSystem = true; // disable blood types system and use the single classic ItemBloodbag

Or did you mean to Standalone? They have it since a long time.

Link to comment
Share on other sites

@gernika glad to know you and your players like it :)   about your question..

yes  thers a fully progress.. i have done the new aditions.

Now players need sex.  To have sex they can:  find a tent and "touch myself" .. sex with death animals/zeds.  Sex with others players.

If they have sex with animals or zeds.. thers a risk of infection. 

If they have sex with players and the player are a woman... this woman suffer a risk to get pregnant.

if she are pregnant.. they need made an abort (this is just why i dont have a babe to spawn).

All of this is ready with the help of @iben.. so after a few quick tests,, i gonna upload it for the epoch community.

Onces i upload it,,, gonna keep the expansion with the heart attacks, colera,, and if anyone here have suggestion... please!! write here

 

Link to comment
Share on other sites

  • 3 weeks later...

Hi got this Error in player RPT log

 

Spoiler


if (pregnant) then {
if ("ItemKnife" in _ite>
  Error position: <pregnant) then {
if ("ItemKnife" in _ite>
  Error Nicht definierte Variable in Ausdruck: pregnant
File mpmissions\__CUR_MP.panthera2\dayz_code\compile\fn_selfActions.sqf, line 1305
"infiSTAR.de - randvar26 created (18.366)"
Error in expression <lfActions", diag_ticktime, false];

if (pregnant) then {
if ("ItemKnife" in _ite>
  Error position: <pregnant) then {
if ("ItemKnife" in _ite>
  Error Nicht definierte Variable in Ausdruck: pregnant
File mpmissions\__CUR_MP.panthera2\dayz_code\compile\fn_selfActions.sqf, line 1305
"Sent to server PVDZ_plr_LoginRecord: [76561198012810227, 1, 0, =SWBB= Kimarik]"
[]
"infiSTAR.de - randvar1 started (18.435)"
"player_forceSave called from fsm"
Error in expression <lfActions", diag_ticktime, false];

if (pregnant) then {
if ("ItemKnife" in _ite>
  Error position: <pregnant) then {
if ("ItemKnife" in _ite>
  Error Nicht definierte Variable in Ausdruck: pregnant
File mpmissions\__CUR_MP.panthera2\dayz_code\compile\fn_selfActions.sqf, line 1305
Error in expression <lfActions", diag_ticktime, false];
 

 

Link to comment
Share on other sites

Just now, Kimarik said:

Hi got this Error in player RPT log

 

  Hide contents


if (pregnant) then {
if ("ItemKnife" in _ite>
  Error position: <pregnant) then {
if ("ItemKnife" in _ite>
  Error Nicht definierte Variable in Ausdruck: pregnant
File mpmissions\__CUR_MP.panthera2\dayz_code\compile\fn_selfActions.sqf, line 1305
"infiSTAR.de - randvar26 created (18.366)"
Error in expression <lfActions", diag_ticktime, false];

if (pregnant) then {
if ("ItemKnife" in _ite>
  Error position: <pregnant) then {
if ("ItemKnife" in _ite>
  Error Nicht definierte Variable in Ausdruck: pregnant
File mpmissions\__CUR_MP.panthera2\dayz_code\compile\fn_selfActions.sqf, line 1305
"Sent to server PVDZ_plr_LoginRecord: [76561198012810227, 1, 0, =SWBB= Kimarik]"
[]
"infiSTAR.de - randvar1 started (18.435)"
"player_forceSave called from fsm"
Error in expression <lfActions", diag_ticktime, false];

if (pregnant) then {
if ("ItemKnife" in _ite>
  Error position: <pregnant) then {
if ("ItemKnife" in _ite>
  Error Nicht definierte Variable in Ausdruck: pregnant
File mpmissions\__CUR_MP.panthera2\dayz_code\compile\fn_selfActions.sqf, line 1305
Error in expression <lfActions", diag_ticktime, false];
 

 

check if you have _itemsPlayer = items player;  in your custom fn_selfactions.sqf

also i see youre using infistar... check if u define the pregnant variable or whatever do you need to define about it in your infi. (sory i dont have infi so dont know about it)

Link to comment
Share on other sites

  • 3 months later...
5 hours ago, saskiwi said:

have on my server trying to get hookers to work not getting scroll option i also noticed the download i got may have been missing a script there is a call for 

"scripts\zims\sexscripts\sexhuman.sqf" was not in the sexscript folder

 

last version uses sexhuman2.sqf

maybe you dont understand the idea... you only can have sex when the icon about sex appear.  and only with players. (if i remember well).

correct me :

*Players need sex:  (every time players spawns thers a chance to need sex) (sex alone, sex with death animals, dead zeds, others players). (get a tent to masturbate if u don like zeds,humans or animals)

not with hookers.

Link to comment
Share on other sites

On 14/09/2017 at 12:46 AM, juandayz said:

last version uses sexhuman2.sqf

maybe you dont understand the idea... you only can have sex when the icon about sex appear.  and only with players. (if i remember well).

correct me :

*Players need sex:  (every time players spawns thers a chance to need sex) (sex alone, sex with death animals, dead zeds, others players). (get a tent to masturbate if u don like zeds,humans or animals)

not with hookers.

ty was just looking at another post further up another person said he has put in hookers in vans thought id try something simular as the banker on my server gives the scroll option

 my players loving the script ty works grate

Link to comment
Share on other sites

1 hour ago, saskiwi said:

ty was just looking at another post further up another person said he has put in hookers in vans thought id try something simular as the banker on my server gives the scroll option

 my players loving the script ty works grate

Yn  Ok . Post youre hooker id if u need some help making this code about hookers :)

Link to comment
Share on other sites

"Hooker1","Hooker2","Hooker3","Hooker4" these are the ids for the ones that i have in game was going to try again later as just about to slp for work later i have been tring to work this out any help would be greatly appreciated im not worried about animations just having scroll to work is more than enough for us had alot of good feedback from players on this script tyvm 

Link to comment
Share on other sites

15 minutes ago, saskiwi said:

"Hooker1","Hooker2","Hooker3","Hooker4" these are the ids for the ones that i have in game was going to try again later as just about to slp for work later i have been tring to work this out any help would be greatly appreciated im not worried about animations just having scroll to work is more than enough for us had alot of good feedback from players on this script tyvm 

Ok dont worry..gonna write it for you ..not now cuz im not in my pc now. See ya

 

Link to comment
Share on other sites

create  sexhooker.sqf

Spoiler

player removeAction s_player_hooksex;
s_player_hooksex = -1;
disableuserinput true; disableuserinput true; disableuserinput true;
cutText ["TAKE YOUR TIME LIL PIG", "BLACK FADED"];
_humanity = player getVariable['humanity',0];
player setVariable['humanity',_humanity+20,true];
systemChat ("that hooker smell like haven");
sleep 5;
titleCut ["", "BLACK IN", 5];
disableuserinput false;disableuserinput false;disableuserinput false;
needsex = false;

 

in your custom fn_selfactions.sqf find:

if ((_cursorTarget isKindOf "Plastic_Pole_EP1_DZ") && {speed player <= 1}) then {

above paste:

if (needsex) then {
if (_cursorTarget isKindOf ["Hooker1","Hooker2","Hooker3","Hooker4"]) then {
if (s_player_hooksex < 0) then {
s_player_hooksex = player addAction [("<t color=""#3399cc"">" + ("Hooker Sex!") + "</t>"), "scripts\zims\sexscripts\sexhooker.sqf",cursorTarget, 0, false, true, "",""];};
} else {
player removeAction s_player_hooksex;
s_player_hooksex = -1;
};
};

find:

player removeAction s_player_nsex;
s_player_nsex = -1;
player removeAction s_player_asex;
s_player_asex = -1;
player removeAction s_player_zsex;
s_player_zsex = -1;
player removeAction s_player_hsex;
s_player_hsex = -1;

paste below:

player removeAction s_player_hooksex;
s_player_hooksex = -1;

in your custom variables.sqf find:

s_player_hattack = -1;//zims heartattack
s_player_makepiss = -1;//zims piss
s_player_makepoo = -1;//zims poop
s_player_fixthoot = -1;//zims tooth
s_player_pregnant = -1;//zims pregnant
s_player_hsex = -1;//zims human sex
s_player_zsex = -1;//zims zed sex
s_player_asex = -1;//zims animal sex
s_player_nsex = -1;//zims touchmyself

below paste:

s_player_hooksex = -1;//zims hooker sex

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...