- Added camouflage variants
- Fixed weapon loudness at distance
- Fixed issue with the weapon getting Arma´d after a casing is ejected
This commit is contained in:
Tklama
2025-03-10 17:50:51 +01:00
parent f178efc5ae
commit f23da89e7e
42 changed files with 143 additions and 64 deletions

View File

@@ -22,24 +22,4 @@
No
*/
#include "..\script_component.hpp"
params ["_arty"];
// tbd_mortars_105mm_casing_spent
private _spawnPoint = _arty modelToWorldVisual (_arty selectionPosition ["casing_spawn", "Memory"]);
private _soundPos = _arty modelToWorldVisual (_arty selectionPosition ["casing_hit", "Memory"]);
private _dirAndUp = _arty selectionVectorDirAndUp ["casing_spawn", "Memory"];
_dirAndUp set [0, _arty vectorModelToWorld _dirAndUp#0];
_dirAndUp set [1, _arty vectorModelToWorld _dirAndUp#1];
// Spawn a new magazine at this position
private _casing = createVehicle ["tbd_mortars_105mm_casing_spent", _spawnPoint, [], 0, "CAN_COLLIDE"];
_casing setVectorDirAndUp _dirAndUp;
_casing allowDamage false;
// Add vertical force to the magazine
[{params ["_casing"]; _casing addForce [_casing vectorModelToWorld [0, -100, 0], [0, 0, 0]];}, [_casing]] call CBA_fnc_execNextFrame;
playsound3D [QPATHTO_R(TBD_M119\sounds\casing_drop.ogg), _casing, false, _soundPos , 5, 1, 30, 0.5];

View File

@@ -2,7 +2,27 @@ class CfgSoundShaders {
class TBD_M119_SHOT_SOUNDSHADER {
samples[] = {{QPATHTOF(TBD_M119\sounds\M119shot.ogg), 1}};
volume = 4;
range = 1000;
rangeCurve = "LinearCurve";
range = 2500;
rangeCurve[] = {{0, 1},
{5, 1},
{6, 1},
{150, 1},
{300, 1},
{450, 1},
{500, 1},
{600, 0.95},
{750, 0.90},
{900, 0.85},
{1050, 0.80},
{1200, 0.75},
{1350, 0.70},
{1500, 0.65},
{1750, 0.60},
{1900, 0.55},
{2050, 0.50},
{2200, 0.45},
{2350, 0.40},
{2500, 0.35}
};
};
};

View File

@@ -47,6 +47,56 @@ class CfgVehicles {
accuracy = 0.8;
EPEImpulseDamageCoef = 5;
hiddenSelections[] = {"camo1","camo2","camo3","camo4","camo5","camo6","camo7","camo8","camo9"};
hiddenSelectionsTextures[] = {"x\TBD_M119\addons\M119\tbd_m119\data\one_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\two_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\three_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\four_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\five_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\six_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\seven_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\plate_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\scope_co.paa"};
class TextureSources {
class dark_green {
author = "Tklama";
displayName = "Dark Green";
factions [] = {};
textures[] = {"x\TBD_M119\addons\M119\tbd_m119\data\one_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\two_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\three_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\four_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\five_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\six_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\seven_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\plate_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\scope_co.paa"};
};
class lightgreen {
author = "Tklama";
displayName = "Light Green";
factions [] = {};
textures[] = {"x\TBD_M119\addons\M119\tbd_m119\data\one_lg_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\two_lg_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\three_lg_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\four_lg_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\five_lg_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\six_lg_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\seven_lg_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\plate_lg_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\scope_lg_co.paa"};
};
class desert {
author = "Tklama";
displayName = "Desert";
factions [] = {};
textures[] = {"x\TBD_M119\addons\M119\tbd_m119\data\one_desert_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\two_desert_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\three_desert_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\four_desert_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\five_desert_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\six_desert_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\seven_desert_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\plate_desert_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\scope_desert_co.paa"};
};
class arctic {
author = "Tklama";
displayName = "Arctic";
factions [] = {};
textures[] = {"x\TBD_M119\addons\M119\tbd_m119\data\one_arctic_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\two_arctic_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\three_arctic_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\four_arctic_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\five_arctic_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\six_arctic_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\seven_arctic_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\plate_arctic_co.paa","x\TBD_M119\addons\M119\tbd_m119\data\scope_arctic_co.paa"};
};
};
class Turrets: Turrets {
class MainTurret: MainTurret {
gunnerRightHandAnimName = "vertical_handpos";
@@ -346,6 +396,12 @@ class CfgVehicles {
initPhase = 0;
animPeriod = 1;
};
class m119_reload_source
{
weapon = "TBD_M119_WEAPON";
source = "reload";
};
};
class ACE_Actions: ACE_Actions {

View File

@@ -19,7 +19,7 @@ class CfgWeapons {
};
modes[] = {"Single"};
reloadSound[] = {};
reloadMagazineSound[] = {};
reloadMagazineSound[] = {QPATHTOF(TBD_M119\sounds\reload.ogg), 3, 1, 50};
magazineReloadTime = 0.5;
class Single: Mode_SemiAuto {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -7,12 +7,12 @@
#define _ARMA_
//Class armor_f_gamma : MBT_01\Data\MBT_01_body.rvmat{
ambient[] = { 0.65, 0.65, 0.65, 0.65 };
diffuse[] = { 0.65, 0.65, 0.65, 0.65 };
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 30;
specular[] = { 0.15, 0.15, 0.15, 0.15};
specularPower = 45;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -7,17 +7,16 @@
#define _ARMA_
//Class armor_f_gamma : MBT_01\Data\MBT_01_body.rvmat{
ambient[] = { 0.65, 0.65, 0.65, 0.65 };
diffuse[] = { 0.65, 0.65, 0.65, 0.65 };
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 30;
specular[] = { 0.15, 0.15, 0.15, 0.15};
specularPower = 45;
PixelShaderID = "Super";
VertexShaderID = "Super";
class Stage1
{
texture="x\TBD_M119\addons\M119\tbd_m119\data\four_nohq.paa";

View File

@@ -7,12 +7,12 @@
#define _ARMA_
//Class armor_f_gamma : MBT_01\Data\MBT_01_body.rvmat{
ambient[] = { 0.65, 0.65, 0.65, 0.65 };
diffuse[] = { 0.65, 0.65, 0.65, 0.65 };
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 30;
specular[] = { 0.15, 0.15, 0.15, 0.15};
specularPower = 45;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -7,12 +7,12 @@
#define _ARMA_
//Class armor_f_gamma : MBT_01\Data\MBT_01_body.rvmat{
ambient[] = { 0.65, 0.65, 0.65, 0.65 };
diffuse[] = { 0.65, 0.65, 0.65, 0.65 };
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 30;
specular[] = { 0.15, 0.15, 0.15, 0.15};
specularPower = 45;
PixelShaderID = "Super";
VertexShaderID = "Super";

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -7,12 +7,12 @@
#define _ARMA_
//Class armor_f_gamma : MBT_01\Data\MBT_01_body.rvmat{
ambient[] = { 0.65, 0.65, 0.65, 0.65 };
diffuse[] = { 0.65, 0.65, 0.65, 0.65 };
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 30;
specular[] = { 0.15, 0.15, 0.15, 0.15};
specularPower = 45;
PixelShaderID = "Super";
VertexShaderID = "Super";

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -7,12 +7,12 @@
#define _ARMA_
//Class armor_f_gamma : MBT_01\Data\MBT_01_body.rvmat{
ambient[] = { 0.65, 0.65, 0.65, 0.65 };
diffuse[] = { 0.65, 0.65, 0.65, 0.65 };
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 30;
specular[] = { 0.15, 0.15, 0.15, 0.15};
specularPower = 45;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -7,12 +7,12 @@
#define _ARMA_
//Class armor_f_gamma : MBT_01\Data\MBT_01_body.rvmat{
ambient[] = { 0.65, 0.65, 0.65, 0.65 };
diffuse[] = { 0.65, 0.65, 0.65, 0.65 };
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 30;
specular[] = { 0.15, 0.15, 0.15, 0.15};
specularPower = 45;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -7,12 +7,12 @@
#define _ARMA_
//Class armor_f_gamma : MBT_01\Data\MBT_01_body.rvmat{
ambient[] = { 0.65, 0.65, 0.65, 0.65 };
diffuse[] = { 0.65, 0.65, 0.65, 0.65 };
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 30;
specular[] = { 0.15, 0.15, 0.15, 0.15};
specularPower = 45;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -7,12 +7,12 @@
#define _ARMA_
//Class armor_f_gamma : MBT_01\Data\MBT_01_body.rvmat{
ambient[] = { 0.65, 0.65, 0.65, 0.65 };
diffuse[] = { 0.65, 0.65, 0.65, 0.65 };
ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0, 0, 0, 1 };
emmisive[] = { 0, 0, 0, 1 };
specular[] = { 0.5, 0.5, 0.5, 0.5 };
specularPower = 30;
specular[] = { 0.15, 0.15, 0.15, 0.15};
specularPower = 45;
PixelShaderID = "Super";
VertexShaderID = "Super";

View File

@@ -23,6 +23,7 @@ class CfgSkeletons {
"handle_vertical", "otocvez",
"barrel", "otochlaven",
"trigger", "otochlaven",
"m119_zasleh", "otochlaven",
"magazine_translation_bone", "otochlaven",
"magazine", "magazine_translation_bone",
"magazine_smoke_translation_bone", "otochlaven",
@@ -49,10 +50,21 @@ class CfgModels {
class tbd_M119 : Default {
sectionsInherit = "";
sections[] = {
"lwheel",
"rwheel"
};
sections[]= {
"zbytek",
"camo1",
"camo2",
"camo3",
"camo4",
"camo5",
"camo6",
"camo7",
"camo8",
"camo9",
"camo10",
"M119_zasleh"
};
skeletonName = "tbd_M119_skeleton";
class Animations {
@@ -390,6 +402,18 @@ class CfgModels {
selection = "plate_back";
hideValue = 1;
};
class m119_zasleh_hide
{
source = "m119_reload_source";
type = "hide";
selection = "m119_zasleh";
minValue = 0;
maxValue = 1;
hideValue = 0;
unhideValue = 0.99;
};
};
};
};