OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: vovi 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
-
Also I need them to turn on a night, so i put them in my island.
-
You may need to add a cfgModels section, try this:
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 class newlamp
in the CfgPatches section to 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!
-
I would recomend changing the .p3d name as well from the original vo_zlut.p3d to newlamp.p3d (or whatever your preference is).