Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
PicVert

No entry "model special"

Recommended Posts

If some one could help me I give to him a sugar. wink.gif

what's wrong ?!

#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

#define private 0

#define protected 1

#define public 2

#define WeaponNoSlot 0

#define WeaponSlotPrimary 1

#define WeaponSlotSecondary 16

#define WeaponSlotItem 256

#define WeaponSlotBinocular 4096

#define WeaponHardMounted 65536

class CfgModels

{

class Default {};

class Vehicle: Default {};

class Tank: Vehicle {};

class panzerLeo2A4: Tank {};

}

class CfgPatches

{

class sw_panzer

{

units[] = {sw_panzer};

weapons[] = {};

requiredVersion = 1.75;

};

};

class CfgAmmo

{

class Default{};

class BulletSingle : Default{};

class 5_6mmAASw: BulletSingle

{

airLock=1;

irLock=0;

hit=13;

cost=2;

indirectHit=2;

indirectHitRange=0.100000;

visibleFire=8;

audibleFire=8;

visibleFireTime=1;

model="shell";

simulation="shotBullet";

minRange=5;

minRangeProbab=0.100000;

midRange=500;

midRangeProbab=0.950000;

maxRange=3000;

maxRangeProbab=0.050000;

}

class 120mmSw: Default

{

hit=950;

indirectHit=300;

indirectHitRange=10;

tracerColor[]={0.700000,0.700000,0.500000,1.00000};

tracerColorR[]={0.700000,0.700000,0.500000,1.00000};

model="shell";

simulation="shotShell";

simulationStep=0.050000;

cost=1000;

soundHit[]={"\panzerLeoII\sons\Hit.wav",100.000008,1};

soundFly[]={"\panzerLeoII\sons\Flg.wav",0.031623,4};

minRange=20;

minRangeProbab=0.750000;

midRange=500;

midRangeProbab=0.950000;

maxRange=3000;

maxRangeProbab=0.400000;

visibleFire=16;

audibleFire=12;

visibleFireTime=8;

acces=3;

};

class 105mmHEAT: 120mmSw

{

hit=580;

indirectHit=350;

indirectHitRange=1.5;

soundFly[]={"\panzerLeoII\sons\Flg.wav",10.000000,1};

soundHit4[]={"\panzerLeoII\sons\Heatit.wav",10.000000,1};

hitArmor[]={soundHit4,1};

soundHit5[]={"\panzerLeoII\sons\Expl.wav",10.000000,1};

hitGround[]={soundHit5,1};

soundHit6[]={"\panzerLeoII\sons\Expl.wav",10.000000,1};

hitBuilding[]={soundHit6,1};

acces=3;

};

};

class CfgWeapons

{

class Default{};

class MGun: Default{};

class MachineGun7_6: MGun{};

class 5_6mmSw: MachineGun7_6

{

ammo="5_6mmAASw";

displayName="MG AA 5.6mm";

displayNameMagazine="MG AA 5.6mm";

shortNameMagazine="MGAA5.6mm";

sound[]={"\panzerLeoII\sons\shoot.wav",4.633333,1};

soundContinuous=0;

reloadTime=0.06000;

backgroundReload=1;

dispersion=0.001500;

initspeed=1000;

maxLeadSpeed=900;

count=4800;

acces=3;

aiRateOfFire=0.00000;

aiRateOfFireDistance=2000;

};

class Sw_cann:Default

{

scopeWeapon=2;

scopeMagazine=0;

backgroundReload=1;

opticsFlare=0;

ffMagnitude=1;

ffFrequency=5;

sound[]={"\panzerLeoII\sons\fire.wav",10.000000,1};

reloadSound[]={"Weapons\missload",0.000316,1};

magazines[]={"Sw_120mmA","105mmH"};

acces=3;

};

class Sw_120mmA:Sw_cann

{

scopeWeapon=0;

scopeMagazine=2;

displayName="120mm APDS";

displayNameMagazine="120mm APDS";

shortNameMagazine="120mmAPDS";

nameSound="shell";

ammo="120mmSw";

count=42;

initSpeed=1000;

reloadTime=5.500000;

sound[]={"\panzerLeoII\sons\fire.wav",10.000000,1};

soundFly[]={"\panzerLeoII\sons\Flg.wav",10.000000,1};

soundHit1[]={"\panzerLeoII\sons\Hit.wav",10.000000,1};

hitArmor[]={soundHit1,1};

soundHit2[]={"\panzerLeoII\sons\Expl.wav",10.000000,1};

hitGround[]={soundHit2,1};

soundHit3[]={"\panzerLeoII\sons\Expl.wav",10.000000,1};

hitBuilding[]={soundHit3,1};

ffCount=1;

acces=3;

};

class 105mmH:Sw_120mmA

{

displayName="105mm HEAT";

displayNameMagazine="105mm HEAT";

shortNameMagazine="105mmHEAT";

nameSound="heat";

ammo="105mmHEAT";

count=12;

initSpeed=800;

soundFly[]={"\panzerLeoII\sons\Flg.wav",10.000000,1};

soundHit4[]={"\panzerLeoII\sons\Heatit.wav",10.000000,1};

hitArmor[]={soundHit4,1};

soundHit5[]={"\panzerLeoII\sons\Expl.wav",10.000000,1};

hitGround[]={soundHit5,1};

soundHit6[]={"\panzerLeoII\sons\Expl.wav",10.000000,1};

hitBuilding[]={soundHit6,1};

acces=3;

};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Land: AllVehicles {};

class LandVehicle: Land {};

class Tank: LandVehicle {};

class M1Abrams: Tank {};

class sw_panzer: M1Abrams

{

displayName="Swiss Leopard 2A4(Pz87)";

model="\panzerLeoII\panzerLeo2A4";

soundEngine[]={\panzerLeoII\sons\engine.wav,db+20,1};

nameSound="tank";

picture="\panzerLeoII\Leo2A4.paa";

maxSpeed=82;

armor=750;

irScanRange=3000;

irScanGround=3000;

crew="swiss_dr";

side=2;

forceHideGunner=0;

hasCommander=1;

hasdriver=1;

hasgunner=1;

unloadInCombat=1;

vehicleClass="Armored";

gunnerOpticsModel="\PanzerLeoII\opt\Gunopt";

commanderOpticsModel="\PanzerLeoII\opt\comopt";

weapons[]={Sw_cann, 5_6mmSw};

magazines[]={Sw_120mmA, 105mmH, 5_6mmSw};

dammageHalf[]=

{

"\panzerLeoII\tex\top1.pac", "\panzerLeoII\tex\top1.pac,"

};

dammageFull[]=

{

"\panzerLeoII\tex\top1.pac", "\panzerLeoII\tex\top1.pac,"

};

class ViewGunnerBase

{

initAngleX=5;

minAngleX=-30;

maxAngleX=30;

initAngleY=0;

minAngleY=-100;

maxAngleY=100;

initFov=0.550000;

minFov=0.320000;

maxFov=0.850000;

};

class TurretBase

{

gunAxis = "OsaHlavne";

turretAxis = "OsaVeze";

soundServo[]={"\panzerLeoII\sons\Ele.wav",db+20,1};

gunBeg = "usti hlavne";

gunEnd = "konec hlavne";

minElev=-5; maxElev=20;

minTurn=-360; maxTurn=360;

body = "OtocVez";

gun = "OtocHlaven";

};

class HatchDriver

{

selection="poklop_driver";

axis="osa_poklop_driver";

angle=-130;

};

class HatchCommander

{

selection="poklop_commander";

axis="osa_poklop_commander";

angle=190;

};

class HatchGunner

{

selection="poklop_gunner";

axis="osa_poklop_gunner";

angle=-180;

};

class Reflectors

{

class Left

{

color[]={0.900000,0.800000,0.800000,1.000000};

ambient[]= {0.100000,0.100000,0.100000,1.000000};

position="svetlo PL";

direction="konec L svetla";

hitpoint="svetlo PL";

selection="svetlo PL";

size=0.400000;

brightness=0.200000;

};

class Right

{

color[]={0.900000,0.800000,0.800000,1.000000};

ambient[]={0.100000,0.100000,0.100000,1.000000};

position="svetlo PP";

direction="konec P svetla";

hitpoint="svetlo PP";

selection="svetlo PP";

size=0.400000;

brightness=0.200000;

};

};

};

};

class CfgNonAIVehicles

{

};

class CfgGroups

{

class Resistance

{

name="SwissMOD";

class Armored

{

name="Swiss Leopard 2A4(Pz87)";

class LeoII_Platoon

{

name="Tank Platoon";

class Unit0

{

side=2;

vehicle="sw_panzer";

rank="CAPTAIN";

position[]={0,5,0};

};

class Unit1

{

side=2;

vehicle="sw_panzer";

rank="Lieutnant";

position[]={0,0,0};

};

class Unit2

{

side=2;

vehicle="sw_panzer";

rank="Lieutnant";

position[]={-10,0,0};

};

class Unit3

{

side=2;

vehicle="sw_panzer";

rank="Corporal";

position[]={10,0,0};

};

};

};

};

};

Share this post


Link to post
Share on other sites

hmm...yes...you could also use the SEARCH function of this Forum. I rememer a while back that there was another post about this.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Blind guess, add the following line to your Sw_cann definition:

modelspecial = "";

<span id='postcolor'>

Ok I test it

THX. Rastavovich

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">hmm...yes...you could also use the SEARCH function of this Forum. I rememer a while back that there was another post about this. <span id='postcolor'>

Yes I remember and I've seen but no response for my pb.

THX.

Share this post


Link to post
Share on other sites
Guest BratZ

I don't know of any "modelspecial"

But try closing your cfgmodels with a };

I see that error and I didn't go much further

Share this post


Link to post
Share on other sites

I think you don't have see any, the cfgModel is closed.

sry

THX.

I have added that Rastavovich say befor, and I think the problem is solved.

I do more test with some guys and I see if it's work but for me it's solved.

THX

Share this post


Link to post
Share on other sites

Hi

Had the error message myself a while ago, but that was related to my rocket models. Anyways, I think the problem occurs because you have "panzerLeo2A4" in CfgModels  instead of the "sw_panzer" name used for the rest of the config. That is not critical wrong, as it does compile and no muzzleflash error occurs because the folder the addon is in is called "panzerLeo2A4"

Try changing it to sw_panzer too, just in case. Should leave you witn no need to specify a modelSpecial=""; line.

(by second thought, you now also need to have both the folder and the p3d file named sw_panzer, or muzzleflash bug occurs..But thats no problem if you dont plan to have more models into the same pbo)

brsseb

Share this post


Link to post
Share on other sites

Hi

tanks I would try your solution, that was coherent. I try it now.

thx.

Share this post


Link to post
Share on other sites
Guest BratZ

I have gotten this modelspecial error.And it had to do with me missing a };

I see the cfgmodels isnt closed up top,you say it is,you say it didnt paste or something? You need to close that cfgmodels before you go any further

like this....

class CfgModels

{

class Default {};

class Vehicle: Default {};

class Tank: Vehicle {};

class panzerLeo2A4: Tank {};

}

<-------------------------------insert }; here

class CfgPatches

{

class sw_panzer

{

etc..

Share this post


Link to post
Share on other sites

The class is closed you don't need to close two times LOL

C++

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×