Jump to content
Sign in to follow this  
alleycat

Disable thermal on infantry weapons

Recommended Posts

Is it possible to remove thermal optic on infantry weapons? The TIE command only appears to work for vehicles.

Share this post


Link to post
Share on other sites

You can remove the scope weapon attachment of the rifle, but as far as I know, you can't disable an weapon optic function like thermal or the ability to even use the scope.

An example command to remove an attachment such as a flashlight: player1 removePrimaryWeaponItem "acc_flashlight";

If you go into the config viewer in the editor and double-click "CfgWeapons" you'll get a list of weapon and weapon item classnames. Find the classname of the thermal scope attachment, and then replace the above's "acc_flashlight" with the scope classname.

If you want your mission to detect if the player has a thermal scope or not, and it should remove the scope if he does, you'll most likely have to create a script for that. Hopefully this was somewhat helpful. :P

Share this post


Link to post
Share on other sites

I will post here If I find a suitable argument for your question.

I want this myself, after all I just got rid of it on the vehicles.

Share this post


Link to post
Share on other sites

To disable or reduce effectiveness of thermal imaging on infantry sights, you can reduce the viewDistance when TI is activated, like so:

while { alive player } do {
    switch (currentVisionMode player) do {
       case 0 : {
           setViewDistance 1200;
           // setObjectViewDistance 1500;
       };
       case 1 : { // NVG
           setViewDistance 600;
           // setObjectViewDistance 1200;
       };
       case 2 : { // FLIR
           setViewDistance 400;
           // setObjectViewDistance 600;
       };
   };
};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×