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
This commit is contained in:
ebayShopper
2017-04-12 13:42:33 -04:00
parent bf6a980d4c
commit 1065e722a6
3 changed files with 15 additions and 0 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -11213,6 +11213,11 @@
<Russian>Комплект рельсовой системы интеграции разработанной для SA-58</Russian>
<German>Ein Rail Integration System Kit designt für das SA-58 Sturmgewehr.</German>
</Key>
<Key ID="STR_DZ_ATT_RIS_RMVE">
<English>Remove RIS</English>
<Russian>Снять RIS</Russian>
<German>Entferne RIS</German>
</Key>
</Package>
<Package name="dayz_epoch">
<Key ID="STR_EPOCH_REMOVE">