OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: RM Snipe on 14 Jan 2004, 17:09:51

Title: Get Rid Of Spot Lights ??
Post by: RM Snipe on 14 Jan 2004, 17:09:51
Hi, How can I modify cpp on a Mortar & MG so there is no light when dark  ???????
Title: Re:Get Rid Of Spot Lights ??
Post by: Colonel_Klink on 14 Jan 2004, 20:55:37
The following code should render your addon lightless:

Goes in the cfgvehicles section of your addon.
Code: [Select]
// 0 or "" entries turns off night lights
      class Reflectors
      {
         class Left
         {
            color[] = {0, 0, 0, 0};
            ambient[] = {0, 0, 0, 0};
            position = "";
            direction = "";
            hitpoint = "";
            selection = "";
            size = 0.0;
            brightness = 0.0;
         };
         class Right
         {
            color[] = {0, 0, 0, 0};
            ambient[] = {0, 0, 0, 0};
            position = "";
            direction = "";
            hitpoint = "";
            selection = "";
            size = 0.0;
            brightness = 0.0;
         };
      };
Title: Re:Get Rid Of Spot Lights ??
Post by: Rastavovich on 14 Jan 2004, 23:28:27
Code: [Select]
class Reflectors {};does the same and saves some space ;)
Title: Re:Get Rid Of Spot Lights ??
Post by: Humvee on 16 Jan 2004, 10:56:38
or go to the model... in the memory lod delete the start end stop vertrice of the headlight ...