Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Get Rid Of Spot Lights ??  (Read 1565 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 ...