Grokk 0 Posted January 19, 2003 I'm working on a plane, and I want the fuselage look totally messed up when shot at. I made the textures, put them in the pbo and put this in the config under cfgvehicles. Â Â Â Â Â Â dammagehalf[]= Â Â Â { Â Â Â Â "\NML_fokkerE3\fuse.paa","\NML_fokkerE3\fusd.paa" Â Â Â Â Â Â Â }; Well, it doesn't work. Tried changing capital letters, removed "", tried it without extensions, tried it without the path, even changed dammagehalf in damagehalf (all tested seperately of course), and still it doesn't change when damaged. Now I'm wondering, does ofp even allow planes to have damagetextures? And if so, what am I doing wrong? Should I change something in the model? I tried giving the sides in the hitpoints lod the texture, but it didnt help. Regards, Grokk Share this post Link to post Share on other sites
kegetys 2 Posted January 19, 2003 try removing the capital letters from there, and also from the texture paths in the model, and possibly also from the PBO name. Share this post Link to post Share on other sites
Grokk 0 Posted January 20, 2003 I've really tried everything now, and it doesnt work.. all capitals removed, tried with and without the "", with and without the / before the path (nml_fokkere3 instead of /nmlfokkere3). Nothing works. Just in case i put the whole cfgvehicles section, in case anyone can discover something wrong. Anyway, I've been thinking of a new solution. What about using changetexture in a script? Never used it, but I guess I'll find out how to make it work on the plane. Do you think it's a good solution? Anyway, here's the cfgvehicles section. (as a note, the plane itself works, it's just the textures that won't change) class CfgVehicles { class All {}; class AllVehicles: All {}; class Air: AllVehicles {}; class Plane: Air {}; class A10: Plane {}; class Cessna: A10 {}; Â Â Â Â class NMLFokkerE3: Cessna { scope=2; crew = "officerE"; Â Â Â Â Â Â Â Â side = 0; displayName="NML Fokker E.III"; driverAction = ManActA10Pilot; accuracy=0.50; armor=12; Â Â Â Â Â Â Â maxSpeed = 141; model="\nml_fokkere3\nml_fokkere3.p3d"; picture="\nml_fokkere3\ifoke3"; icon="\nml_fokkere3\mfoke3"; Â Â Â Â Â Â Â type=VAir; //threat[] VSoft, VArmor, VAir threat[]={0.5, 0.2, 1.0}; aileronSensitivity = 0.3; elevatorSensitivity = 1; gearRetracting = false; ejectSpeed[]={0,0,0}; fov=0.5; noseDownCoef = 1; precision=60; brakeDistance=50; weapons[]={"NMLSpandau","NMLPlaneGrenade"}; magazines[]={"NMLSpandau","NMLPlaneGrenade"}; transportsoldier=0; transportAmmo=0; soundEngine[]={\nml_fokkere3\engine.wav,db,1}; landingSpeed = 60; driverCanSee = CanSeeEye+CanSeeEar; dammageHalf[]= { \nml_fokkere3\fuse.paa,\nml_fokkere3\fusd.paa }; class ViewPilot { initFov=0.700000; minFov=0.400000; maxFov=0.850000; initAngleX=0; minAngleX=-35; maxAngleX=25; initAngleY=0; minAngleY=-150; maxAngleY=150; }; class IndicatorAltBaro { selection="air"; axis="osa_air"; angle=155; min=0; max=150; }; Share this post Link to post Share on other sites
Guest BratZ Posted January 20, 2003 Is it working yet? I would try double quotes...prolly cause you have paths dammagehalf[]= { "\NML_fokkerE3\fuse.paa","\NML_fokkerE3\fusd.paa" }; dammagehalf[]= { ""\NML_fokkerE3\fuse.paa"",""\NML_fokkerE3\fusd.paa"" }; Worth a try Share this post Link to post Share on other sites
Grokk 0 Posted January 21, 2003 alas.. Just got the message ofp wanted , instead of \. Thanks though. Grokk Share this post Link to post Share on other sites
Grokk 0 Posted January 21, 2003 Hmm.. Just have tested it with the script. It works, but for some reason it shows up in it's lowest resolution, i mean it looks like total garbage, while the .paa texture looks much better in textview and o2. Any idea why? Grokk p.s. I read that the init field doesnt work in mp, is there a way to get around that? Share this post Link to post Share on other sites
Guest BratZ Posted January 21, 2003 The Init line will only run from the computer it was executed on. You would need to run a global script somehow if you were going to use the Init line for anything like that Share this post Link to post Share on other sites
NAA_Us_Marine 0 Posted January 23, 2003 so wait how did u put the line in ? "" wit no / or what ? just paste it. Share this post Link to post Share on other sites
Grokk 0 Posted January 23, 2003 Well, that's lots of different ways, I'll try to write down all I remember (they all didnt work so i didnt keep the changes afterward) dammageHalf[]= { "\NML_fokkerE3\fuse.paa","\NML_fokkerE3\fusd.paa" }; dammageHalf[]= { \NML_fokkerE3\fuse.paa,\NML_fokkerE3\fusd.paa }; dammageHalf[]= { "fuse.paa","fusd.paa" }; dammageHalf[]= { "NML_fokkerE3\fuse.paa","NML_fokkerE3\fusd.paa" }; dammageHalf[]= { NML_fokkerE3\fuse.paa,NML_fokkerE3\fusd.paa }; dammageHalf[]= { fuse.paa,fusd.paa }; dammageHalf[]= { "\nml_fokkere3\fuse.paa","\nml_fokkere3\fusd.paa" }; dammageHalf[]= { \nml_fokkere3\fuse.paa,\nml_fokkere3\fusd.paa }; dammageHalf[]= { ""\nml_fokkere3\fuse.paa"",""\nml_fokkere3\fusd.paa"" }; dammageHalf[]= { ""fuse.paa"",""fusd.paa"" }; dammageHalf[]= { "\nml_fokkere3\fuse.paa","\nml_fokkere3\fuseB.paa" }; dammageHalf[]= { \nml_fokkere3\fuse.paa,\nml_fokkere3\fuseB.paa }; dammageHalf[]= { \nml_fokkere3\fuse.paa,\nml_fokkere3\fuseB.paa }; dammageHalf[]= { fuse.paa,fuseB.paa }; I guess these are most options I tried out, maybe there were a few more. I changed fusd into fuseB, hoping that it might work then, but changed it back later for it had no effect. Grokk Share this post Link to post Share on other sites
NAA_Us_Marine 0 Posted January 23, 2003 I thought u said it worked... so did it switch the textures or no? Share this post Link to post Share on other sites