Jump to content
  • 0

Spawned in vehicles explode


kriegar

Question

Hi everyone, 

I know this has been covered before in other threads however the solutions mentioned there didn't seem to work.

 

Basically vehicles spawned in by my admin tool and by sarge AI will blow up and kill you if you enter them.

 

I have tried messing with the server cleanup file and the updateObject file however even when I completely commented things out it was still an issue which leads me to believe that the code is being ran client side.

 

I have seen this working on other servers so I know there is a fix out there somewhere >.< has anyone else come across this and managed to fix it in this patch?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

This is working for me:

 

In server cleanup:

 

 Line 293 and below

    name = "vehicle_cleanup";      
init = /*%FSM<STATEINIT""">*/"_safety = PVDZE_serverObjectMonitor;" 
\n       "" 
\n       "//Check for hackers" 
\n       " {" 
\n       " if(vehicle _x != _x && 
(vehicle _x getVariable [""Mission"",0] != 1) && !(vehicle _x in 
_safety) && (typeOf vehicle _x) != ""ParachuteWest"") && 
(vehicle _x getVariable ["Sarge",0] != 1)&& !((typeOf vehicle _x) in 
DZE_safeVehicle)  )then {" \n       
"  diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + 
str(_x) + "" IN "" + (typeOf vehicle _x));" 
\n       "  (vehicle _x) setDamage 
1;" \n       "  _x setDamage 1;" 
\n       "  };" 
\n       " } forEach allUnits;" 
\n       "" 
\n       "PVDZE_serverObjec

and

 

   name = "group_cleanup";      init = 
/*%FSM<STATEINIT""">*/"//Clean groups" 
\n       "{" 
\n       " // diag_log (""CLEANUP: 
CHECKING GROUP WITH "" + str(count units _x) + "" UNITS"");" 
\n    " if ((count units _x==0) && !(_x 
getVariable[""SAR_protect"",false])) then {" 
\n       "  deleteGroup _x;" 
\n       "  diag_log (""CLEANUP: 
DELETING A GROUP"");" \n       " };" \n

Line 264 and below

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

×
×
  • Create New...