Update FN Fal

This commit is contained in:
A Man
2020-02-25 23:50:53 +01:00
parent 559fe496dd
commit de07200b4e
5 changed files with 23 additions and 6 deletions

View File

@@ -43,6 +43,7 @@ AttachmentsEU[] =
{Loot_MAGAZINE, 1, Attachment_CCO},
{Loot_MAGAZINE, 1, Attachment_Holo},
{Loot_MAGAZINE, 1, Attachment_ACOG},
{Loot_MAGAZINE, 1, Attachment_ANPVS4},
{Loot_MAGAZINE, 1, Attachment_Sup556},
{Loot_MAGAZINE, 1, Attachment_Sup9},
{Loot_MAGAZINE, 1, Attachment_Sup10},

View File

@@ -119,7 +119,7 @@ weaponsEU[] =
{Loot_WEAPON, 4, SCAR_H_LNG_Sniper},
{Loot_WEAPON, 1, RSASS_DZ},
{Loot_WEAPON, 4, FNFAL_DZ},
{Loot_WEAPON, 3, FN_FAL_ANPVS4_DZE}, //FNFAL_ANPVS4_DZ is NV only _DZE is toggleable
{Loot_WEAPON, 3, FN_FAL_ANPVS4_DZE}, //FNFAL_ANPVS4_DZ is NV only _DZE is toggleable with attachment support
{Loot_WEAPON, 1, BAF_AS50_scoped_DZ}, // High value weapon, low spawn chance.
// Submachine Guns

View File

@@ -13,6 +13,7 @@ class Category_12 {
class Attachment_Kobra {type = "trade_items";buy[] = {4,"ItemGoldBar"};sell[] = {2,"ItemGoldBar"};};
class Attachment_SCOPED {type = "trade_items";buy[] = {6,"ItemGoldBar"};sell[] = {3,"ItemGoldBar"};};
class Attachment_ACOG {type = "trade_items";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class Attachment_ANPVS4 {type = "trade_items";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};};
class Attachment_Tws {type = "trade_items";buy[] = {-8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class Attachment_PSO1 {type = "trade_items";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};
class Attachment_NSPU {type = "trade_items";buy[] = {8,"ItemGoldBar"};sell[] = {4,"ItemGoldBar"};};

View File

@@ -15,6 +15,7 @@ class FNFAL_DZ : FN_FAL
{
Attachment_CCO = "FNFAL_CCO_DZ";
Attachment_Holo = "FNFAL_Holo_DZ";
Attachment_ANPVS4 = "FN_FAL_ANPVS4_DZE";
};
};
@@ -57,6 +58,16 @@ class FNFAL_ANPVS4_DZ : FN_FAL_ANPVS4
modes[] = {Single};
};
class FN_FAL_ANPVS4_DZE:FN_FAL_ANPVS4 {
class FN_FAL_ANPVS4_DZE: FN_FAL_ANPVS4 {
visionMode[] = {"Normal", "NVG"};
modes[] = {Single};
class ItemActions
{
class RemoveANPVS
{
text = $STR_DZ_ATT_ANPVS4_RMVE;
script = "; ['Attachment_ANPVS4',_id,'FNFAL_DZ'] call player_removeAttachment";
};
};
};