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

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

×
×
  • Create New...