Jump to content

[WIP] Nuke a random town from laptop.


Recommended Posts

I believe so i'm assuming my indest bases and locked vehicles will not blow up?

It shouldn't effect them.

Edit> locked vehicles it will sorry but It could more then likely be set up to ignore them.

Still loads of things like that to think about and add etc.

 

Edit2>

Ok it seems to destroy some buildables.

Need to work on this part and maybe set up options to enable/disable destruction and a option to whitelist objects.

Link to comment
Share on other sites

Ok I nearly put together a working test version for people to try I should have it done by tomorrow this is what it is looking like so far

https://www.youtube.com/watch?v=JRlqwDvdHms

 

You can enable, disable and set range for destruction, player deaths.

set blood loss amount per sec.

set the size of the radiation zone.

set any skins you want to block the blood loss in the radiation zone.

Link to comment
Share on other sites

server crashed 

in rpt:

ErrorMessage: File mpmissions\__cur_mp.Chernarus\Nuke\sound\sounds.hpp, line 22: .CfgSounds: Member already defined.
13:14:55 NetServer::finishDestroyPlayer(1912597088): DESTROY immediately after CREATE, both cancelled
13:16:12 NetServer::finishDestroyPlayer(46077738): DESTROY immediately after CREATE, both cancelled
13:16:33 NetServer::finishDestroyPlayer(416228473): DESTROY immediately after CREATE, both cancelled
13:16:35 NetServer::finishDestroyPlayer(2063004392): DESTROY immediately after CREATE, both cancelled
13:16:54 NetServer::finishDestroyPlayer(92699174): DESTROY immediately after CREATE, both cancelled
13:17:07 NetServer::finishDestroyPlayer(65554893): DESTROY immediately after CREATE, both cancelled
13:17:27 NetServer::finishDestroyPlayer(396286493): DESTROY immediately after CREATE, both cancelled
Link to comment
Share on other sites

when trying to activate taked publicvariable restraction #0 kick ( update from infistar today)

entered again and see  two laptop stands

again kick -entered - 3 laptop

log 

13.06.2014 01:19:25: pxmet_000 (0.0.0.0:000) guid- #0 "laptopMessages" = true

 

in rpt - nothing

Link to comment
Share on other sites

when trying to activate taked publicvariable restraction #0 kick ( update from infistar today)

entered again and see  two laptop stands

again kick -entered - 3 laptop

log 

13.06.2014 01:19:25: pxmet_000 (0.0.0.0:000) guid- #0 "laptopMessages" = true

 

in rpt - nothing

I didn't test with  infistar ill go do that now with today's update. and let ya know.

Link to comment
Share on other sites

all good ! but I find it strange that the building demolished before the explosion) and radiation appears before the explosion) 

also 200 meters from the explosion was vehicles - not damaged
 
and how i understand if cheater spawn laptop.than he can start that ?)
Edited by psychosis
Link to comment
Share on other sites

 

all good ! but I find it strange that the building demolished before the explosion) and radiation appears before the explosion) 

also 200 meters from the explosion was vehicles - not damaged
 
and how i understand if cheater spawn laptop.than he can start that ?)

 

I need to work on the timings. And they wont be able to spawn one and do it as it depends on the name of the laptop not the type of object and it will only go off one time anyway.

 

You can always edit the name of it to something different as well 

by editing line 5 of server_nuke.sqf and the part in fn_selfactions.sqf

 

Thanks for the feedback i will look into it all today.

 

You can also rename server_Nuke.sqf and put it in your server.pbo somewhere and put 

[] ExecVM "\z\addons\dayz_server\compile\newname.sqf"; (as an example) 

into server_monitor.sqf just above allowConnection = true; 

 

the worst they could do if they know how to is set it off one time.but the chances of most hackers knowing how would be slim.

Link to comment
Share on other sites

I do not completely work the script, only geiger activated, but no sound and the explosion ... 
 
any suggestions?
 
My init:
 
/*	
	For DayZ Epoch
	Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
*/
startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];

//REALLY IMPORTANT VALUES
dayZ_instance = 16;	//The instance
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;

//disable greeting menu 
player setVariable ["BIS_noCoreConversations", true];
//disable radio messages to be heard and shown in the left lower corner of the screen
enableRadio false;
// May prevent "how are you civillian?" messages from NPC
enableSentences false;

// DayZ Epoch config 
spawnShoremode = 0; // Default = 1 (on shore)
spawnArea= 50; // Default = 1500
DZE_MissionLootTable = true;
dayz_poleSafeArea = 50; // Default = 30m, the buildable distance
DZE_requireplot = 0;
MaxMineVeins = 12;

MaxVehicleLimit = 250; // Default = 50
MaxDynamicDebris = 3; // Default = 100
dayz_MapArea = 12000; // Default = 10000

//Nuke Settings 0 = off for first 4 options.
Blood_LossPS = 125; // Set blood loss per sec in radiation zone for non antiRadSkins. 
destruction_zone = 400; //Set the destruction zone size here. Any vehicles, buildings and some (if not all) epoch buildables in this zone will be destroyed 
radiation_zone = 1500; //Set the radiation zone size here 1500 = 1500m.
death_zone = 200; //Set the size of the zone people will die in as the nuke goes off. (200 = 200m)
antiRadSkins = ["BanditW1_DZ","BanditW2_DZ","Bandit2_DZ","GUE_Soldier_MG_DZ","INS_Lopotev_DZ"]; //Set skins that will block blood loss in the radiation zone. 
laptop_Pos = [4137.8218, 4143.9624, 0]; //Set laptop position Here x y z.
laptop_Dir = -1.335144e-005; //Set the direction the laptop is facing here.
laptop_Type = "Laptop_EP1"; //Can edit to be anything if you like.
//

//Default Loadout
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","ItemWaterbottleBoiled","FoodSteakCooked","FoodSteakCooked","FoodSteakCooked"];
DefaultWeapons = ["ItemFlashlight"];
DefaultBackpack = "";
DefaultBackpackWeapon = "";

// new stuff
dayz_paraSpawn = false;

dayz_sellDistance_vehicle = 10;
dayz_sellDistance_boat = 30;
dayz_sellDistance_air = 40;

dayz_maxAnimals = 6; // Default: 8
dayz_tameDogs = true;
DynamicVehicleDamageLow = 70; // Default: 0
DynamicVehicleDamageHigh = 95; // Default: 100

DZE_BuildOnRoads = true; // Default: False

EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
dayz_fullMoonNights = false;

// DZEdebug = true;

//Load in compiled functions
call compile preprocessFileLineNumbers "variables.sqf";				//Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";				//Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";	//Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "compiles.sqf";				//Compile regular functions
call compile preprocessFileLineNumbers "custom\snap_build\compiles.sqf";
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders.sqf";				//Compile trader configs
progressLoadingScreen 1.0;

"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";

if (isServer) then {
	//Compile vehicle configs
	call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_16.Panthera2\dynamic_vehicle.sqf";				
	// Add trader citys
	_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_16.Panthera2\mission.sqf";

	_serverMonitor = 	[] execVM "\z\addons\dayz_code\system\server_monitor.sqf";   	
};
execVM "Nuke\server_Nuke.sqf";
if (!isDedicated) then {
	//Conduct map operations
	0 fadeSound 0;
	waitUntil {!isNil "dayz_loadScreenMsg"};
	dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
	
	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "spawn.sqf";}];
	_playerMonitor = 	[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";	 
	
// Epoch Admin Tools
[] execVM "admintools\AdminList.sqf";
	//Lights
	//[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
};
#include "\z\addons\dayz_code\system\REsec.sqf"
//Start Dynamic Weather
execVM "DynamicWeatherEffects.sqf";

[] execVM "custom\custom_monitor.sqf";

#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"

//[] execVM "custom\base_SafeArea.sqf";
[] execVM "custom\ground_fog.sqf";
///////////////////// RADIO CHATTER /////////////////////  
//[broadcast chance, sleep timer]
if (!isDedicated) then {[0.05, 600] execVM "custom\radioChatter\radioChatter.sqf"};

///////////////////// COLOUR EFFECTS - OFF BY DEFAULT /////////////////////
[] execVM "custom\EFFECTS\clear contrast.sqf";
//[] execVM "custom\EFFECTS\wasteland.sqf";
//[] execVM "custom\EFFECTS\summer colours.sqf";
//[] execVM "custom\EFFECTS\photo effect.sqf";
//[] execVM "custom\EFFECTS\warzone effect.sqf";
//[] execVM "custom\EFFECTS\Snow Storm.sqf";
//[] execVM "custom\EFFECTS\WindDust.sqf";
//[] execVM "custom\EFFECTS\earthquake.sqf";


// Epoch Admin Tools
//[] execVM "admintools\Activate.sqf";
execVM "Nuke\Effects\effects.sqf";
//execVM "radiationZone\blowoutZone.sqf"

Link to comment
Share on other sites

Well... my pc has decided to break today so I won't be able to carry on with this for a couple of days

 

get the timings better

 

also the timing of the explosion sound will depend on how close/far away your are and will more then likely add a different sound for people that are really far away

 

removed the need to edit BE filters (not relying on a client sending a PV anymore)

 

separate options to enable/disable destruction for vehicles and buildings

 

made it possible for the script to only run one time per restart (people won't be able to trigger it to go off over and over again)

 

fixed people not dying in the blast zone

 

Making this script perfect will more then likely take a while as I'm still new to scripting and learning as I go along so bare with me lol

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...