CFG WEAPONS DONE

This commit is contained in:
icomrade
2016-02-18 13:58:02 -05:00
parent 81d5976031
commit dfb7bba743
395 changed files with 55004 additions and 1384 deletions

View File

@@ -0,0 +1,106 @@
class ItemAntibiotic_base : CA_Magazine
{
scope = private;
count = 1;
type = WeaponSlotItem;
model = "\dayz_equip\models\med_antibiotic_gear.p3d";
picture = "\dayz_equip\textures\equip_antibiotics_ca.paa";
displayName = $STR_EQUIP_NAME_17;
};
class ItemAntibiotic : ItemAntibiotic_base
{
scope = public;
descriptionShort = $STR_EQUIP_DESC_17;
class medical
{
chance = 0.50;
amount = -1;
qtyRemaining = "ItemAntibiotic6";
};
class ItemActions
{
class Use
{
text = $STR_TAKE_ANTIBIOTIC;
script = "spawn player_useMeds;";
};
};
};
//TODO: move descriptions to stringtable
class ItemAntibiotic6 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 6 Remaining";
class medical
{
amount = 6;
qtyRemaining = "ItemAntibiotic5";
};
};
class ItemAntibiotic5 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 5 Remaining";
class medical
{
amount = 5;
qtyRemaining = "ItemAntibiotic4";
};
};
class ItemAntibiotic4 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 4 Remaining";
class medical
{
amount = 4;
qtyRemaining = "ItemAntibiotic3";
};
};
class ItemAntibiotic3 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 3 Remaining";
class medical
{
amount = 3;
qtyRemaining = "ItemAntibiotic2";
};
};
class ItemAntibiotic2 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 2 Remaining";
class medical
{
amount = 2;
qtyRemaining = "ItemAntibiotic1";
};
};
class ItemAntibiotic1 : ItemAntibiotic
{
descriptionShort = "Azithromycin is a broad spectrum antibiotic used to treat or prevent certain bacterial infections. 1 Remaining";
class medical
{
amount = 1;
qtyRemaining = "ItemAntibioticEmpty";
};
};
class ItemAntibioticEmpty : ItemAntibiotic_base
{
scope = public;
descriptionShort = "EmptyBox of Azithromycin.";
};

View File

@@ -0,0 +1,208 @@
class bloodBagBase : CA_Magazine
{
scope = private;
count = 1;
type = WeaponSlotItem;
picture = "\z\addons\dayz_communityassets\pictures\equip_bbag_full_ca.paa";
};
class bloodBagANEG : bloodBagBase
{
scope = public;
displayName = $STR_BLD_name_bloodBagANEG;
model = "z\addons\dayz_communityassets\models\bbag_full_m_A.p3d";
descriptionShort = $STR_BLD_desc_bloodBagANEG;
};
class bloodBagAPOS : bloodBagBase
{
scope = public;
displayName = $STR_BLD_name_bloodBagAPOS;
model = "z\addons\dayz_communityassets\models\bbag_full_p_A.p3d";
descriptionShort = $STR_BLD_desc_bloodBagAPOS;
};
class bloodBagBNEG : bloodBagBase
{
scope = public;
displayName = $STR_BLD_name_bloodBagBNEG;
model = "z\addons\dayz_communityassets\models\bbag_full_m_B.p3d";
descriptionShort = $STR_BLD_desc_bloodBagBNEG;
};
class bloodBagBPOS : bloodBagBase
{
scope = public;
displayName = $STR_BLD_name_bloodBagBPOS;
model = "z\addons\dayz_communityassets\models\bbag_full_p_B.p3d";
descriptionShort = $STR_BLD_desc_bloodBagBPOS;
};
class bloodBagABNEG : bloodBagBase
{
scope = public;
displayName = $STR_BLD_name_bloodBagABNEG;
model = "z\addons\dayz_communityassets\models\bbag_full_m_AB.p3d";
descriptionShort = $STR_BLD_desc_bloodBagABNEG;
};
class bloodBagABPOS : bloodBagBase
{
scope = public;
displayName = $STR_BLD_name_bloodBagABPOS;
model = "z\addons\dayz_communityassets\models\bbag_full_p_AB.p3d";
descriptionShort = $STR_BLD_desc_bloodBagABPOS;
};
class bloodBagONEG : bloodBagBase
{
scope = public;
displayName = $STR_BLD_name_bloodBagONEG;
model = "z\addons\dayz_communityassets\models\bbag_full_m_O.p3d";
descriptionShort = $STR_BLD_desc_bloodBagONEG;
};
class bloodBagOPOS : bloodBagBase
{
scope = public;
displayName = $STR_BLD_name_bloodBagOPOS;
model = "z\addons\dayz_communityassets\models\bbag_full_p_O.p3d";
descriptionShort = $STR_BLD_desc_bloodBagOPOS;
};
//Whole blood bags -- Can only be obtained by taking blood from another player.
class wholeBloodBagBase : bloodBagBase
{
class ItemActions
{
class Use
{
text = $STR_BLD_use;
script = "spawn player_useMeds;";
};
};
};
class wholeBloodBagANEG : wholeBloodBagBase
{
scope = public;
displayName = $STR_BLD_name_wholeBloodBagANEG;
model = "z\addons\dayz_communityassets\models\bbag_full_m_A.p3d";
descriptionShort = $STR_BLD_desc_wholeBloodBagANEG;
};
class wholeBloodBagAPOS : wholeBloodBagBase
{
scope = public;
displayName = $STR_BLD_name_wholeBloodBagAPOS;
model = "z\addons\dayz_communityassets\models\bbag_full_p_A.p3d";
descriptionShort = $STR_BLD_desc_wholeBloodBagAPOS;
};
class wholeBloodBagBNEG : wholeBloodBagBase
{
scope = public;
displayName = $STR_BLD_name_wholeBloodBagBNEG;
model = "z\addons\dayz_communityassets\models\bbag_full_m_B.p3d";
descriptionShort = $STR_BLD_desc_wholeBloodBagBNEG;
};
class wholeBloodBagBPOS : wholeBloodBagBase
{
scope = public;
displayName = $STR_BLD_name_wholeBloodBagBPOS;
model = "z\addons\dayz_communityassets\models\bbag_full_p_B.p3d";
descriptionShort = $STR_BLD_desc_wholeBloodBagBPOS;
};
class wholeBloodBagABNEG : wholeBloodBagBase
{
scope = public;
displayName = $STR_BLD_name_wholeBloodBagABNEG;
model = "z\addons\dayz_communityassets\models\bbag_full_m_AB.p3d";
descriptionShort = $STR_BLD_desc_wholeBloodBagABNEG;
};
class wholeBloodBagABPOS : wholeBloodBagBase
{
scope = public;
displayName = $STR_BLD_name_wholeBloodBagABPOS;
model = "z\addons\dayz_communityassets\models\bbag_full_p_AB.p3d";
descriptionShort = $STR_BLD_desc_wholeBloodBagABPOS;
};
class wholeBloodBagONEG : wholeBloodBagBase
{
scope = public;
displayName = $STR_BLD_name_wholeBloodBagONEG;
model = "z\addons\dayz_communityassets\models\bbag_full_m_O.p3d";
descriptionShort = $STR_BLD_desc_wholeBloodBagONEG;
};
class wholeBloodBagOPOS : wholeBloodBagBase
{
scope = public;
displayName = $STR_BLD_name_wholeBloodBagOPOS;
model = "z\addons\dayz_communityassets\models\bbag_full_p_O.p3d";
descriptionShort = $STR_BLD_desc_wholeBloodBagOPOS;
};
//MISC tools needed
class bloodTester : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotItem;
model = "z\addons\dayz_communityassets\models\blood_test.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_blood_test_ca.paa";
displayName = $STR_BLD_name_bloodTester;
descriptionShort = $STR_BLD_desc_bloodTester;
class ItemActions
{
class Use
{
text = $STR_BLD_use_bloodTester;
script = "spawn player_useMeds;";
};
};
};
class transfusionKit : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotItem;
model = "z\addons\dayz_communityassets\models\blood_transfuse.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_bloodbag_transfuse_CA.paa";
displayName = $STR_BLD_name_transfusionKit;
descriptionShort = $STR_BLD_desc_transfusionKit;
class ItemActions
{
class Use
{
text = $STR_BLD_use_transfusionKit;
script = "spawn player_useMeds;";
};
};
};
class emptyBloodBag : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotItem;
model = "z\addons\dayz_communityassets\models\bbag_empty.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_bbag_empty_ca.paa";
displayName = $STR_BLD_name_emptyBloodBag;
descriptionShort = $STR_BLD_desc_emptyBloodBag;
class ItemActions
{
class Use
{
text = "Take Blood";
script = "spawn player_useMeds;";
};
};
};

View File

@@ -0,0 +1,140 @@
#include "BloodBags.hpp"
#include "Antibiotic.hpp"
class ItemAntibacterialWipe : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotHandGunItem;
model = "\z\addons\dayz_communityassets\models\antiseptic.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_antiseptic_ca.paa";
displayName = $STR_ITEM_NAME_WIPES;
descriptionShort = $STR_ITEM_DESC_WIPES;
class ItemActions
{
class Use
{
text = $STR_ACTIONS_MEDICAL_WIPE;
script = "spawn player_useMeds;";
};
};
};
class ItemBandage : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotHandGunItem;
model = "\dayz_equip\models\fad.p3d";
picture = "\dayz_equip\textures\equip_fad_ca.paa";
displayName = $STR_EQUIP_NAME_7;
descriptionShort = $STR_EQUIP_DESC_7;
class ItemActions
{
class Use
{
text = $STR_BANDAGE_SELF;
script = "spawn player_useMeds;";
};
};
};
class ItemSepsisBandage : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotHandGunItem;
model = "\dayz_equip\models\fad.p3d";
picture = "\dayz_equip\textures\equip_fad_ca.paa";
displayName = $STR_EQUIP_NAME_SEPSISBANDAGE;
descriptionShort = $STR_EQUIP_DESC_SEPSISBANDAGE;
class ItemActions
{
class Use
{
text = $STR_BANDAGE_SELF;
script = "spawn player_useMeds;";
};
};
};
class ItemPainkiller : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotItem;
model = "\dayz_equip\models\med_painkiller_gear.p3d";
picture = "\dayz_equip\textures\equip_painkiller_ca.paa";
displayName = $STR_EQUIP_NAME_18;
descriptionShort = $STR_EQUIP_DESC_18;
class ItemActions
{
class Use
{
text = $STR_TAKE_PAINKILLER;
script = "spawn player_useMeds;";
};
};
};
class ItemEpinephrine : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotItem;
model = "\dayz_equip\models\epi.p3d";
picture = "\dayz_equip\textures\equip_epi_ca.paa";
displayName = $STR_EQUIP_NAME_14;
descriptionShort = $STR_EQUIP_DESC_14;
};
class ItemMorphine : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotItem;
model = "\dayz_equip\models\morphine.p3d";
picture = "\dayz_equip\textures\equip_morphine_ca.paa";
displayName = $STR_EQUIP_NAME_15;
descriptionShort = $STR_EQUIP_DESC_15;
class ItemActions
{
class Use
{
text = $STR_TAKE_MORPHINE;
script = "spawn player_useMeds;";
};
};
};
class ItemHeatPack : CA_Magazine
{
scope = public;
count = 1;
type = WeaponSlotItem;
model = "\dayz_equip\models\Heat_pack.p3d";
picture = "\dayz_equip\textures\equip_heat_pack_ca.paa";
displayName = $STR_EQUIP_NAME_42;
descriptionShort = $STR_EQUIP_DESC_42;
class ItemActions
{
class Use
{
text = $STR_ACTIONS_HEATPACK;
script = "spawn player_useMeds;";
};
};
};