Skip to content

Commit

Permalink
Fix recoils
Browse files Browse the repository at this point in the history
  • Loading branch information
AirwavesMan committed Jan 20, 2021
1 parent be9e2fc commit a11d289
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 46 deletions.
6 changes: 4 additions & 2 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/ACR.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ class ACR_DZ_BASE: M4A1 {
begin1[] = {"fhq_remington\ACR\sfx\acr_single.ogg",1.77828,1,1000};
begin2[] = {"fhq_remington\ACR\sfx\acr_single.ogg",1.77828,1,1000};
soundBegin[] = {"begin1",0.5,"begin2",0.5};
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
reloadTime = 0.09;
dispersion = 0.00175;
minRange = 2;
Expand All @@ -161,8 +163,8 @@ class ACR_DZ_BASE: M4A1 {
begin1[] = {"fhq_remington\ACR\sfx\acr_auto.ogg",1.77828,1,1000};
begin2[] = {"fhq_remington\ACR\sfx\acr_auto.ogg",1.77828,1,1000};
soundBegin[] = {"begin1",0.5,"begin2",0.5};
recoil = "recoil_auto_primary_2outof10";
recoilProne = "recoil_auto_primary_prone_2outof10";
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
minRange = 0;
minRangeProbab = 0.3;
midRange = 40;
Expand Down
8 changes: 4 additions & 4 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/G3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class G3_DZ: FNFAL_DZ
begin1[] = {"rh_mgswp\sound\scarAk", db5, 1,1000};
soundBegin[] = {begin1,1};
reloadTime = 0.07;
recoil = "recoil_single_primary_1outof10";
recoilProne = "recoil_single_primary_prone_1outof10";
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
dispersion = 0.003;
minRange = 2;
minRangeProbab = 0.25;
Expand All @@ -37,8 +37,8 @@ class G3_DZ: FNFAL_DZ
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
aiRateOfFire = 0.001;
dispersion = 0.003; //0.007;
minRange = 0;
Expand Down
8 changes: 8 additions & 0 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/HK416.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class HK416_DZ : M4A1
{
begin1[] = {"\RH_hk416\sound\hk416.wss",1.778279,1,800};
soundBegin[] = {"begin1",1};
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
reloadtime = 0.071;
dispersion = 0.0025;
minRange = 2;
Expand All @@ -68,6 +70,8 @@ class HK416_DZ : M4A1
{
begin1[] = {"\RH_hk416\sound\hk416.wss",1.778279,1,800};
soundBegin[] = {"begin1",1};
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
reloadtime = 0.071;
dispersion = 0.0025;
minRange = 2;
Expand Down Expand Up @@ -110,6 +114,8 @@ class HK416_SD_DZ : M4A1_AIM_SD_camo
{
begin1[] = {"\RH_hk416\sound\hk416sd.wss",1.0,1,80};
soundBegin[] = {"begin1",1};
recoil = "recoil_single_primary_2outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
reloadtime = 0.071;
dispersion = 0.0025;
minRange = 2;
Expand All @@ -123,6 +129,8 @@ class HK416_SD_DZ : M4A1_AIM_SD_camo
{
begin1[] = {"\RH_hk416\sound\hk416sd.wss",1.0,1,80};
soundBegin[] = {"begin1",1};
recoil = "recoil_single_primary_2outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
reloadtime = 0.071;
dispersion = 0.0025;
minRange = 2;
Expand Down
8 changes: 4 additions & 4 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/Kriss.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Kriss_DZ: MP5_DZ
begin1[] = {"\RH_smg\sound\kriss.wss",1.778279,1,900};
soundBegin[] = {"begin1",1};
reloadTime = 0.07;
recoil = "recoil_single_primary_1outof10";
recoil = "recoil_single_primary_2outof10";
recoilProne = "recoil_single_primary_prone_1outof10";
dispersion = 0.003;
minRange = 2;
Expand All @@ -34,7 +34,7 @@ class Kriss_DZ: MP5_DZ
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoil = "recoil_auto_primary_2outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
dispersion = 0.003;
minRange = 0;
Expand Down Expand Up @@ -130,7 +130,7 @@ class Kriss_SD_DZ: MP5_SD_DZ
begin1[] = {"\RH_smg\sound\umpsd.wss",1.778279,1,50};
soundBegin[] = {"begin1",1};
reloadTime = 0.07;
recoil = "recoil_single_primary_1outof10";
recoil = "recoil_single_primary_2outof10";
recoilProne = "recoil_single_primary_prone_1outof10";
dispersion = 0.003;
minRange = 2;
Expand All @@ -150,7 +150,7 @@ class Kriss_SD_DZ: MP5_SD_DZ
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoil = "recoil_auto_primary_2outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
dispersion = 0.003;
minRange = 0;
Expand Down
4 changes: 2 additions & 2 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/M31.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class M31_DZ: MP5A5
begin1[] = {"rh_aks\sound\rpk74", db5, 1,1000};
soundBegin[] = {begin1,1};
reloadTime = 0.07;
recoil = "recoil_single_primary_1outof10";
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_1outof10";
dispersion = 0.003;
minRange = 2;
Expand All @@ -38,7 +38,7 @@ class M31_DZ: MP5A5
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
aiRateOfFire = 0.001;
dispersion = 0.003;
Expand Down
2 changes: 1 addition & 1 deletion SQF/dayz_code/Configs/CfgWeapons/Rifles/MK14.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class MK14_SD_DZ: M14_EP1
maxRange = 200;
midRange = 80;
recoil = "recoil_auto_primary_5outof10";
recoilProne = "recoil_auto_primary_prone_5outof10";
recoilProne = "recoil_auto_primary_prone_4outof10";
};

class Attachments
Expand Down
6 changes: 3 additions & 3 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/MK16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class MK16_DZ : M4A1
soundBegin[] = {"begin1",1};
dispersion = 0.0025;
reloadtime = 0.096;
recoil = "recoil_single_primary_4outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
aiRateOfFire = 1;
aiRateOfFireDistance = 300;
minRange = 0;
Expand All @@ -93,7 +93,7 @@ class MK16_DZ : M4A1
dispersion = 0.0025;
reloadtime = 0.096;
recoil = "recoil_single_primary_4outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
aiRateOfFire = 0.2;
aiRateOfFireDistance = 50;
minRange = 0;
Expand Down
16 changes: 8 additions & 8 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/Masada.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class Masada_DZ : M4A1
begin1[] = {"\RH_hk416\sound\acr.wss",1.778279,1,1000};
soundBegin[] = {"begin1",1};
reloadTime = 0.075;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
recoil = "recoil_single_primary_2outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
dispersion = 0.001;
minRange = 2;
minRangeProbab = 0.3;
Expand All @@ -64,8 +64,8 @@ class Masada_DZ : M4A1
begin1[] = {"\RH_hk416\sound\acr.wss",1.778279,1,1000};
soundBegin[] = {"begin1",1};
reloadTime = 0.09;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
recoil = "recoil_auto_primary_2outof10";
recoilProne = "recoil_auto_primary_prone_2outof10";
dispersion = 0.00175;
minRange = 0;
minRangeProbab = 0.1;
Expand Down Expand Up @@ -108,8 +108,8 @@ class Masada_SD_DZ : M4A1_AIM_SD_camo
begin1[] = {"\RH_hk416\sound\massd.wss",1.0,1,50};
soundBegin[] = {"begin1",1};
reloadTime = 0.075;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
recoil = "recoil_single_primary_2outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
dispersion = 0.001;
minRange = 2;
minRangeProbab = 0.3;
Expand All @@ -123,8 +123,8 @@ class Masada_SD_DZ : M4A1_AIM_SD_camo
begin1[] = {"\RH_hk416\sound\massd.wss",1.0,1,50};
soundBegin[] = {"begin1",1};
reloadTime = 0.09;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
recoil = "recoil_auto_primary_2outof10";
recoilProne = "recoil_auto_primary_prone_2outof10";
dispersion = 0.00175;
minRange = 0;
minRangeProbab = 0.1;
Expand Down
10 changes: 5 additions & 5 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/P90.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class P90_DZ: MP5_DZ
begin1[] = {"\RH_smg\sound\p90s.wss",1.778279,1,900};
soundBegin[] = {"begin1",1};
reloadTime = 0.07;
recoil = "recoil_single_primary_2outof10";
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
dispersion = 0.003;
minRange = 2;
Expand All @@ -34,8 +34,8 @@ class P90_DZ: MP5_DZ
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_2outof10";
dispersion = 0.003;
minRange = 0;
minRangeProbab = 0.2;
Expand Down Expand Up @@ -144,8 +144,8 @@ class P90_SD_DZ: MP5_SD_DZ
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
recoil = "recoil_auto_primary_2outof10";
recoilProne = "recoil_auto_primary_prone_2outof10";
dispersion = 0.003;
minRange = 0;
minRangeProbab = 0.2;
Expand Down
4 changes: 2 additions & 2 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/PDR.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PDR_DZ: M4A1
soundBegin[] = {"begin1",1};
reloadTime = 0.09;
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_3outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
dispersion = 0.0025;
minRange = 2;
minRangeProbab = 0.1;
Expand All @@ -37,7 +37,7 @@ class PDR_DZ: M4A1
soundBegin[] = {"begin1",1};
reloadTime = 0.09;
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_3outof10";
recoilProne = "recoil_auto_primary_prone_2outof10";
dispersion = 0.004;
minRange = 2;
minRangeProbab = 0.1;
Expand Down
4 changes: 4 additions & 0 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/RK95.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class RK95_DZ: AKM_DZ
class Single: Mode_SemiAuto
{
begin1[] = {"\RH_aks\sound\rk95.wss",1.778279,1,1000};
recoil = "recoil_single_primary_5outof10";
recoilProne = "recoil_single_primary_prone_4outof10";
soundBegin[] = {"begin1",1};
multiplier = 1;
burst = 1;
Expand Down Expand Up @@ -84,6 +86,8 @@ class RK95_DZ: AKM_DZ
{
begin1[] = {"\RH_aks\sound\rk95.wss",1.778279,1,1000};
soundBegin[] = {"begin1",1};
recoil = "recoil_single_primary_5outof10";
recoilProne = "recoil_single_primary_prone_4outof10";
soundContinuous = 0;
multiplier = 1;
burst = 1;
Expand Down
4 changes: 2 additions & 2 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/Sten.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class Sten_MK_DZ: MP5A5
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
recoil = "recoil_auto_primary_2outof10";
recoilProne = "recoil_auto_primary_prone_2outof10";
aiRateOfFire = 0.001;
dispersion = 0.003; //0.007;
minRange = 0;
Expand Down
8 changes: 4 additions & 4 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/TMP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TMP_DZ: MP5A5
begin1[] = {"\RH_smg\sound\tmp.wss",1.778279,1,900};
soundBegin[] = {"begin1",1};
reloadTime = 0.07;
recoil = "recoil_single_primary_1outof10";
recoil = "recoil_single_primary_2outof10";
recoilProne = "recoil_single_primary_prone_1outof10";
dispersion = 0.003;
minRange = 2;
Expand All @@ -32,7 +32,7 @@ class TMP_DZ: MP5A5
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoil = "recoil_auto_primary_2outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
dispersion = 0.003;
minRange = 0;
Expand Down Expand Up @@ -107,7 +107,7 @@ class TMP_SD_DZ: MP5SD
begin1[] = {"\RH_smg\sound\tmpsd.wss",1.778279,1,50};
soundBegin[] = {"begin1",1};
reloadTime = 0.07;
recoil = "recoil_single_primary_1outof10";
recoil = "recoil_single_primary_2outof10";
recoilProne = "recoil_single_primary_prone_1outof10";
dispersion = 0.003;
minRange = 2;
Expand All @@ -127,7 +127,7 @@ class TMP_SD_DZ: MP5SD
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoil = "recoil_auto_primary_2outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
dispersion = 0.003;
minRange = 0;
Expand Down
16 changes: 8 additions & 8 deletions SQF/dayz_code/Configs/CfgWeapons/Rifles/UMP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class UMP_DZ: MP5A5
begin1[] = {"\RH_smg\sound\ump.wss",1.778279,1,900};
soundBegin[] = {"begin1",1};
reloadTime = 0.07;
recoil = "recoil_single_primary_1outof10";
recoilProne = "recoil_single_primary_prone_1outof10";
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
dispersion = 0.003;
minRange = 2;
minRangeProbab = 0.25;
Expand All @@ -33,8 +33,8 @@ class UMP_DZ: MP5A5
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_2outof10";
dispersion = 0.003;
minRange = 0;
minRangeProbab = 0.2;
Expand Down Expand Up @@ -109,8 +109,8 @@ class UMP_SD_DZ: MP5SD
begin1[] = {"\RH_smg\sound\umpsd.wss",1.778279,1,50};
soundBegin[] = {"begin1",1};
reloadTime = 0.07;
recoil = "recoil_single_primary_1outof10";
recoilProne = "recoil_single_primary_prone_1outof10";
recoil = "recoil_single_primary_3outof10";
recoilProne = "recoil_single_primary_prone_2outof10";
dispersion = 0.003;
minRange = 2;
minRangeProbab = 0.25;
Expand All @@ -129,8 +129,8 @@ class UMP_SD_DZ: MP5SD
soundContinuous = 0;
reloadTime = 0.1;
ffCount = 1;
recoil = "recoil_auto_primary_1outof10";
recoilProne = "recoil_auto_primary_prone_1outof10";
recoil = "recoil_auto_primary_3outof10";
recoilProne = "recoil_auto_primary_prone_2outof10";
dispersion = 0.003;
minRange = 0;
minRangeProbab = 0.2;
Expand Down
2 changes: 1 addition & 1 deletion SQF/dayz_code/Configs/CfgWeapons/Rifles/XM8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ class XM8_SAW_DZ: m8_SAW {
class FullAuto: Mode_FullAuto
{
recoil = "recoil_auto_machinegun_5outof10";
recoilProne = "recoil_auto_machinegun_prone_5outof10";
recoilProne = "recoil_auto_machinegun_prone_4outof10";
dispersion = 0.002;
begin1[] = {"\RH_mgswp\sound\xm8",1.77828,1,1100};
soundBegin[] = {"begin1",1};
Expand Down

0 comments on commit a11d289

Please sign in to comment.