diff --git a/addons/m119/functions/fnc_eject.sqf b/addons/m119/functions/fnc_eject.sqf index f00e490..95ce769 100644 --- a/addons/m119/functions/fnc_eject.sqf +++ b/addons/m119/functions/fnc_eject.sqf @@ -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]; diff --git a/addons/m119/tbd_m119/CfgSoundShaders.hpp b/addons/m119/tbd_m119/CfgSoundShaders.hpp index 3eb88c9..5fbd8c6 100644 --- a/addons/m119/tbd_m119/CfgSoundShaders.hpp +++ b/addons/m119/tbd_m119/CfgSoundShaders.hpp @@ -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} + }; }; }; diff --git a/addons/m119/tbd_m119/CfgVehicles.hpp b/addons/m119/tbd_m119/CfgVehicles.hpp index c71524d..c5fcbdd 100644 --- a/addons/m119/tbd_m119/CfgVehicles.hpp +++ b/addons/m119/tbd_m119/CfgVehicles.hpp @@ -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 { diff --git a/addons/m119/tbd_m119/CfgWeapons.hpp b/addons/m119/tbd_m119/CfgWeapons.hpp index 28bda52..4975ded 100644 --- a/addons/m119/tbd_m119/CfgWeapons.hpp +++ b/addons/m119/tbd_m119/CfgWeapons.hpp @@ -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 { diff --git a/addons/m119/tbd_m119/TBD_M119.p3d b/addons/m119/tbd_m119/TBD_M119.p3d index 77454c8..33876a0 100644 Binary files a/addons/m119/tbd_m119/TBD_M119.p3d and b/addons/m119/tbd_m119/TBD_M119.p3d differ diff --git a/addons/m119/tbd_m119/data/Five_arctic_co.paa b/addons/m119/tbd_m119/data/Five_arctic_co.paa new file mode 100644 index 0000000..961b3d3 Binary files /dev/null and b/addons/m119/tbd_m119/data/Five_arctic_co.paa differ diff --git a/addons/m119/tbd_m119/data/Five_desert_co.paa b/addons/m119/tbd_m119/data/Five_desert_co.paa new file mode 100644 index 0000000..433687f Binary files /dev/null and b/addons/m119/tbd_m119/data/Five_desert_co.paa differ diff --git a/addons/m119/tbd_m119/data/Five_lg_co.paa b/addons/m119/tbd_m119/data/Five_lg_co.paa new file mode 100644 index 0000000..dc61cb1 Binary files /dev/null and b/addons/m119/tbd_m119/data/Five_lg_co.paa differ diff --git a/addons/m119/tbd_m119/data/Four_arctic_co.paa b/addons/m119/tbd_m119/data/Four_arctic_co.paa new file mode 100644 index 0000000..aabd51f Binary files /dev/null and b/addons/m119/tbd_m119/data/Four_arctic_co.paa differ diff --git a/addons/m119/tbd_m119/data/Four_desert_co.paa b/addons/m119/tbd_m119/data/Four_desert_co.paa new file mode 100644 index 0000000..30935ed Binary files /dev/null and b/addons/m119/tbd_m119/data/Four_desert_co.paa differ diff --git a/addons/m119/tbd_m119/data/Four_lg_co.paa b/addons/m119/tbd_m119/data/Four_lg_co.paa new file mode 100644 index 0000000..f7b5029 Binary files /dev/null and b/addons/m119/tbd_m119/data/Four_lg_co.paa differ diff --git a/addons/m119/tbd_m119/data/One_arctic_co.paa b/addons/m119/tbd_m119/data/One_arctic_co.paa new file mode 100644 index 0000000..8d249f8 Binary files /dev/null and b/addons/m119/tbd_m119/data/One_arctic_co.paa differ diff --git a/addons/m119/tbd_m119/data/One_desert_co.paa b/addons/m119/tbd_m119/data/One_desert_co.paa new file mode 100644 index 0000000..55eced0 Binary files /dev/null and b/addons/m119/tbd_m119/data/One_desert_co.paa differ diff --git a/addons/m119/tbd_m119/data/One_lg_co.paa b/addons/m119/tbd_m119/data/One_lg_co.paa new file mode 100644 index 0000000..0a34df6 Binary files /dev/null and b/addons/m119/tbd_m119/data/One_lg_co.paa differ diff --git a/addons/m119/tbd_m119/data/Seven_arctic_co.paa b/addons/m119/tbd_m119/data/Seven_arctic_co.paa new file mode 100644 index 0000000..5e60292 Binary files /dev/null and b/addons/m119/tbd_m119/data/Seven_arctic_co.paa differ diff --git a/addons/m119/tbd_m119/data/Seven_desert_co.paa b/addons/m119/tbd_m119/data/Seven_desert_co.paa new file mode 100644 index 0000000..7014c2e Binary files /dev/null and b/addons/m119/tbd_m119/data/Seven_desert_co.paa differ diff --git a/addons/m119/tbd_m119/data/Seven_lg_co.paa b/addons/m119/tbd_m119/data/Seven_lg_co.paa new file mode 100644 index 0000000..1729954 Binary files /dev/null and b/addons/m119/tbd_m119/data/Seven_lg_co.paa differ diff --git a/addons/m119/tbd_m119/data/Six_arctic_co.paa b/addons/m119/tbd_m119/data/Six_arctic_co.paa new file mode 100644 index 0000000..cfcffd1 Binary files /dev/null and b/addons/m119/tbd_m119/data/Six_arctic_co.paa differ diff --git a/addons/m119/tbd_m119/data/Six_desert_co.paa b/addons/m119/tbd_m119/data/Six_desert_co.paa new file mode 100644 index 0000000..282308e Binary files /dev/null and b/addons/m119/tbd_m119/data/Six_desert_co.paa differ diff --git a/addons/m119/tbd_m119/data/Six_lg_co.paa b/addons/m119/tbd_m119/data/Six_lg_co.paa new file mode 100644 index 0000000..22f4db3 Binary files /dev/null and b/addons/m119/tbd_m119/data/Six_lg_co.paa differ diff --git a/addons/m119/tbd_m119/data/Three_arctic_co.paa b/addons/m119/tbd_m119/data/Three_arctic_co.paa new file mode 100644 index 0000000..ec44a6e Binary files /dev/null and b/addons/m119/tbd_m119/data/Three_arctic_co.paa differ diff --git a/addons/m119/tbd_m119/data/Three_desert_co.paa b/addons/m119/tbd_m119/data/Three_desert_co.paa new file mode 100644 index 0000000..0d1b3fa Binary files /dev/null and b/addons/m119/tbd_m119/data/Three_desert_co.paa differ diff --git a/addons/m119/tbd_m119/data/Three_lg_co.paa b/addons/m119/tbd_m119/data/Three_lg_co.paa new file mode 100644 index 0000000..8f2fd1a Binary files /dev/null and b/addons/m119/tbd_m119/data/Three_lg_co.paa differ diff --git a/addons/m119/tbd_m119/data/Two_arctic_co.paa b/addons/m119/tbd_m119/data/Two_arctic_co.paa new file mode 100644 index 0000000..f26d1af Binary files /dev/null and b/addons/m119/tbd_m119/data/Two_arctic_co.paa differ diff --git a/addons/m119/tbd_m119/data/Two_desert_co.paa b/addons/m119/tbd_m119/data/Two_desert_co.paa new file mode 100644 index 0000000..3dc8897 Binary files /dev/null and b/addons/m119/tbd_m119/data/Two_desert_co.paa differ diff --git a/addons/m119/tbd_m119/data/Two_lg_co.paa b/addons/m119/tbd_m119/data/Two_lg_co.paa new file mode 100644 index 0000000..7175a57 Binary files /dev/null and b/addons/m119/tbd_m119/data/Two_lg_co.paa differ diff --git a/addons/m119/tbd_m119/data/five.rvmat b/addons/m119/tbd_m119/data/five.rvmat index 7ffa229..782f894 100644 --- a/addons/m119/tbd_m119/data/five.rvmat +++ b/addons/m119/tbd_m119/data/five.rvmat @@ -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"; diff --git a/addons/m119/tbd_m119/data/four.rvmat b/addons/m119/tbd_m119/data/four.rvmat index 3d437df..71f3851 100644 --- a/addons/m119/tbd_m119/data/four.rvmat +++ b/addons/m119/tbd_m119/data/four.rvmat @@ -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"; diff --git a/addons/m119/tbd_m119/data/one.rvmat b/addons/m119/tbd_m119/data/one.rvmat index 9189946..1202bcd 100644 --- a/addons/m119/tbd_m119/data/one.rvmat +++ b/addons/m119/tbd_m119/data/one.rvmat @@ -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"; diff --git a/addons/m119/tbd_m119/data/plate.rvmat b/addons/m119/tbd_m119/data/plate.rvmat index b335987..a8bfb5b 100644 --- a/addons/m119/tbd_m119/data/plate.rvmat +++ b/addons/m119/tbd_m119/data/plate.rvmat @@ -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"; diff --git a/addons/m119/tbd_m119/data/plate_arctic_co.paa b/addons/m119/tbd_m119/data/plate_arctic_co.paa new file mode 100644 index 0000000..1f463a4 Binary files /dev/null and b/addons/m119/tbd_m119/data/plate_arctic_co.paa differ diff --git a/addons/m119/tbd_m119/data/plate_desert_co.paa b/addons/m119/tbd_m119/data/plate_desert_co.paa new file mode 100644 index 0000000..a6772f1 Binary files /dev/null and b/addons/m119/tbd_m119/data/plate_desert_co.paa differ diff --git a/addons/m119/tbd_m119/data/plate_lg_co.paa b/addons/m119/tbd_m119/data/plate_lg_co.paa new file mode 100644 index 0000000..9c14a54 Binary files /dev/null and b/addons/m119/tbd_m119/data/plate_lg_co.paa differ diff --git a/addons/m119/tbd_m119/data/scope.rvmat b/addons/m119/tbd_m119/data/scope.rvmat index 4bb9a5a..f0e502e 100644 --- a/addons/m119/tbd_m119/data/scope.rvmat +++ b/addons/m119/tbd_m119/data/scope.rvmat @@ -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"; diff --git a/addons/m119/tbd_m119/data/scope_arctic_co.paa b/addons/m119/tbd_m119/data/scope_arctic_co.paa new file mode 100644 index 0000000..ba6a74f Binary files /dev/null and b/addons/m119/tbd_m119/data/scope_arctic_co.paa differ diff --git a/addons/m119/tbd_m119/data/scope_desert_co.paa b/addons/m119/tbd_m119/data/scope_desert_co.paa new file mode 100644 index 0000000..79f79e2 Binary files /dev/null and b/addons/m119/tbd_m119/data/scope_desert_co.paa differ diff --git a/addons/m119/tbd_m119/data/scope_lg_co.paa b/addons/m119/tbd_m119/data/scope_lg_co.paa new file mode 100644 index 0000000..fb3fec9 Binary files /dev/null and b/addons/m119/tbd_m119/data/scope_lg_co.paa differ diff --git a/addons/m119/tbd_m119/data/seven.rvmat b/addons/m119/tbd_m119/data/seven.rvmat index 2cf3217..dbc4719 100644 --- a/addons/m119/tbd_m119/data/seven.rvmat +++ b/addons/m119/tbd_m119/data/seven.rvmat @@ -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"; diff --git a/addons/m119/tbd_m119/data/six.rvmat b/addons/m119/tbd_m119/data/six.rvmat index ec1f748..83f8375 100644 --- a/addons/m119/tbd_m119/data/six.rvmat +++ b/addons/m119/tbd_m119/data/six.rvmat @@ -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"; diff --git a/addons/m119/tbd_m119/data/three.rvmat b/addons/m119/tbd_m119/data/three.rvmat index cd6dce0..3024047 100644 --- a/addons/m119/tbd_m119/data/three.rvmat +++ b/addons/m119/tbd_m119/data/three.rvmat @@ -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"; diff --git a/addons/m119/tbd_m119/data/two.rvmat b/addons/m119/tbd_m119/data/two.rvmat index 73dc7f8..aa433a4 100644 --- a/addons/m119/tbd_m119/data/two.rvmat +++ b/addons/m119/tbd_m119/data/two.rvmat @@ -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"; diff --git a/addons/m119/tbd_m119/model.cfg b/addons/m119/tbd_m119/model.cfg index 8fb70fb..7486e48 100644 --- a/addons/m119/tbd_m119/model.cfg +++ b/addons/m119/tbd_m119/model.cfg @@ -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; + }; }; }; };