i have problem, asked few people on BI, maybe will start topic on config editing
following problem happens :
- when helicopter (gunship version) is "remodel of Mi24" all is okay
i mean :
vil_w3_pl : mi24_d {
model = model of W3 Gluszec
displayname W-3 Pl
crew = Polish pilot...
};
all works fine , but.. it uses Mi24 weapons (YakB) instead of my own NSV
but when i try own turret definion (a lot of problems of class inheritance)
bullets go straight
bullets do not follow gunner view point
body of gun rotates
sensor rotates
optic rotates
but bullets go straight like there was no movement at all
even if i use BIS weapon YakB - problem is because of turret problems
model is good - all selections are applied properly - because Mi24D class shows it
it not works ONLY when i define my own turret
what is most strange - turret turns, but bullets do not obey turret :/
Spoiler:
class Air;
class Helicopter : Air
{
class Turrets
{
class MainTurret;
};
class NewTurret;
};
class VILAS_W3gunship_helicopter : Helicopter {
destrType="DestructWreck";
Icon = "\ca\air\data\map_ico\icomap_mi17_mg_CA.paa";
rotorBig = "velkavrtule";
rotorBigBlend = "velkavrtule_blur";
rotorSmall = "malavrtule";
rotorSmallBlend = "malavrtule_blur";
selectionHRotorStill = "velkavrtule_staticka";
selectionHRotorMove = "velkavrtule_blur";
selectionVRotorStill = "malavrtule_staticka";
selectionVRotorMove = "malavrtule_blur";
class AnimationSource {};
class UserActions {};
scope = 0;
SIDE=1;
driverAction = "Mi8_Pilot";
cargoAction[] = {"Mi8_Cargo", "Mi17_Cargo02"};
radarType=4;
LockDetectionSystem=8;
IncommingMisslieDetectionSystem=16;
minFireTime=30;
threat[]={0.8,1,0.6};
armor=30;
damageResistance=0.00138;
initCargoAngleY=10;
minCargoAngleY=-60;
maxCargoAngleY=120;
gunnerUsesPilotView=0;
cargoIsCoDriver[]={0,0};
driverCanSee=31;
gunnerCanSee=31;
memoryPointsGetInCargo[]={"pos cargo"};
memoryPointsGetInCargoDir[]={"pos cargo dir"};
weapons[] = {};
magazines[] = {};
supplyRadius = 2.5;
transportAmmo = 0;
transportMaxMagazines = 100;
transportMaxWeapons = 10;
dammageHalf[] = {};
dammageFull[] = {};
transportMaxBackpacks = 10;
transportSoldier = 10;
class Damage {
tex[] = {};
mat[] = {"vilas_npl\sw3.rvmat", "vilas_npl\sw3.rvmat", "vilas_npl\sw3_de.rvmat"};
};
class Turrets : Turrets {
class MainTurret : newTurret {
gunnerFireAlsoInInternalCamera= true;
gunnerOutFireAlsoinInternalCamera= true;
gunnerName = $STR_POSITION_GUNNER;
gunnergetInAction = "GetInMedium";
gunnergetOutAction = "GetOutMedium";
lockWhenDriverOut= false;
lockWhenVehicleSpeed= -1 ;
animationSourceHatch = "";
maxVerticalRotSpeed= 1.2;
maxHorizontalRotSpeed= 1.2;
proxyType = "CPGunner";
proxyIndex= 1 ;
memoryPointGun = "kulas";
animationSourceBody = "MainTurret";
animationSourceGun = "MainGun";
weapons[] = {"vil_wkmb", "AT9Launcher", "80mmLauncher"};
magazines[] = {"vil_w3pl_mag", "4Rnd_AT9_Mi24P", "40Rnd_80mm"};
minElev = -25;
maxElev = 4;
initElev = 0;
minTurn = -45;
maxTurn = 45;
initTurn = 0;
startEngine = 0;
soundServo[] = {"", db-40, 1.0};
gunnerOpticsColor[]= {0,0,0,1} ;
gunnerOpticsEffect[]= {} ;
gunnerOpticsModel = "\ca\weapons\2Dscope_HINDgun";
gunneroutOpticsColor[]= {0,0,0,1} ;
gunneroutOpticsEffect[]= {} ;
gunneroutOpticsModel = "";
viewGunnerInExternal= true ;
viewGunnerShadow= true ;
body = "OtocVez";
gun = "OtocHlaven";
gunBeg = "usti_hlavne";
gunEnd = "konec_hlavne";
class ViewGunner {
initAngleX = 5;
minAngleX = -65;
maxAngleX = 85;
initAngleY = 0;
minAngleY = -150;
maxAngleY = 150;
initFov = 0.7;
minFov = 0.25;
maxFov = 1.1;
};
class ViewOptics {
initAngleX = 5;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 0;
minAngleY = 0;
maxAngleY = 0;
initFov = 0.4;
minFov = 0.1;
maxFov = 0.4;
};
gunnerCompartments= "Compartment2";
memoryPointGunnerOptics = "gunnerview";
gunnerAction = "Mi8_Cargo";
gunnerInAction = "Mi8_Cargo";
gunnerForceOptics = 0;
gunnerUsesPilotView= false;
hasgunner = 1;
primaryGunner = 1;
outGunnerMayFire = 1;
InGunnerMayFire= 1;
commanding = -1;
gunnerOutOpticsShowCursor= 1;
gunnerOpticsShowCursor= 0;
gunnerOutForceOptics= false;
castGunnerShadow = 0;
ejectDeadGunner= false;
hideWeaponsGunner= true;
forceHideGunner= false;
canHideGunner= 0;
viewGunnerShadowDiff= 1.0;
viewGunnerShadowAmb= 1.0;
stabilizedInAxes= "StabilizedInAxesBoth";
};
};
driverCompartments = "Compartment1";
cargoCompartments[] = {"Compartment2"};
};
class VIL_PL_W3_PL : VILAS_W3gunship_helicopter {
scope = 2;
vehicleClass = "VIL_polskie_vehair";
faction = "VIL_NWP_Army";
crew = "VIL_SOLDIER_NWP_PLT";
model = "\vilas_npl\vil_w3_pl";
displayName = PZL W-3PL;
irScanRangeMin = 0;
irScanRangeMax = 1000;
nightVision = true;
class Turrets: Turrets {
class MainTurret: mainTurret {
gunnerFireAlsoInInternalCamera= true;
gunnerOutFireAlsoinInternalCamera= true;
gunnerName = $STR_POSITION_GUNNER;
gunnergetInAction = "GetInMedium";
gunnergetOutAction = "GetOutMedium";
lockWhenDriverOut= false;
lockWhenVehicleSpeed= -1 ;
animationSourceHatch = "";
maxVerticalRotSpeed= 1.2;
maxHorizontalRotSpeed= 1.2;
proxyType = "CPGunner";
proxyIndex= 1 ;
memoryPointGun = "kulas";
animationSourceBody = "MainTurret";
animationSourceGun = "MainGun";
weapons[] = {"vil_wkmb", "AT9Launcher", "80mmLauncher"};
magazines[] = {"vil_w3pl_mag", "4Rnd_AT9_Mi24P", "40Rnd_80mm"};
minElev = -25;
maxElev = 4;
initElev = 0;
minTurn = -45;
maxTurn = 45;
initTurn = 0;
startEngine = 0;
soundServo[] = {"", db-40, 1.0};
gunnerOpticsColor[]= {0,0,0,1} ;
gunnerOpticsEffect[]= {} ;
gunnerOpticsModel = "\ca\weapons\2Dscope_HINDgun";
gunneroutOpticsColor[]= {0,0,0,1} ;
gunneroutOpticsEffect[]= {} ;
gunneroutOpticsModel = "";
viewGunnerInExternal= true ;
viewGunnerShadow= true ;
body = "OtocVez";
gun = "OtocHlaven";
gunBeg = "usti_hlavne";
gunEnd = "konec_hlavne";
class ViewGunner {
initAngleX = 5;
minAngleX = -65;
maxAngleX = 85;
initAngleY = 0;
minAngleY = -150;
maxAngleY = 150;
initFov = 0.7;
minFov = 0.25;
maxFov = 1.1;
};
class ViewOptics {
initAngleX = 5;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 0;
minAngleY = 0;
maxAngleY = 0;
initFov = 0.4;
minFov = 0.1;
maxFov = 0.4;
};
gunnerCompartments= "Compartment2";
memoryPointGunnerOptics = "gunnerview";
gunnerAction = "Mi8_Cargo";
gunnerInAction = "Mi8_Cargo";
gunnerForceOptics = 0;
gunnerUsesPilotView= false;
hasgunner = 1;
primaryGunner = 1;
outGunnerMayFire = 1;
InGunnerMayFire= 1;
commanding = -1;
gunnerOutOpticsShowCursor= 1;
gunnerOpticsShowCursor= 0;
gunnerOutForceOptics= false;
castGunnerShadow = 0;
ejectDeadGunner= false;
hideWeaponsGunner= true;
forceHideGunner= false;
canHideGunner= 0;
viewGunnerShadowDiff= 1.0;
viewGunnerShadowAmb= 1.0;
stabilizedInAxes= "StabilizedInAxesBoth";
};
};
};
when i tried other inheritances of turret i get :
http://img241.imageshack.us/img241/1427/octt.jpg
so i tried 3 days and i gave up now
i cannot understand what is wrong
why bullets follow sight point when model is using Mi24 class , but not follows when own turret definition is made