Jump to content

Bomb Objects.


omc

Recommended Posts

Add Satchel Charges"PipeBomb" to individual objects.

Logs all attempts,

eg.

"[BASERAID_LOG] Player_Name (12345678909876543) IS TRYING TO BREAK INTO A BASE @ 073057 Owner: [["12345678909876543344",[116,104,105,110,103,50]]]"

Damage to only the object its placed on when successful.

Roll between 190 and 115 / 500 to destroy the object.

 

https://github.com/ch0c/DZE_Bomb

 

 

(This is a replacement/update for cracking doors with hotwire kits.)

Link to comment
Share on other sites

  • 1 month later...

@nova try

find

if (_ReadytoDestroy) then {
	call fn_bombexp;	 
	_Message = format ["%1 (%2) BROKE INTO A BASE @ %3 Owner: %4",dayz_playerName,dayz_playerUID, (mapGridPosition getPos player),_ownerID];
	["BaseRaid_Log",_Message,true] call fnc_log;
	PVDZ_obj_Destroy = [_objectID,_objectUID,player];
	publicVariableServer "PVDZ_obj_Destroy";
	_Object setDamage 1;
	deleteVehicle _Object;
	[format["<t size='1.2' color='#00EEFF'>Object Destroyed!!</t>"],0,0,2,2] spawn BIS_fnc_dynamicText;	
};

 

replace with

if (_ReadytoDestroy) then {
	call fn_bombexp;	 
	_Message = format ["%1 (%2) BROKE INTO A BASE @ %3 Owner: %4",dayz_playerName,dayz_playerUID, (mapGridPosition getPos player),_ownerID];
	["BaseRaid_Log",_Message,true] call fnc_log;
	if (_Object isKindof DZE_DoorsLocked) then {	
			//  locked doors will respawn on restart
	} else {
	PVDZ_obj_Destroy = [_objectID,_objectUID,player];
	publicVariableServer "PVDZ_obj_Destroy";
	};	
	_Object setDamage 1;
	deleteVehicle _Object;
	[format["<t size='1.2' color='#00EEFF'>Object Destroyed!!</t>"],0,0,2,2] spawn BIS_fnc_dynamicText;	
};

 

 

** untested!

Link to comment
Share on other sites

On 4/21/2017 at 1:47 AM, omc said:

Add Satchel Charges"PipeBomb" to individual objects.

Logs all attempts,

eg.


"[BASERAID_LOG] Player_Name (12345678909876543) IS TRYING TO BREAK INTO A BASE @ 073057 Owner: [["12345678909876543344",[116,104,105,110,103,50]]]"

Damage to only the object its placed on when successful.

Roll between 190 and 115 / 500 to destroy the object.

 

https://github.com/ch0c/DZE_Bomb

 

 

(This is a replacement/update for cracking doors with hotwire kits.)

Is there a way the raid message could be shouted to server? Like the ai missions?

Link to comment
Share on other sites

On 09/06/2017 at 7:57 AM, DieTanx said:

Any way to make this send a message in side chat or somewhere where players can see that a base is being raided?

https://github.com/ch0c/DZE_Bomb/blob/master/DZE_Bomb/MissionSide/dayz_code/init/compiles.sqf

try adding a systemChat under the dialog one

eg.

 fnc_Log = {
    private ["_fileName","_message"];
    _fileName = toLower (_this select 0);
    _message = _this select 1;
    if (!isDedicated) then {
        CD_LOG = [_fileName,toArray _message];
        publicVariableServer "CD_LOG";
    } else {
        _message = if (typeName _message == "ARRAY") then {toString _message} else {_message};
        diag_log format ["[%1] %2",toUpper (_fileName),_message];
		systemChat(format["%1",_message]);
    };
};

 

IF this does work it ill show the same message as the rpt.
If it does work let me know and ill do an update with messages

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

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

×
×
  • Create New...