crash on load

This commit is contained in:
Brandon Danyluk 2021-05-06 19:18:44 -06:00
parent d8fb60808a
commit a0e193a241
6 changed files with 213 additions and 5 deletions

View File

@ -1,4 +1,76 @@
class CfgAmmo {
class M_Scalpel_AT;
class ammo_Penetrator_Base;
class GVAR(9m14): M_Scalpel_AT {
aiAmmoUsageFlags = 0;
model = QPATHTOF(data\9m14.p3d);
proxyShape = "\A3\Weapons_F\Ammo\Missile_AT_03_F";
submunitionAmmo = QGVAR(9m14_penetrator);
submunitionDirectionType = "SubmunitionModelDirection";
submunitionInitSpeed = 1000;
submunitionParentSpeedCoef = 0;
submunitionInitialOffset[] = { 0, 0, -0.2 };
hit = 150;
warheadName = "HEAT";
indirectHit = 25;
indirectHitRange = 3.5;
explosive = 0.8;
//displayName = CSTRING(9m14_missile);
//displayNameShort = CSTRING(9m14_missile);
//description = CSTRING(9m14_missile_description);
//descriptionShort = CSTRING(9m14_missile_descriptionShort);
effectsMissile = "missile2";
irLock = 0;
laserLock = 0;
manualControl = 0;
maxSpeed = 100;
thrustTime = 3;
thrust = 125;
timeToLive = 40;
initTime = 0;
EGVAR(rearm,caliber) = 178;
class ace_missileguidance {
enabled = 1;
pitchRate = 5; // Minium flap deflection for guidance
yawRate = 5; // Maximum flap deflection for guidance
canVanillaLock = 0; // Can this default vanilla lock? Only applicable to non-cadet mode
// Guidance type for munitions
defaultSeekerType = "MCLOS";
seekerTypes[] = { "MCLOS" };
defaultSeekerLockMode = "LOAL";
seekerLockModes[] = { "LOAL" };
defaultNavigationType = "Line";
navigationTypes[] = { "Line" };
lineGainP = 1;
lineGainD = 0;
seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos]
seekerAngle = 30; // Angle from the shooter's view that can track the missile
seekerAccuracy = 1; // seeker accuracy multiplier
seekerMinRange = 0;
seekerMaxRange = 3000; // Range from the missile which the seeker can visually search
correctionDistance = 0; // distance from center of crosshair where missile slows down
offsetFromCrosshair[] = { 0, 0, 0 }; // where the missile wants to stay in relation to the center of the crosshair.
// Attack profile type selection
defaultAttackProfile = "WIRE";
attackProfiles[] = {"WIRE"};
};
};
};

View File

@ -1,3 +1,12 @@
class CfgMagazines {
class 12Rnd_PG_missiles;
class GVAR(9m14): 12Rnd_PG_missiles {
count = 1;
initSpeed = 100;
ammo = QGVAR(9m14);
//displayName = CSTRING(9m14_missile);
//displayNameShort = CSTRING(9m14_missile);
//descriptionShort = CSTRING(9m14_missile_descriptionShort);
};
};

View File

@ -1,3 +1,99 @@
class CfgVehicles {
class LandVehicle;
class StaticWeapon: LandVehicle {
class Turrets;
class MainTurret;
class ACE_Actions {
class ACE_MainActions {};
};
};
class StaticATWeapon: StaticWeapon {};
class GVAR(9m14): StaticATWeapon {
scope = 2;
side = 1;
faction = "BLU_F";
crew = "B_UAV_AI";
author = "Brandon (TCVM)";
//displayName = CSTRING(9m14);
model = QPATHTOF(data\9m14_mount.p3d);
picture = "\A3\Static_F_Gamma\data\UI\gear_StaticTurret_AT_CA.paa";
UiPicture = "\A3\Static_F_Gamma\data\UI\gear_StaticTurret_AT_CA.paa";
icon = "\A3\Static_F_Gamma\data\UI\map_StaticTurret_AT_CA.paa";
threat[] = {0.7,1.0,0.1};
cost = 150000;
class Damage {
tex[] = {};
mat[] = {
"a3\static_f_gamma\data\staticturret_01.rvmat",
"a3\static_f_gamma\data\staticturret_01_damage.rvmat",
"a3\static_f_gamma\data\staticturret_01_destruct.rvmat",
"a3\static_f_gamma\data\staticturret_02.rvmat",
"a3\static_f_gamma\data\staticturret_02_damage.rvmat",
"a3\static_f_gamma\data\staticturret_02_destruct.rvmat",
"a3\weapons_f_beta\launchers\titan\data\titan_launcher.rvmat",
"a3\weapons_f_beta\launchers\titan\data\titan_launcher_damage.rvmat",
"a3\weapons_f_beta\launchers\titan\data\titan_launcher_destruct.rvmat",
"a3\weapons_f_beta\launchers\titan\data\titan_mtube.rvmat",
"a3\weapons_f_beta\launchers\titan\data\titan_mtube_damage.rvmat",
"a3\weapons_f_beta\launchers\titan\data\titan_mtube_destruct.rvmat"
};
};
// no human will be in a turret
class Turrets: Turrets {
class MainTurret: MainTurret {
optics = 1;
turretInfoType = "RscWeaponEmpty";
gunnerOpticsModel = "";
minElev = 0;
maxElev = 0;
weapons[] = { QGVAR(9m14) };
magazines[] = { QGVAR(9m14) };
gunnerAction = "";
gunnergetInAction = "";
gunnergetOutAction = "";
discreteDistance[] = {};
discreteDistanceInitIndex = 0;
//displayName = CSTRING(9m14);
class ViewOptics {
initAngleX = 0;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 5;
minAngleY = -100;
maxAngleY = 100;
initFov = 0.055;
minFov = 0.055; // 6 degree FOV
maxFov = 0.055;
visionMode[] = {"Normal"};
thermalMode[] = {0};
};
gunnerRightHandAnimName = "OtocHlaven_shake";
gunnerLeftHandAnimName = "OtocHlaven_shake";
gunBeg = "spice rakety";
gunEnd = "konec rakety";
memoryPointGunnerOptics = "look";
};
};
soundGetOut[] = {"A3\sounds_f\dummysound",0.001,1,5};
soundGetIn[] = {"A3\sounds_f\dummysound",0.00031622776,1,5};
armorStructural = 10.0;
class ACE_CSW {
disassembleTo = QGVAR(super);
};
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
//displayName = CSTRING(9m14);
};
};
};
};

View File

@ -1,4 +1,29 @@
class CfgWeapons {
class MissileLauncher;
class GVAR(9m14): MissileLauncher {
scope = 2;
//displayName = CSTRING(9m14_missile);
magazines[] = { QGVAR(9m14) };
initSpeed = 100;
autoFire = 0;
canLock = 0;
weaponLockSystem = 0;
lockingTargetSound[] = {"",0,1};
lockedTargetSound[] = {"",0,1};
soundFly[] = {"A3\Sounds_F\weapons\Rockets\rocket_fly_1",1,1.1,700};
nameSound = "MissileLauncher";
sounds[] = {"StandardSound"};
class StandardSound {
begin1[] = {"A3\Sounds_F\weapons\Rockets\missile_1",1.12202,1.3,1000};
soundBegin[] = {"begin1",1};
soundsetshot[] = {"RocketsMedium_Shot_SoundSet"};
};
cursor = "EmptyCursor";
cursorAim = "missile";
showAimCursorInternal = 0;
autoReload = 1;
magazineReloadTime = 20;
};
};

Binary file not shown.

View File

@ -4,7 +4,8 @@ class CfgSkeletons {
skeletonInherit = "";
skeletonBones[] = {};
};
class ACE_Malyutka: Default {};
class 9m14: Default {};
class 9m14_mount_mount: Default {};
};
class CfgModels {
class Default {
@ -12,9 +13,14 @@ class CfgModels {
sections[] = {};
skeletonName = "";
};
class ACE_Malyutka : Default {
class 9m14: Default {
sectionsInherit = "";
sections[] = {};
skeletonName = "ACE_Malyutka";
skeletonName = "9m14";
};
class 9m14_mount: Default {
sectionsInherit = "";
sections[] = {};
skeletonName = "9m14_mount";
};
};