Jump to content
Corpulio_Hun

Disable Thermal vision

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"];

 

Share this post


Link to post
Share on other sites

can also confirm you can add 

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

 

to infistar, and also removed thermal when spawning vehicle

also confirmed, you can remove from Virtual Garage this way :)

 

Share this post


Link to post
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!!!

 

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
Reply to this topic...

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

  • Similar Content

    • By Corpulio_Hun
      hi all,
      Someone have a script to disable thermal vision in vehicles?Epoch 1.0.6.1
      Thx
       
      Corpulio_Hun
    • By arc7r7
      I run a PVE server and have been looking into to ways to enable thermal optics on vehicles and the nightstalker. I would like to enable thermals on vanilla and RHS vehicles that support them on my server.
      I've seen this in the a3_epoch_server/compile/epoch_vehicle/EPOCH_spawn_vehicle.sqf
          // Disable Thermal Equipment
          _vehObj disableTIEquipment true;
      I've set this to false with no result. Does "_vehObj" encompass all vehicles or does this need to be changed to something else? or is there another way of doing this?
    • By seeker619
      Was wondering how to go about adding thermal to NVG's, or making them Thermal only.. doesnt matter... what files handle the NVG, Thermal, and Nightvision?
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...