[Release] shinySonic aka SchwEde: 100% working Booby Traps for Base Building 1.2

SchwEde

OpenDayZ Rockstar!
Boob Traps for Base Building 1.2
Version 1.0

What it does....
Blow the Crap out of People who try to break in in your Base!
They work after restart and blow up on every player, even on yourself, so be carefull!
Tested on 1.8.0.3 DayZ Vanilla, but should be working on any other mod too.

Requirements
- Texteditor (e.g. Notepad++)
- some Brain
- mission.sqm
- init.sqf
- custom variables.sqf
- build_list (located in your dayz_mission.pbo\dayz\external\dy_work)
- server_function.sqf (located in your dayz_server.pbo)
- some scripting skills
  • Moderate = Orange >10 <30
Installation Steps -

dayz_mission.pbo:
First we start with the mission.sqm:

search for
Code:
class Markers

and add above:

Code:
class Sensors
    {
        items=1;
class Item0
{
position[]={3366.8369,19,3599.7954};
a=0;
b=0;
repeating=1;
interruptable=1;
age="UNKNOWN";
text="Startet Skript MinenSprengen";
expCond="true";
expActiv="temp = execVM ""Scripts\MinenSprengen.sqf""";
class Effects
{
};
};
};

if you already have class Sensors in your mission.sqm then just add this item to it.

mission.sqm done

Next file will be ini.sqf

search for
Code:
if (!isDedicated) then {

and add this right after:
Code:
[] execVM "Scripts\MinenSprengen.sqf";

init.sqf done

If you have an folder for your Scripts put it in there and change the paths!
If not make a folder named Scripts and place there this file:

MinenSprengen.sqf:
Code:
 //Minen sprengen von shinySonic aka SchwEde
 
if (! local player) exitWith {};
 
private ["_mine","_playerID","_aktionID","_bombe","_id","_uid"];
 
while {true} do
  {
    //Abfrage ob Player unter 2 Meter von einer Mine entfernt ist
//Checks if a Player is under 2 meters from the mine
    _mine = position player nearObjects ["Land_IED_v4_PMC",2];
    if (count _mine > 0) then
      {
_mine = _mine select 0;
_id = _mine getVariable ["ObjectID", "0"];
_uid = _mine getVariable ["ObjectUID", "0"];
_bombe = "grenade" createVehicle position _mine;
sleep 1;
PVDZ_obj_Delete = [_id,_uid];
publicVariableServer "PVDZ_obj_Delete";
deleteVehicle _mine
      };
    sleep 0.5
  }

You can change the distance and the loop time to whatever you like.

MinenSprengen.sqf done

Next Step edit the build_list


Search for:

"Grave" and replace it with:

Code:
Land_IED_v4_PMC

now you see in the same line this:
Code:
[[0,2.5,.1],[0,2,0]

change it to this:
Code:
[[0,5,.1],[0,2,0]
whatch out for the comma!

so the mines are further from the builder and wont donate while he build them

build_list done

Last step on the mission.pbo is the custom variables.sqf

search for "Grave" and replace it with:

Code:
Land_IED_v4_PMC

varibales.sqf done

Download this image:

*klick*

and put it in your dayz_mission.pbo\buildRecipeBook\images\buildable folder
dayz_mission.pbo done!
 
Next Steps:

dayz_server.pbo

server_functions.sqf

make the same changes you already did in the build_list (see post#1)!

server_functions.sqf done

dayz_server.pbo done!


next Step:

Database: Go to your deployable-Table

Search the Item Grave and edit the name to:
Code:
Land_IED_v4_PMC

Done!

Credits:
Vienna, OpenDayZ.net Community and the guys who taught me some scripting :)

Donations :)

 
Back
Top