Sorry to unsolve this, but I ran into a problem.
It only works on some guns.
Heres the config for a gun that has the new sights.
class UP_K98Kb:Riffle
{
displayName = Karabiner 98k;
displayNameMagazine="K98K Magazine";
shortNameMagazine="K98K Mag";
scopeWeapon = public;
scopeMagazine = public;
model="\UP_WW2\KAR98b\kar98b.p3d";
modelOptics="\sz_optics\opt_kar98";
picture="\UP_WW2\pics\German\K98.paa";
optics = true;
opticsZoomMin=0.35;
opticsZoomMax=0.35;
count=5;
ammo="UP_K98Ammo";
magazines[]={"UP_K98Kmag"};
reloadSound[]={\UP_WW2\SOUND\KARSniperReload2.ogg,0.0316,1};
reloadMagazineSound[]={\UP_WW2\SOUND\KARReload.ogg,0.0316,1};
modes[]={"Single"};
class Single
{
ammo="UP_K98Ammo";
multiplier=1;
burst=0;
displayName="K98K Single";
dispersion=0.0100;
soundContinuous=0;
reloadTime=1.4;
sound[]={"\UP_WW2\SOUND\Mauser98Fire.ogg",1.000000,1};
ffCount=1;
recoil="riffleSingle";
autoFire=0;
aiRateOfFire=2;
aiRateOfFireDistance=200;
useAction=0;
useActionTitle="";
};
That works fine.
In the same config file, heres one of the guns that doesn't work.
class UP_BREN:Riffle
{
displayName = Berthier-Vickers LMG;
displayNameMagazine="BREN Magazine";
shortNameMagazine="BREN Mag";
scopeWeapon = public;
scopeMagazine = public;
model="\UP_WW2\Bren\bren.p3d";
modelOptics="\sz_optics\opt_bren";
picture="\UP_WW2\pics\Uk\bren.paa";
optics = true;
opticsZoomMin=0.35;
opticsZoomMax=0.35;
count=30;
ammo="UP_DTMAMMO";
magazines[]={"UP_BRENmag"};
reloadMagazineSound[]={\UP_WW2\sound\SVT40_reload.ogg,0.0316,1};
modes[]={"FullAuto"};
class FullAuto
{
ammo="UP_DTMAMMO";
multiplier=1;
burst=1;
displayName="BREN Auto";
dispersion=0.02500;
soundContinuous=0;
reloadTime=0.1200000;
sound[]={"\UP_WW2\sound\bren.wav",1.000000,1};
ffCount=1;
recoil="riffleSingle";
autoFire=1;
aiRateOfFire=0.085
aiRateOfFireDistance=100;
useAction=0;
useActionTitle="";
};
I personnaly cannot see any difference that should make the Bren gun keep its original optics. They arn't even mentioned in the file any more, but it still has them.
Does anyone have any idea where/how i've screwed up?
Thanks