diff --git a/addons/m119/tbd_m119/CfgVehicles.hpp b/addons/m119/tbd_m119/CfgVehicles.hpp index b9e7340..494760b 100644 --- a/addons/m119/tbd_m119/CfgVehicles.hpp +++ b/addons/m119/tbd_m119/CfgVehicles.hpp @@ -292,6 +292,67 @@ class CfgVehicles { animPeriod = 0; }; + class magazine_smoke_load_source { + source = "user"; + initPhase = 0; + animPeriod = 0.5; + sound = "reload"; + soundPosition = "konec_hlavne"; + }; + + class magazine_smoke_hide_source { + source = "user"; + initPhase = 1; + animPeriod = 0; + }; + + class magazine_dpicm_load_source { + source = "user"; + initPhase = 0; + animPeriod = 0.5; + sound = "reload"; + soundPosition = "konec_hlavne"; + }; + + class magazine_dpicm_hide_source { + source = "user"; + initPhase = 1; + animPeriod = 0; + }; + + class magazine_laser_load_source { + source = "user"; + initPhase = 0; + animPeriod = 0.5; + sound = "reload"; + soundPosition = "konec_hlavne"; + }; + + class magazine_laser_hide_source { + source = "user"; + initPhase = 1; + animPeriod = 0; + }; + + + + + + + + + + + + + + + + + + + + class mainTurretT_source { source = "user"; initPhase = 0; diff --git a/addons/m119/tbd_m119/TBD_M119.p3d b/addons/m119/tbd_m119/TBD_M119.p3d index 83b235b..77454c8 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/model.cfg b/addons/m119/tbd_m119/model.cfg index 9a00895..dc36e79 100644 --- a/addons/m119/tbd_m119/model.cfg +++ b/addons/m119/tbd_m119/model.cfg @@ -25,6 +25,12 @@ class CfgSkeletons { "trigger", "otochlaven", "magazine_translation_bone", "otochlaven", "magazine", "magazine_translation_bone", + "magazine_smoke_translation_bone", "otochlaven", + "magazine_smoke", "magazine_smoke_translation_bone", + "magazine_laser_translation_bone", "otochlaven", + "magazine_laser", "magazine_laser_translation_bone", + "magazine_dpicm_translation_bone", "otochlaven", + "magazine_dpicm", "magazine_dpicm_translation_bone", "hydraulics", "otocvez", "breech", "barrel", "handle_breech", "barrel", @@ -307,12 +313,66 @@ class CfgModels { animPeriod = 10; }; + class magazine_smoke_load { + type = "translation"; + source = "magazine_smoke_load_source"; + selection = "magazine_smoke_translation_bone"; + axis = "axis_magazine"; + minValue = 0.0; + maxValue = 1; + offset0 = "0.0"; + offset1 = "-0.515"; + animPeriod = 10; + }; + + class magazine_laser_load { + type = "translation"; + source = "magazine_laser_load_source"; + selection = "magazine_laser_translation_bone"; + axis = "axis_magazine"; + minValue = 0.0; + maxValue = 1; + offset0 = "0.0"; + offset1 = "-0.515"; + animPeriod = 10; + }; + + class magazine_dpicm_load { + type = "translation"; + source = "magazine_dpicm_load_source"; + selection = "magazine_dpicm_translation_bone"; + axis = "axis_magazine"; + minValue = 0.0; + maxValue = 1; + offset0 = "0.0"; + offset1 = "-0.515"; + animPeriod = 10; + }; + class magazine_hide { type = "hide"; source = "magazine_hide_source"; selection = "magazine"; hideValue = 1; }; + class magazine_smoke_hide { + type = "hide"; + source = "magazine_smoke_hide_source"; + selection = "magazine"; + hideValue = 1; + }; + class magazine_laser_hide { + type = "hide"; + source = "magazine_laser_hide_source"; + selection = "magazine"; + hideValue = 1; + }; + class magazine_dpicm_hide { + type = "hide"; + source = "magazine_dpicm_hide_source"; + selection = "magazine"; + hideValue = 1; + }; class plate_front_hide { type = "hide";