Home   Help Search Login Register  

Author Topic: Get Rid Of Spot Lights ??  (Read 978 times)

0 Members and 1 Guest are viewing this topic.

Offline RM Snipe

  • Members
  • *
  • RM kicks butt!
Get Rid Of Spot Lights ??
« on: 14 Jan 2004, 17:09:51 »
Hi, How can I modify cpp on a Mortar & MG so there is no light when dark  ???????

Offline Colonel_Klink

  • Members
  • *
  • Independent Addon Creator
    • DC3D Game Modelling Zone
Re:Get Rid Of Spot Lights ??
« Reply #1 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;
         };
      };
Rebel without a pause...D.I.L.L.I.G.A.F.

Rastavovich

  • Guest
Re:Get Rid Of Spot Lights ??
« Reply #2 on: 14 Jan 2004, 23:28:27 »
Code: [Select]
class Reflectors {};does the same and saves some space ;)

Humvee

  • Guest
Re:Get Rid Of Spot Lights ??
« Reply #3 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 ...