Home   Help Search Login Register  

Author Topic: This shouldnt take long...  (Read 1263 times)

0 Members and 1 Guest are viewing this topic.

vovi

  • Guest
This shouldnt take long...
« on: 07 Jan 2005, 14:52:33 »
I want to take the vo_zlut.p3d, which is the modern looking streetlamp from nogova, and change the light settings, colour brightness etc, then put it back in OFP called 'newlamp'
My current attempt pbo is named 'newlamp' and it contains the config, the two required textures, and the p3d.
I get NOTHING ingame, and I'm blaming my config because it was just a guess, and i've never done it before

Can anyone help? this is my rubbish attempt, what do I need to change?



class CfgPatches
{
   class newlamp
   {
      units[] = {vo_zlut};
      weapons[] = {};
      requiredVersion = 1.75;
   };
};

class CfgNonAIVehicles
{
   class StreetLamp {};
   class vo_zlut: StreetLamp
       {
   model="\newlamp\vo_zlut";
   scope=1;
                armorBulb =1;
   displayName="newlamp";
                destrType="DestructTree";
   armor=200;
                simulation="StreetLamp";
                colorDiffuse[]={1.0,0.9,0.6,0.4};
                colorAmbient[]={1.0,0.9,0.6,0.3};
                size =0.8;
   brightness = 0.039;
       };

};



Please help! Where am I going wrong? Is it because its clashing with the same model from O.pbo?

Also I want to do more than one colour, is it worth doing it seperately, in seperate  pbo's?

PLEASE HELP
« Last Edit: 07 Jan 2005, 14:55:32 by vovi »

vovi

  • Guest
Re:This shouldnt take long...
« Reply #1 on: 07 Jan 2005, 14:56:59 »
Also I need them to turn on a night, so i put them in my island.

Offline Pilot

  • Contributing Member
  • **
Re:This shouldnt take long...
« Reply #2 on: 07 Jan 2005, 15:08:21 »
You may need to add a cfgModels section, try this:

Code: [Select]
class cfgModels
{
   class Default
   {
       sections[]={""};
       sectionsInherit="";
   };
   class All {};
   class Static: All {};
   class Building: Static {};
   class NonStrategic: Building  {};    
   class vo_zlut: NonStrategic
   {
      sectionInherit="light"
      sections[]={};
   };
};

this should go before the CfgNonAIVehicles section and after the CfgPatches section.

Also, try changing
Quote
class newlamp
in the CfgPatches section to
Code: [Select]
class vo_zlut.  I believe it has to be the same name in all the sections, although I could be wrong.

I hope that helps!
« Last Edit: 07 Jan 2005, 15:12:02 by Student Pilot »

Lean Bear

  • Guest
Re:This shouldnt take long...
« Reply #3 on: 15 Jan 2005, 11:05:26 »
I would recomend changing the .p3d name as well from the original vo_zlut.p3d to newlamp.p3d (or whatever your preference is).