From 1065e722a6c03d149404dde08c68fbf693a964a6 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Wed, 12 Apr 2017 13:42:33 -0400 Subject: [PATCH] Allow removal of RIS from SA58_RIS_DZ Note RIS can not be removed from higher variants due to other attachments depending on the RIS being attached first. Closes #1940 --- CHANGE LOG 1.0.6.2.txt | 1 + SQF/dayz_code/Configs/CfgWeapons/Rifles/SA58.hpp | 9 +++++++++ SQF/dayz_code/stringtable.xml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/CHANGE LOG 1.0.6.2.txt b/CHANGE LOG 1.0.6.2.txt index 3d14b4d25..84f7d013d 100644 --- a/CHANGE LOG 1.0.6.2.txt +++ b/CHANGE LOG 1.0.6.2.txt @@ -3,6 +3,7 @@ [NEW] Pumpkin, sunflower, and hemp plants spawned with createVehicle can be harvested with a knife now. #1928 @F507DMT [UPDATED] Zombie pathing. Zeds should now run more direct to players. +[UPDATED] The RIS attachment can be removed from the SA58_RIS_DZ now. @LunaCB [FIXED] Kamaz refuel trucks no longer allow automatic refueling. #1855 @coresync2k @dreamforceinc [FIXED] Trees at POIs can be chopped down now. Other trees spawned with createVehicle can be added to dayz_treeTypes in variables.sqf to allow chopping them down. diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/SA58.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/SA58.hpp index fdcc839bd..3ebab18f6 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Rifles/SA58.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/SA58.hpp @@ -53,6 +53,15 @@ class SA58_RIS_DZ : SA58_DZ Attachment_FL = "SA58_RIS_FL_DZ"; Attachment_MFL = "SA58_RIS_MFL_DZ"; }; + + class ItemActions + { + class RemoveRIS + { + text = $STR_DZ_ATT_RIS_RMVE; + script = "; ['Attachment_SA58RIS',_id,'SA58_DZ'] call player_removeAttachment"; + }; + }; }; class SA58_RIS_FL_DZ : SA58_RIS_DZ diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index b0f582274..70c600187 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -11213,6 +11213,11 @@ Комплект рельсовой системы интеграции разработанной для SA-58 Ein Rail Integration System Kit designt für das SA-58 Sturmgewehr. + + Remove RIS + Снять RIS + Entferne RIS +