SpclFrcsSnpr 0 Posted September 13, 2002 When I try to use my new rifle all it tells me is that it cannot load object/filename/p3d name Does anone know why. It is a weapon. Is there a step I missed. Share this post Link to post Share on other sites
SFG 1 Posted September 13, 2002 Did you define the path in a cpp? Share this post Link to post Share on other sites
SpclFrcsSnpr 0 Posted September 13, 2002 Do you mean like folder and stuff. If that is it then yes. It even shows that I have it right. Share this post Link to post Share on other sites
SFG 1 Posted September 13, 2002 Can you paste the cpp in here then? More then likely and error is in it. Share this post Link to post Share on other sites
SpclFrcsSnpr 0 Posted September 13, 2002 Heres what it says: // some basic defines #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 #define true 1 #define false 0 // type scope #define private 0 #define protected 1 #define public 2 class CfgPatches { class MarineSniper { units[] = {}; weapons[] = {M40a1SD}; requiredVersion = 1.30; }; }; class CfgRecoils { M40a1SDRecoil[]={0.1,0.02,0,001}; }; class CfgAmmo { class Default{}; class BulletSingle : Default {}; class BulletSniper: BulletSingle{}; class M40a1SDBullet: BulletSniper { hit=14; indirectHit=5; indirectHitRange=0.100000; minRange=1; minRangeProbab=0.100000; midRange=400; midRangeProbab=0.300000; maxRange=1000; maxRangeProbab=0.050000; cost=6; tracerColor[]={0,0,0,0}; }; }; class CfgWeapons { class default{}; class MGun: default {}; class Riffle: MGun {}; class SniperRiffle: Riffle{}; class M21: SniperRiffle{}; class M40a1SD: M21 { modelOptics="\SPM40a1\optika_mildot.p3d"; picture="\SPM40a1\bravo51.paa"; model="\SPM40a1\SniperRifle.p3d"; scopeWeapon=2; scopeMagazine=2; weapontype=1; optics = true; opticsZoomMin=0.01; opticsZoomMax=0.5; distanceZoomMin=2000; distanceZoomMax=120; displayName = M40a1SD; sound[]={\SpM40a1\psg1_sd.wav,0.003,1}; reloadMagazineSound[]={\SpM40a1\reload.wav,db-40,1}; drySound[]={\SpM40a1\empty.wav,db-40,1}; initspeed=5000; ammo="M40a1SDBullet"; multiplier=1; burst=1; opticsFlare=0; flashSize=0; dispersion=0.0001; simulation="shotsmoke"; reloadTime=1.9; autofire=0; recoil="M40a1SDrecoil"; accuracy=1000; aiRateOfFire=0.005; aiRateOfFireDistance=2500; displayNameMagazine = M40a1mag.; shortNameMagazine = M40a1mag.; count=5; }; }; Share this post Link to post Share on other sites
SpclFrcsSnpr 0 Posted September 14, 2002 Man I just realized that I put the wrong thing in the title. The game tells me it cannot open my p3d. If anyone wants to try it the just email me and I'll send it to you.GoArmy86@aol.com Share this post Link to post Share on other sites