Jump to content

[Release] Deploy Bike Extendet


oOSmokyOo

Recommended Posts

Being new to Epoch Server admin. And New to Dayz Mod.

What does "Deploy" actually mean?

How would you deploy these?

They look very interesting, I love the sound of the extra options.

 

Thanks for the insight.

Link to comment
Share on other sites

Adding this script give me tons of problems.  See below:

13:35:11 Error in expression <"MMT_Civ","ParachuteWest","ParachuteC"];​
};

if(!isDedicated) then {

dayz_sp>
13:35:11   Error position: <​
};

if(!isDedicated) then {

dayz_sp>
13:35:11   Error Invalid number in expression
13:35:11 File mpmissions\DayZ_Epoch_17.Chernarus\fixes\variables.sqf, line 694
13:35:11 Error in expression <"MMT_Civ","ParachuteWest","ParachuteC"];​
};

if(!isDedicated) then {

dayz_sp>
13:35:11   Error position: <​
};

if(!isDedicated) then {

dayz_sp>
13:35:11   Error Invalid number in expression
13:35:11 File mpmissions\DayZ_Epoch_17.Chernarus\fixes\variables.sqf, line 694
13:36:32 Error in expression <amage _damage;

if ((typeOf _object) in dayz_allowedObjects) then {
if (DZE_GodM>
13:36:32   Error position: <dayz_allowedObjects) then {
if (DZE_GodM>
13:36:32   Error Undefined variable in expression: dayz_allowedobjects
13:36:32 File z\addons\dayz_server\system\server_monitor.sqf, line 174
13:36:35 File z\addons\dayz_server\system\server_monitor.sqf, line 174
13:36:35 Error in expression <unt _intentory > 0) then {
if (_type in DZE_LockedStorage) then {

_object setVa>
13:36:35   Error position: <DZE_LockedStorage) then {

_object setVa>
13:36:35   Error Undefined variable in expression: dze_lockedstorage
13:36:35 File z\addons\dayz_server\system\server_monitor.sqf, line 188
13:36:35 Error in expression <bject_damage;
} else {
if (!(_object in needUpdate_objects)) then {

needUpdate_>
13:36:35   Error position: <needUpdate_objects)) then {

needUpdate_>
13:36:35   Error Undefined variable in expression: needupdate_objects
13:36:35 File z\addons\dayz_server\compile\server_updateObject.sqf, line 285
13:36:35 Error in expression <"));
_isbuildable = (typeOf _object) in dayz_allowedObjects;
_isNotOk = false;
_>
13:36:35   Error position: <dayz_allowedObjects;
_isNotOk = false;
_>
13:36:35   Error Undefined variable in expression: dayz_allowedobjects
13:36:35 File z\addons\dayz_server\compile\server_updateObject.sqf, line 23
13:36:35 Error in expression <;
_dam = _x select 1;
if (_selection in dayZ_explosiveParts and _dam > 0.8) then>
13:36:35   Error position: <dayZ_explosiveParts and _dam > 0.8) then>
13:36:35   Error Undefined variable in expression: dayz_explosiveparts
13:36:35 File z\addons\dayz_server\system\server_monitor.sqf, line 242
13:36:35 Error in expression <tFuel _fuel;

if (!((typeOf _object) in dayz_allowedObjects)) then {


_object c>
13:36:35   Error position: <dayz_allowedObjects)) then {


_object c>
13:36:35   Error Undefined variable in expression: dayz_allowedobjects
13:36:35 File z\addons\dayz_server\system\server_monitor.sqf, line 248
13:36:35 Error in expression <nt serverVehicleCounter,_type];
};
};


PVDZE_serverObjectMonitor set [count PVD>
13:36:35   Error position: <PVDZE_serverObjectMonitor set [count PVD>
13:36:35   Error Undefined variable in expression: pvdze_serverobjectmonitor
13:36:35 File z\addons\dayz_server\system\server_monitor.sqf, line 265
13:36:35 Error in expression <bject_damage;
} else {
if (!(_object in needUpdate_objects)) then {

needUpdate_>
13:36:35   Error position: <needUpdate_objects)) then {

needUpdate_>

Apparently there's more that has to be done to create exceptions for those vehicles.

Link to comment
Share on other sites

Save this as deploy.sqf and use the right-click menu code to execute the script:

if (false) then { 
    cutText [format["You are in combat and cannot build a bike."], "PLAIN DOWN"];
} else {
	player removeAction s_player_deploybike;
	closeDialog 602;
	player removeWeapon "ItemToolbox";
	player playActionNow "Medic";
	r_interrupt = false;
	_dis=10;
	_sfx = "repair";
	[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
	[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
	
	sleep 6;
	
	_object = "MMT_Civ" createVehicle (position player);
	_object setVariable ["ObjectID", "1", true];
	_object setVariable ["ObjectUID", "1", true];
	
	player reveal _object;

	cutText [format["You've used your toolbox to build a bike! How magical!"], "PLAIN DOWN"];
	
	r_interrupt = false;
	player switchMove "";
	player playActionNow "stop";
	
	sleep 10;
	
	cutText [format["Warning: Spawned bikes DO NOT SAVE after server restart!"], "PLAIN DOWN"];
	
};
//bike deploy script by Player2 - OpenDayz Release Coming Soon!
Link to comment
Share on other sites

In gear MH6J_EP1 have STANAG`s!

 

 

FIX:

 

add this

//F507DMT Fix, no mags and weapon in Vehicle
clearWeaponCargoGlobal _object;
clearMagazineCargoGlobal _object;
//F507DMT Fix, no mags and weapon in Vehicle

after this

_object = "MH6J_EP1" createVehicle (position player);
_object setVariable ["ObjectID", "1", true];
_object setVariable ["ObjectUID", "1", true];

 

 

 

ps

if u wont sell MH6J_EP1

change 

_object = "MH6J_EP1" createVehicle (position player);
_object setVariable ["ObjectID", "1", true];
_object setVariable ["ObjectUID", "1", true];

on

_cansell = str(round(random 999999));
_object = "MH6J_EP1" createVehicle (position player);
_object setVariable ["ObjectID", _cansell, true];
_object setVariable ["ObjectUID", _cansell, true];
Link to comment
Share on other sites

My script

player can canсel deploy bike if he need:

private ["_finished","_finishedTime","_posplr","_dirplr","_object"];

if (dayz_combat == 1) then {
    cutText [format["Вы не можете собирать велосипед в бою!"], "PLAIN DOWN"];
} else {
	player removeAction s_player_deploybike;
	player removeWeapon "ItemToolbox";
	player removeMagazine "PartGeneric";
	
	player playActionNow "Medic";
	[player,"repair",0,false,10] call dayz_zombieSpeak;
	[player,10,true,(getPosATL player)] spawn player_alertZombies;

	r_interrupt = false;
	r_doLoop = true;

	_finished = false;
	_finishedTime = diag_tickTime+3;

	while {r_doLoop} do {
		if (diag_tickTime >= _finishedTime) then {
			r_doLoop = false;
			_finished = true;
		};
		if (r_interrupt) then {
			r_doLoop = false;
		};
		sleep 0.1;
	};

	if (_finished) then {
		_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
		_dirplr = getDir player;

		_object = "MMT_Civ" createVehicle (_posplr);
		_object setVariable ["SpawnedBike",1,true];
		_object setVariable ["Sarge",1,true];

		player reveal _object;

		cutText [format["Вы использовали набор инструментов и запчасти чтобы собрать велосипед"], "PLAIN DOWN"];
		sleep 10;
		cutText [format["ВНИМАНИЕ: Велосипед не сохранится после рестарта!"], "PLAIN DOWN"];
	} else {
		r_interrupt = false;
		player switchMove "";
		player playActionNow "stop";
		player addWeapon "ItemToolbox";
		player addMagazine "PartGeneric";
		cutText ["\n\n Постройка велосипеда отменена", "PLAIN DOWN"];
	};
};
Link to comment
Share on other sites

 

My script

player can canсel deploy bike if he need:

private ["_finished","_finishedTime","_posplr","_dirplr","_object"];

if (dayz_combat == 1) then {
    cutText [format["Вы не можете собирать велосипед в бою!"], "PLAIN DOWN"];
} else {
	player removeAction s_player_deploybike;
	player removeWeapon "ItemToolbox";
	player removeMagazine "PartGeneric";
	
	player playActionNow "Medic";
	[player,"repair",0,false,10] call dayz_zombieSpeak;
	[player,10,true,(getPosATL player)] spawn player_alertZombies;

	r_interrupt = false;
	r_doLoop = true;

	_finished = false;
	_finishedTime = diag_tickTime+3;

	while {r_doLoop} do {
		if (diag_tickTime >= _finishedTime) then {
			r_doLoop = false;
			_finished = true;
		};
		if (r_interrupt) then {
			r_doLoop = false;
		};
		sleep 0.1;
	};

	if (_finished) then {
		_posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
		_dirplr = getDir player;

		_object = "MMT_Civ" createVehicle (_posplr);
		_object setVariable ["SpawnedBike",1,true];
		_object setVariable ["Sarge",1,true];

		player reveal _object;

		cutText [format["Вы использовали набор инструментов и запчасти чтобы собрать велосипед"], "PLAIN DOWN"];
		sleep 10;
		cutText [format["ВНИМАНИЕ: Велосипед не сохранится после рестарта!"], "PLAIN DOWN"];
	} else {
		r_interrupt = false;
		player switchMove "";
		player playActionNow "stop";
		player addWeapon "ItemToolbox";
		player addMagazine "PartGeneric";
		cutText ["\n\n Постройка велосипеда отменена", "PLAIN DOWN"];
	};
};

а куда потом привязать его ? я имею ввиду. стоит этот аддон , а куда данный скрипт добавить ?(для переноса на тулбокс как я понимаю всё...)

Link to comment
Share on other sites

  • 2 weeks later...

Hey guys, this looks like an awesome mod but I'm concerned about one of the issues raised in the repllies (deleting whatever is nearby), also I see several suggestions about how to make it better since the original post was last updated, does anyone have a solid working config of this that they could post? Preferably with the right click on toolbox option as that's way better than a scroll wheel option that's there the whole time.

 

Much appreciated for everyones work making awesome little mods like this.

 

Thanks. Havoc.

Link to comment
Share on other sites

Hey guys, this looks like an awesome mod but I'm concerned about one of the issues raised in the repllies (deleting whatever is nearby), also I see several suggestions about how to make it better since the original post was last updated, does anyone have a solid working config of this that they could post? Preferably with the right click on toolbox option as that's way better than a scroll wheel option that's there the whole time.

 

Much appreciated for everyones work making awesome little mods like this.

 

Thanks. Havoc.

I'm going to be testing it myself but If op did change anything I'm sure he would have updated his files

 

EDIT: I just looked at the little bird pack.sqf and he has updated it to what Cen suggested so I'm guessing its alright

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
  • Advertisement
×
×
  • Create New...