Jump to content

Disable Thermal vision


Corpulio_Hun

Recommended Posts

In your init.sqf, paste the following code:

vehsRemoveThermal = [];

In your server_monitor.sqf find:

[_object,"damage"] call server_updateObject;

Below it add:

{
	if (_object isKindOf _x) then {
		_object disableTIEquipment true;
	};
} forEach vehsRemoveThermal;

In dayz_server\compile\server_publishVehicle2.sqf, find:

clearWeaponCargoGlobal  _object;
clearMagazineCargoGlobal  _object;

Below it add:

{
	if (_object isKindOf _x) then {
		_object disableTIEquipment true;
	};
} forEach vehsRemoveThermal;

 

Done - any vehicle you enter into vehsRemoveThermal will not have thermal.

 

Example:

vehsRemoveThermal = ["HMMWV_m998_crows_M2_DES_EP1"];

 

Link to comment
Share on other sites

Okay i have it! Virtual garage work now with remove thermal!

DePbo dayz_server

dayz_server/compile/garage/server_spawnVehicle.sqf

open with notepad++ server_spawnVehicle.sqf and find:

clearWeaponCargoGlobal  _object;
clearMagazineCargoGlobal  _object;

Below it add:

{
	if (_object isKindOf _x) then {
		_object disableTIEquipment true;
	};
} forEach vehsRemoveThermal;

 

and save it and done!

 

P.s.: First u need install virtual garage and upper things put in , this -->

In your init.sqf, paste the following code:

vehsRemoveThermal = [];

In your server_monitor.sqf find:

[_object,"damage"] call server_updateObject;

Below it add:

{
	if (_object isKindOf _x) then {
		_object disableTIEquipment true;
	};
} forEach vehsRemoveThermal;

In dayz_server\compile\server_publishVehicle2.sqf, find:

clearWeaponCargoGlobal  _object;
clearMagazineCargoGlobal  _object;

Below it add:

{
	if (_object isKindOf _x) then {
		_object disableTIEquipment true;
	};
} forEach vehsRemoveThermal;

 

Done - any vehicle you enter into vehsRemoveThermal will not have thermal.

 

Example:

vehsRemoveThermal = ["HMMWV_m998_crows_M2_DES_EP1"];

And thx for BigEgg!!!

 

Link to comment
Share on other sites

  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...