Jump to content
  • 0
Sign in to follow this  
juandayz

AI KILLED BY HACKER

Question

anyone know how to remove this from rpt

 0:53:48 ["z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf","KILLING A HACKER","Haikal Saikal"," IN ","Su25_Ins"]

The sqf who spawn it:  (located in mpmissions\ and called manually by scroll menu)

Spoiler
_aiskin = "TK_Commander_EP1";
_plane_class = "Su25_INS";

//////////////////////////CREATE FACTION
_this = createCenter east;
_this setFriend [west, 0];
_this setFriend [east, 0];
_this setFriend [civil, 0];
_center_1 = _this;
_unitGroup = createGroup _center_1;
//////////////////////////

/////////////////////////PILOT
_pilot = objNull;
_pilot = _unitGroup createUnit [_aiskin, [(_startingpos select 0) + 90, (_startingpos select 1) + 100], [], 1, "NONE"];
//_pilot addEventHandler ["handleDamage", {false}];
[_pilot] joinSilent _unitGroup;
/////////////////////////

sleep 1;

////////////////////////JET
_carrier =  createVehicle [_plane_class, [(_startingpos select 0) + 50, (_startingpos select 1) + 50],[], 0, "FLY"];
_carrier         setVehicleVarName "heli";
_carrier 		setFuel 1;
_carrier 		engineOn true;
_carrier      addEventHandler ["Fired",{(_this select 0) setVehicleAmmo 1}];
_carrier 		flyInHeight 150;
_carrier 		setVehicleLock "LOCKED";
_carrier 		addEventHandler ["GetOut",{(_this select 0) setFuel 0;(_this select 0) setDamage 1;}];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_carrier];
////////////////////////

_pilot 	assignAsDriver _carrier;
_pilot 	moveInDriver _carrier;
_pilot setBehaviour "COMBAT"; 

 

 

variables.sqf (    DZE_safeVehicle = ["ParachuteWest","ParachuteC","Su25_INS"];      )

i also try comment the line in sched_veh

Spoiler
sched_safetyVehicle = {
	{
		if (vehicle _x != _x && !(vehicle _x in dayz_serverObjectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
			diag_log [ __FILE__, "KILLING A HACKER", name _x, " IN ", typeOf vehicle _x ];
			//(vehicle _x) setDamage 1;
			//_x setDamage 1;
		};
	} forEach allUnits;

	objNull
};

 

as you know.. the AI is not killed by the comment line.. but i leave the diag_log to see if still rpt spawns.. and it does.

and also add the "su25_INS" in dynamic_vehicle.sqf

 

Ohh also i have the "TK_Commander_EP1"  in Allplayers = [];

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
if (vehicle _x != _x && !(vehicle _x in dayz_serverObjectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {

 

about this... i have the (vehicle _x in dayz_serverObjectMonitor).. with this line:

dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_carrier];

 

 

and:  !((TypeOF vehicle _x) in DZE_safeVehicle))  added in my custom variables.sqf

 DZE_safeVehicle = ["ParachuteWest","ParachuteC","Su25_INS"]; 

 

Share this post


Link to post
Share on other sites
  • 0

I tested and it took some restarts and debugging but works on my test server.

dayz_serverObjectMonitor
This is only used if you can send it to server or spawn on server

Rename Su25_INS to small case ns > Su25_Ins

DZE_safeVehicle = ["ParachuteWest","ParachuteC","Su25_Ins"];

Hope that helps mate

Share this post


Link to post
Share on other sites
  • 0
Just now, Crude said:

I tested and it took some restarts and debugging but works on my test server.

dayz_serverObjectMonitor
This is only used if you can send it to server or spawn on server

Rename Su25_INS to small case ns > Su25_Ins

DZE_safeVehicle = ["ParachuteWest","ParachuteC","Su25_Ins"];

Hope that helps mate

ok gonna try changing the vehicle id.. anyway do not explain me why is not works that way.  i also try an @iben  idea setting a variable..

example  safety_veh_scheduler.

Spoiler
sched_safetyVehicle = {
	{
		if (vehicle _x != _x && !(vehicle _x in dayz_serverObjectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
		if (vehicle _x getVariable ["dearmyfriendiben",0] == 1) exitWith { };
			diag_log [ __FILE__, "KILLING A HACKER", name _x, " IN ", typeOf vehicle _x ];
			(vehicle _x) setDamage 1;
			_x setDamage 1;
		};
	} forEach allUnits;

	objNull
};

 

and in sqf...

_carrien setvariable ["dearmyfriendiben",1,true];

get the same issue.

Share this post


Link to post
Share on other sites
  • 0

@Crude  well i just change the jet id by another ( L39_TK_EP1) and works well...  its possible that from almost 100kinds of arma vehicles.. i was choose the one who dsnt works? or is there a logic explanation for this issue?

Share this post


Link to post
Share on other sites
  • 0

For mine to work was just case sensitive problem, nice that your works now but with different Vehicle. If you are still wanting the Su25 just give the debug below a try.

 

add to top of loop


if(typeOf vehicle _x == "Su25_Ins") then {
            diag_log format["#%1 = %2", typeOf vehicle  _x, DZE_safeVehicle];
            diag_log format["#%1 = %2", typeOf vehicle _x, vehicle _x != _x];
            diag_log format["#%1 = %2", typeOf vehicle _x, !(vehicle _x in dayz_serverObjectMonitor)];
            diag_log format["#%1 = %2", typeOf vehicle _x, !((typeOf vehicle _x) in DZE_safeVehicle)];
        };

 

you should see something like
22:41:06 "#Su25_Ins = ["ParachuteWest","ParachuteC","Su25_Ins","BTR40_TK_INS_EP1","BTR40_TK_GUE_EP1"]"
22:41:06 "#Su25_Ins = true"
22:41:06 "#Su25_Ins = true"
22:41:06 "#Su25_Ins = false"

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By Bloodthirsty
      Hey I just need some files for this server, any and all you guys can come up with and think it deserve post that shit in chat rn. I want to see some crazy ideas and additions if you got em :) Lets see what you guys can come up with

    • By juandayz
      I JUST LEAVE THIS ONE CUZ I KNOW YOU GUYS GONNA NEED IT..
       
      The very old safezone script by infistar... i was using it in 1.0.5.1  and made some changes to use in 1.6.
      Instructions:
          1. Copy paste the code of below into a file called 16_safezone.sqf - save the file.
          2. Paste this 16_safezone.sqf into mpmissioms\instance_11.chernarus\custom\
          3. Open your init.sqf
          4. At the very bottom of the file add this line:  [] execVM "custom\16_safezone.sqf";
          5. Save the init.sqf and restart your server.
          6-WARNING!!! if ure using some kind of mod that allow vehicles with GodMode out of safezones..  then you will need in 16_safezone.sqf change the path for veh_handleDam.sqf by the path that youre using your custom veh_handleDam.sqf
      this line:  fnc_veh_handleDam = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\veh_handleDam.sqf';
          16_safezone.sqf
       
      OPTIONAL:
      @BetterDeadThanZed here you got.
      REMOVE LOOT FROM TRADER CITIES AND PLOT POLES. (should removes zeds from trader places and poles too)
       
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...