Crazy_Man 36 Posted January 21, 2021 Hi ! I'm creating a deathmatch mission with armed hatchback sport. I can add to the driver turret [-1] some weapons with addWeaponTurret command but I want to go further. I'm trying to add a turret by creating an addon. I have no experience in creating addon so I'm asking for help. I've successfully created the addon but the turret seems to doesn't take the specification that I give to it in the config.cpp file. I just have a new gunner compartiment but can't fire nor aim. Here's the config.cpp : (The main part is at the end of the config.cpp but for inherithance I put all the stuff). class CfgPatches { class A3_Soft_F_Gamma_Hatchback_01 { addonRootClass="A3_Soft_F_Gamma"; requiredAddons[]= { "A3_Soft_F_Gamma" }; requiredVersion=0.1; units[]= { "C_Hatchback_01_sport_blue_F", "C_Hatchback_01_sport_F_rampage", "C_Hatchback_01_sport_green_F", "C_Hatchback_01_sport_grey_F", "C_Hatchback_01_sport_orange_F", "C_Hatchback_01_sport_red_F", "C_Hatchback_01_sport_white_F" }; weapons[]={}; }; }; class DefaultEventHandlers; class WeaponFireGun; class WeaponCloudsGun; class WeaponFireMGun; class WeaponCloudsMGun; class CfgVehicles { class LandVehicle; class Car: LandVehicle { class HitPoints; class Components; class NewTurret; // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! }; class Car_F: Car { class HitPoints { class HitLFWheel; class HitLF2Wheel; class HitRFWheel; class HitRF2Wheel; class HitBody; class HitFuel; class HitEngine; class HitGlass1; class HitGlass2; class HitGlass3; class HitGlass4; }; class Components: Components { class AICarSteeringComponent; }; class EventHandlers; }; class Hatchback_01_base_F: Car_F { author="$STR_A3_Bohemia_Interactive"; mapSize=5.3299999; _generalMacro="Hatchback_01_base_F"; model="\A3\soft_f_gamma\Hatchback_01\Hatchback_01_F"; picture="\A3\soft_f_gamma\Hatchback_01\Data\UI\car_CA.paa"; editorSubcategory="EdSubcat_Cars"; Icon="\A3\soft_f_gamma\Hatchback_01\Data\UI\map_car_CA.paa"; memoryPointTaskMarker="TaskMarker_1_pos"; slingLoadCargoMemoryPoints[]= { "SlingLoadCargo1", "SlingLoadCargo2", "SlingLoadCargo3", "SlingLoadCargo4" }; unitInfoType="RscUnitInfoNoWeapon"; displayName="$STR_A3_CfgVehicles_Car_Base0"; class Library { libTextDesc="$STR_A3_CfgVehicles_Car_Base_Library0"; }; htMin=600; htMax=1800; afMax=100; mfMax=20; mFact=0; tBody=0; hiddenSelections[]= { "camo1" }; acceleration=15; maxFordingDepth=-0.34999999; class PlayerSteeringCoefficients { turnIncreaseConst=1; turnIncreaseLinear=3; turnIncreaseTime=0; turnDecreaseConst=2; turnDecreaseLinear=8; turnDecreaseTime=0; maxTurnHundred=1; }; class Components: Components { class AICarSteeringComponent: AICarSteeringComponent { steeringPIDWeights[]={8.5,0.003,0.40000001}; maxWheelAngleDiff=0.1; forwardAngleCoef=4; }; }; fireResistance=5; armor=30; armorLights=0.0099999998; cost=50000; transportMaxBackpacks=0; transportSoldier=3; class TransportItems { class _xx_FirstAidKit { name="FirstAidKit"; count=4; }; }; class AnimationSources; class HitPoints: HitPoints { class HitLFWheel: HitLFWheel { radius=0.25; visual="wheel_1_1_damage"; armorComponent="wheel_1_1_hide"; armor=-80; minimalHit=0; explosionShielding=4; passThrough=0; }; class HitLF2Wheel: HitLF2Wheel { radius=0.25; visual="wheel_1_2_damage"; armorComponent="wheel_1_2_hide"; armor=-80; minimalHit=0; explosionShielding=4; passThrough=0; }; class HitRFWheel: HitRFWheel { radius=0.25; visual="wheel_2_1_damage"; armorComponent="wheel_2_1_hide"; armor=-80; minimalHit=0; explosionShielding=4; passThrough=0; }; class HitRF2Wheel: HitRF2Wheel { radius=0.25; visual="wheel_2_2_damage"; armorComponent="wheel_2_2_hide"; armor=-80; minimalHit=0; explosionShielding=4; passThrough=0; }; class HitFuel: HitFuel { name="fuel"; }; class HitEngine: HitEngine { name="engine"; }; class HitBody: HitBody { visual="camo1"; passThrough=0.60000002; }; class HitGlass1: HitGlass1 { armor=0.25; }; class HitGlass2: HitGlass2 { armor=0.25; }; class HitGlass3: HitGlass3 { armor=0.25; }; class HitGlass4: HitGlass4 { armor=0.25; }; }; wheelDamageThreshold=0.025; wheelDamageRadiusCoef=0.89999998; wheelDestroyRadiusCoef=0.60000002; driverAction="driver_offroad01"; cargoAction[]= { "passenger_low01", "passenger_generic01_leanleft", "passenger_generic01_foldhands" }; getInAction="GetInLow"; getOutAction="GetOutLow"; cargoGetInAction[]= { "GetInLow" }; cargoGetOutAction[]= { "GetOutLow" }; extCameraPosition[]={0,2,-7.8000002}; camShakeCoef=0.80000001; class RenderTargets { class LeftMirror { renderTarget="rendertarget0"; class CameraView1 { pointPosition="PIP0_pos"; pointDirection="PIP0_dir"; renderQuality=2; renderVisionMode=0; fov=0.69999999; }; }; class RearCam { renderTarget="rendertarget1"; class CameraView1 { pointPosition="PIP1_pos"; pointDirection="PIP1_dir"; renderQuality=2; renderVisionMode=0; fov=0.69999999; }; }; class FrontCam { renderTarget="rendertarget2"; class CameraView1 { pointPosition="PIP2_pos"; pointDirection="PIP2_dir"; renderQuality=2; renderVisionMode=0; fov=0.69999999; }; }; }; simulation="CarX"; fuelCapacity=16; brakeIdleSpeed=1.94444; thrustDelay=0.5; turnCoef=2.5999999; terrainCoef=4.5; wheelCircumference=2.233; maxSpeed=190; normalSpeedForwardCoef=0.47368401; slowSpeedForwardCoef=0.26315799; accelAidForceCoef=2; accelAidForceYOffset=-1; accelAidForceSpd=2.2; enginePower=103; maxOmega=733.03802; minOmega=83.775803; idleRpm=800; redRpm=7000; peakTorque=174; torqueCurve[]= { {0.114286,0.80459797}, {0.142857,0.827586}, {0.31428599,0.94827598}, {0.442857,0.971264}, {0.61428601,1}, {0.771429,0.982759}, {0.85714298,0.96551698}, {1,0.86206901} }; engineMOI=0.60000002; dampingRateFullThrottle=0.1; dampingRateZeroThrottleClutchEngaged=0.16; dampingRateZeroThrottleClutchDisengaged=0.079999998; clutchStrength=9; latency=1; switchTime=0.5; differentialType="front_open"; changeGearType="rpmratio"; changeGearOmegaRatios[]={1,0.142857,0.117143,0.142857,0.71428603,0.121429,0.71428603,0.35714301,0.67142898,0.35714301,0.64285702,0.371429,0.64285702,0.40000001,1,0.42857099}; class complexGearbox { GearboxRatios[]= { "R1", -3.2, "N", 0, "D1", 3.5999999, "D2", 2.2, "D3", 1.35, "D4", 1.05, "D5", 0.85000002, "D6", 0.75 }; TransmissionRatios[]= { "High", 6 }; gearBoxMode="full-auto"; moveOffGear=1; driveString="D"; neutralString="N"; reverseString="R"; }; dampersBumpCoef=3; antiRollbarForceCoef=3; antiRollbarForceLimit=2; antiRollbarSpeedMin=0; antiRollbarSpeedMax=100; class Wheels { class LF { side="left"; suspTravelDirection[]={-0.125,-1,0}; boneName="wheel_1_1_damper"; center="wheel_1_1_axis"; boundary="wheel_1_1_bound"; suspForceAppPointOffset="wheel_1_1_axis"; tireForceAppPointOffset="wheel_1_1_axis"; steering=1; width=0.2; mass=20; MOI=1.13677; dampingRate=0.2; dampingRateDamaged=1; dampingRateDestroyed=1000; maxDroop=0.091499999; maxCompression=0.091499999; sprungMass=340; springStrength=31500; springDamperRate=5500; maxBrakeTorque=2700; maxHandBrakeTorque=0; latStiffX=2; latStiffY=28.6479; longitudinalStiffnessPerUnitGravity=5000; frictionVsSlipGraph[]= { {0,0.85000002}, {0.1,1.4}, {0.60000002,0.89999998} }; }; class LR: LF { boneName="wheel_1_2_damper"; center="wheel_1_2_axis"; boundary="wheel_1_2_bound"; suspForceAppPointOffset="wheel_1_2_axis"; tireForceAppPointOffset="wheel_1_2_axis"; steering=0; sprungMass=245; maxBrakeTorque=2000; maxHandBrakeTorque=2000; latStiffY=25.7831; frictionVsSlipGraph[]= { {0,0.75}, {0.12,1.2}, {0.60000002,0.89999998} }; }; class RF: LF { side="right"; suspTravelDirection[]={0.125,-1,0}; boneName="wheel_2_1_damper"; center="wheel_2_1_axis"; boundary="wheel_2_1_bound"; suspForceAppPointOffset="wheel_2_1_axis"; tireForceAppPointOffset="wheel_2_1_axis"; sprungMass=340; }; class RR: RF { boneName="wheel_2_2_damper"; center="wheel_2_2_axis"; boundary="wheel_2_2_bound"; suspForceAppPointOffset="wheel_2_2_axis"; tireForceAppPointOffset="wheel_2_2_axis"; steering=0; sprungMass=245; maxBrakeTorque=3000; maxHandBrakeTorque=2000; latStiffY=25.7831; frictionVsSlipGraph[]= { {0,0.75}, {0.12,1.2}, {0.60000002,0.89999998} }; }; }; class TextureSources { class Beige { displayName="$STR_A3_TEXTURESOURCES_BEIGE0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\Soft_F_Gamma\Hatchback_01\data\Hatchback_01_ext_BASE01_CO.paa" }; factions[]= { "CIV_F" }; }; class Green { displayName="$STR_A3_TEXTURESOURCES_GREEN0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\Soft_F_Gamma\Hatchback_01\data\Hatchback_01_ext_BASE02_CO.paa" }; factions[]= { "CIV_F" }; }; class Blue { displayName="$STR_A3_TEXTURESOURCES_BLUE0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\Soft_F_Gamma\Hatchback_01\data\Hatchback_01_ext_BASE03_CO.paa" }; factions[]= { "CIV_F" }; }; class Bluecustom { displayName="$STR_A3_TEXTURESOURCES_BLUECUSTOM0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\Soft_F_Gamma\Hatchback_01\data\Hatchback_01_ext_BASE04_CO.paa" }; factions[]= { "CIV_F" }; }; class Beigecustom { displayName="$STR_A3_TEXTURESOURCES_BEIGECUSTOM0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\Soft_F_Gamma\Hatchback_01\data\Hatchback_01_ext_BASE05_CO.paa" }; factions[]= { "CIV_F" }; }; class Yellow { displayName="$STR_A3_TEXTURESOURCES_YELLOW0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\Soft_F_Gamma\Hatchback_01\data\Hatchback_01_ext_BASE06_CO.paa" }; factions[]= { "CIV_F" }; }; class Grey { displayName="$STR_A3_TEXTURESOURCES_GREY0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\Soft_F_Gamma\Hatchback_01\data\Hatchback_01_ext_BASE07_CO.paa" }; factions[]= { "CIV_F" }; }; class Black { displayName="$STR_A3_TEXTURESOURCES_BLACK0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\Soft_F_Gamma\Hatchback_01\data\Hatchback_01_ext_BASE08_CO.paa" }; factions[]= { "CIV_F" }; }; class Dark { displayName="$STR_A3_TEXTURESOURCES_DARK0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\Soft_F_Gamma\Hatchback_01\data\Hatchback_01_ext_BASE09_CO.paa" }; factions[]= { "CIV_F" }; }; }; animationList[]={}; textureList[]= { "Beige", 1, "Green", 1, "Blue", 1, "Bluecustom", 1, "Beigecustom", 1, "Yellow", 1, "Grey", 1, "Black", 1, "Dark", 1 }; class MFD { class Dashboard { topLeft="MFD_1_TL"; topRight="MFD_1_TR"; bottomLeft="MFD_1_BL"; borderLeft=0; borderRight=0; borderTop=0; borderBottom=0; color[]={0.15000001,0.15000001,1,1}; enableParallax=0; class Bones { }; class Draw { color[]={0.050000001,1,0.050000001}; alpha=1; condition="on"; class SpeedStatic { type="text"; source="static"; text="KM/H"; scale=1; sourceScale=1; align="right"; pos[]= { {0.74000001,0.58999997}, 1 }; right[]= { {0.80000001,0.58999997}, 1 }; down[]= { {0.74000001,0.64999998}, 1 }; }; class Speed { type="text"; source="speed"; sourceScale=3.5999999; sourceLength=1; align="left"; scale=2; pos[]= { {0.70999998,0.46000001}, 1 }; right[]= { {0.94999999,0.46000001}, 1 }; down[]= { {0.70999998,0.69999999}, 1 }; }; }; }; }; class Damage { tex[]={}; mat[]= { "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_paint.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_paint_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_paint_destruct.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_paint_mlod.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_paint_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_paint_destruct.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_intbase.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_intbase_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_intbase_destruct.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_intbase_mlod.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_intbase_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_intbase_destruct.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_intbase_lod1.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_intbase_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_intbase_destruct.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_INTboard.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_INTboard_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_INTboard_destruct.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_INTboard_LOD1.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_INTboard_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_INTboard_destruct.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_INTboard_mlod.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_INTboard_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_INTboard_destruct.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_wheel_rim.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_paint_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_paint_destruct.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_wheel_rubber.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_paint_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_paint_destruct.rvmat", "A3\data_f\glass_veh_int.rvmat", "A3\data_f\Glass_veh_damage.rvmat", "A3\data_f\Glass_veh_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_glass_window_mlod.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_glass_window_damage.rvmat", "A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_glass_window_damage.rvmat", "A3\data_f\glass_veh.rvmat", "A3\data_f\Glass_veh_damage.rvmat", "A3\data_f\Glass_veh_damage.rvmat" }; }; class Exhausts { class Exhaust1 { position="exhaust"; direction="exhaust_dir"; effect="ExhaustsEffect"; }; class Exhaust2 { position="exhaust2_pos"; direction="exhaust2_dir"; effect="ExhaustsEffect"; }; }; class Reflectors { class LightCarHeadL01 { color[]={1.9,1.8,1.7}; ambient[]={5,5,5}; position="LightCarHeadL01"; direction="LightCarHeadL01_end"; hitpoint="Light_L"; selection="Light_L"; size=1; innerAngle=30; outerAngle=179; coneFadeCoef=10; intensity=100; useFlare=1; dayLight=0; flareSize=1; class Attenuation { start=1; constant=0; linear=0; quadratic=0.050000001; hardLimitStart=50; hardLimitEnd=80; }; }; class LightCarHeadL02: LightCarHeadL01 { position="LightCarHeadL02"; direction="LightCarHeadL02_end"; FlareSize=0.5; }; class LightCarHeadR01: LightCarHeadL01 { position="LightCarHeadR01"; direction="LightCarHeadR01_end"; hitpoint="Light_R"; selection="Light_R"; }; class LightCarHeadR02: LightCarHeadR01 { position="LightCarHeadR02"; direction="LightCarHeadR02_end"; FlareSize=0.5; }; }; aggregateReflectors[]= { { "LightCarHeadL01", "LightCarHeadL02" }, { "LightCarHeadR01", "LightCarHeadR02" } }; }; class Hatchback_01_sport_base_F: Hatchback_01_base_F { author="$STR_A3_Bohemia_Interactive"; _generalMacro="Hatchback_01_sport_base_F"; scope=0; forceInGarage=1; fuelCapacity=16; brakeIdleSpeed=2.5; maxSpeed=300; normalSpeedForwardCoef=0.5; slowSpeedForwardCoef=0.166667; enginePower=285; maxOmega=733.03802; minOmega=104.72; idleRpm=1000; redRpm=7000; peakTorque=450; torqueCurve[]= { {0.142857,0.533333}, {0.285714,0.68888903}, {0.42857099,0.84444398}, {0.57142901,0.92444402}, {0.71428603,1}, {0.78571397,1}, {0.85714298,0.93333298}, {1,0.73333299} }; engineMOI=0.80000001; dampingRateFullThrottle=0.15000001; dampingRateZeroThrottleClutchEngaged=0.2; dampingRateZeroThrottleClutchDisengaged=0.1; clutchStrength=15; latency=0.40000001; switchTime=0.050000001; differentialType="all_limited"; frontRearSplit=0.44999999; frontBias=1.3; rearBias=1.3; centreBias=1.3; changeGearType="rpmratio"; changeGearOmegaRatios[]={1,0.142857,0.228571,0.142857,0.92857099,0.214286,0.92857099,0.64285702,0.92857099,0.64285702,0.92857099,0.64285702,0.92857099,0.64285702,1,0.64285702}; class complexGearbox { GearboxRatios[]= { "R1", -3.8, "N", 0, "D1", 3.5999999, "D2", 2.1500001, "D3", 1.55, "D4", 1.15, "D5", 0.89999998, "D6", 0.67000002 }; TransmissionRatios[]= { "High", 4.6999998 }; gearBoxMode="auto"; moveOffGear=1; driveString="D"; neutralString="N"; reverseString="R"; }; antiRollbarForceCoef=8; antiRollbarForceLimit=6; antiRollbarSpeedMax=160; class Wheels: Wheels { class LF: LF { width=0.25; MOI=1.13677; dampingRate=0.15000001; springStrength=42000; springDamperRate=5600; maxBrakeTorque=3600; latStiffY=31.512699; longitudinalStiffnessPerUnitGravity=6000; frictionVsSlipGraph[]= { {0,1}, {0.059999999,1.8}, {0.69999999,1} }; }; class LR: LR { maxBrakeTorque=3000; maxHandBrakeTorque=3000; latStiffY=28.6479; frictionVsSlipGraph[]= { {0,0.80000001}, {0.1,1.4}, {0.60000002,1} }; }; class RF: RF { }; class RR: RR { maxBrakeTorque=3000; maxHandBrakeTorque=3000; latStiffY=28.6479; frictionVsSlipGraph[]= { {0,0.80000001}, {0.1,1.4}, {0.69999999,1} }; }; }; class PlayerSteeringCoefficients { turnIncreaseConst=2; turnIncreaseLinear=6; turnIncreaseTime=0; turnDecreaseConst=2; turnDecreaseLinear=8; turnDecreaseTime=0; maxTurnHundred=1; }; class Components: Components { class AICarSteeringComponent: AICarSteeringComponent { maxWheelAngleDiff=0.25; wheelAngleCoef=0; forwardAngleCoef=3; steeringAngleCoef=0.5; differenceAngleCoef=1.5; doRemapSpeed=0; allowDrifting=1; }; }; class TextureSources { class Red { displayName="$STR_A3_TEXTURESOURCES_RED0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_ext_SPORT01_CO.paa" }; factions[]= { "CIV_F" }; }; class Blue { displayName="$STR_A3_TEXTURESOURCES_BLUE0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_ext_SPORT02_CO.paa" }; factions[]= { "CIV_F" }; }; class Orange { displayName="$STR_A3_TEXTURESOURCES_ORANGE0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_ext_SPORT03_CO.paa" }; factions[]= { "CIV_F" }; }; class White { displayName="$STR_A3_TEXTURESOURCES_WHITE0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_ext_SPORT04_CO.paa" }; factions[]= { "CIV_F" }; }; class Beige { displayName="$STR_A3_TEXTURESOURCES_BEIGE0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_ext_SPORT05_CO.paa" }; factions[]= { "CIV_F" }; }; class Green { displayName="$STR_A3_TEXTURESOURCES_GREEN0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_ext_SPORT06_CO.paa" }; factions[]= { "CIV_F" }; }; class Grey { displayName="$STR_A3_TEXTURESOURCES_GREY0"; author="$STR_A3_Bohemia_Interactive"; textures[]= { "\A3\Soft_F_Gamma\Hatchback_01\data\Hatchback_01_ext_BASE07_CO.paa" }; factions[]= { "CIV_F" }; deprecated=1; }; }; animationList[]={}; textureList[]= { "Red", 1, "Blue", 1, "Orange", 1, "White", 1, "Beige", 1, "Green", 1 }; }; class C_Hatchback_01_sport_F_rampage: Hatchback_01_sport_base_F { features="Randomization: Yes, 6 skins, disabled by: this setVariable [""BIS_enableRandomization"",false]; <br />Specific skin may be set by: this setVariable [""color"",X]; (the number ranges from 0 to 5) <br />Camo selections: 1 - the whole body <br />Script door sources: None <br />Script animations: None <br />Executed scripts: \A3\soft_f_gamma\Hatchback_01\scripts\randomize_sports.sqf <br />Firing from vehicles: No <br />Slingload: No <br />Cargo proxy indexes: 1 to 3"; author="$STR_A3_Bohemia_Interactive"; class SimpleObject { eden=1; animate[]= { { "damagehide", 0 }, { "damagehidevez", 0 }, { "damagehidehlaven", 0 }, { "wheel_1_1_destruct", 0 }, { "wheel_1_2_destruct", 0 }, { "wheel_1_3_destruct", 0 }, { "wheel_1_4_destruct", 0 }, { "wheel_2_1_destruct", 0 }, { "wheel_2_2_destruct", 0 }, { "wheel_2_3_destruct", 0 }, { "wheel_2_4_destruct", 0 }, { "wheel_1_1_destruct_unhide", 0 }, { "wheel_1_2_destruct_unhide", 0 }, { "wheel_1_3_destruct_unhide", 0 }, { "wheel_1_4_destruct_unhide", 0 }, { "wheel_2_1_destruct_unhide", 0 }, { "wheel_2_2_destruct_unhide", 0 }, { "wheel_2_3_destruct_unhide", 0 }, { "wheel_2_4_destruct_unhide", 0 }, { "glass1_destruct", 0 }, { "glass2_destruct", 0 }, { "glass3_destruct", 0 }, { "glass4_destruct", 0 }, { "glass6_destruct", 0 }, { "wheel_1_1", 0 }, { "wheel_2_1", 0 }, { "wheel_1_2", 0 }, { "wheel_2_2", 0 }, { "pedal_thrust", 0 }, { "pedal_brake", 0 }, { "wheel_1_1_damage", 0 }, { "wheel_1_2_damage", 0 }, { "wheel_2_1_damage", 0 }, { "wheel_2_2_damage", 0 }, { "wheel_1_1_damper_damage_backanim", 0 }, { "wheel_1_2_damper_damage_backanim", 0 }, { "wheel_2_1_damper_damage_backanim", 0 }, { "wheel_2_2_damper_damage_backanim", 0 }, { "drivingwheel", 0 }, { "steering_1_1", 0 }, { "steering_2_1", 0 }, { "indicatorrpm", 0 }, { "fuel", 1 }, { "prop_01", 0 }, { "daylights", 0 }, { "reverse_light", 1 }, { "damagehidedoor1", 0 }, { "damagehidedoor2", 0 }, { "glass5_destruct", 0 }, { "wheel_1_1_damper", 0 }, { "wheel_2_1_damper", 0 }, { "wheel_1_2_damper", 0 }, { "wheel_2_2_damper", 0 } }; hide[]= { "clan", "zasleh", "light_l", "light_r", "zadni svetlo", "brzdove svetlo", "podsvit pristroju", "poskozeni" }; verticalOffset=1.382; verticalOffsetWorld=-0.068000004; init="''"; }; editorPreview="\A3\EditorPreviews_F\Data\CfgVehicles\C_Hatchback_01_sport_F.jpg"; _generalMacro="C_Hatchback_01_sport_F_rampage"; scope=2; crew="C_man_1"; side=3; faction="CIV_F"; displayName="Hatchback rampage"; hiddenSelectionsTextures[]= { "\A3\soft_f_gamma\Hatchback_01\data\Hatchback_01_ext_SPORT01_CO.paa" }; class EventHandlers: EventHandlers { init="if (local (_this select 0)) then {[(_this select 0), """", [], false] call bis_fnc_initVehicle;};"; }; class Reflectors: Reflectors { class LightCarHeadL01: LightCarHeadL01 { color[]={1300,1300,2200}; ambient[]={5,5,7}; innerAngle=30; outerAngle=100; coneFadeCoef=10; intensity=2; class Attenuation { start=2; constant=0; linear=0.1; quadratic=0.0099999998; hardLimitStart=90; hardLimitEnd=150; }; }; class LightCarHeadL02: LightCarHeadL01 { position="LightCarHeadL02"; direction="LightCarHeadL02_end"; FlareSize=0.5; }; class LightCarHeadR01: LightCarHeadL01 { position="LightCarHeadR01"; direction="LightCarHeadR01_end"; hitpoint="Light_R"; selection="Light_R"; }; class LightCarHeadR02: LightCarHeadL01 { position="LightCarHeadR02"; direction="LightCarHeadR02_end"; FlareSize=0.5; }; }; //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! class Turrets { class MainTurret: NewTurret { proxyIndex = 1; // <-- original cargo index that we are converting to new turret for firing maxElev = 45; // <-- elevation and rotation limits for the new turret minElev = -10; maxTurn = 45; minTurn = -45; turretFollowFreeLook = 1; InGunnerMayFire = true; body="mainTurret"; gun="mainGun"; animationSourceBody="mainTurret"; animationSourceGun="mainGun"; gunnerForceOptics=0; gunnerOutOpticsShowCursor=0; weapons[]= { "HMG_M2_Mounted" }; magazines[]= { "100Rnd_127x99_mag_Tracer_Yellow" }; }; }; //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! }; // etc... others stuff for hatchback texture randomization with scope=1 Share this post Link to post Share on other sites