Update Painkillers and Antibiotics

- Painkillers are in different pill counts available now, same as antibiotics
- the strings of painkillers and antibiotics have the pill count displayed in the name
This commit is contained in:
A Man
2020-04-06 20:03:14 +02:00
parent 9aeceebb6f
commit b4b8860cf0
12 changed files with 456 additions and 104 deletions

View File

@@ -6,7 +6,7 @@ class ItemAntibiotic_base : CA_Magazine
model = "\dayz_equip\models\med_antibiotic_gear.p3d";
picture = "\dayz_equip\textures\equip_antibiotics_ca.paa";
displayName = $STR_EQUIP_NAME_17;
displayName = $STR_EQUIP_NAME_17;
};
class ItemAntibiotic : ItemAntibiotic_base
@@ -37,6 +37,7 @@ class ItemAntibiotic : ItemAntibiotic_base
class ItemAntibiotic6 : ItemAntibiotic
{
displayName = $STR_EQUIP_NAME_ANTIBIOTICS_6;
descriptionShort = $STR_EQUIP_DESC_48;
class medical
@@ -48,6 +49,7 @@ class ItemAntibiotic6 : ItemAntibiotic
class ItemAntibiotic5 : ItemAntibiotic
{
displayName = $STR_EQUIP_NAME_ANTIBIOTICS_5;
descriptionShort = $STR_EQUIP_DESC_49;
class medical
@@ -59,6 +61,7 @@ class ItemAntibiotic5 : ItemAntibiotic
class ItemAntibiotic4 : ItemAntibiotic
{
displayName = $STR_EQUIP_NAME_ANTIBIOTICS_4;
descriptionShort = $STR_EQUIP_DESC_50;
class medical
@@ -70,6 +73,7 @@ class ItemAntibiotic4 : ItemAntibiotic
class ItemAntibiotic3 : ItemAntibiotic
{
displayName = $STR_EQUIP_NAME_ANTIBIOTICS_3;
descriptionShort = $STR_EQUIP_DESC_51;
class medical
@@ -81,6 +85,7 @@ class ItemAntibiotic3 : ItemAntibiotic
class ItemAntibiotic2 : ItemAntibiotic
{
displayName = $STR_EQUIP_NAME_ANTIBIOTICS_2;
descriptionShort = $STR_EQUIP_DESC_52;
class medical
@@ -92,6 +97,7 @@ class ItemAntibiotic2 : ItemAntibiotic
class ItemAntibiotic1 : ItemAntibiotic
{
displayName = $STR_EQUIP_NAME_ANTIBIOTICS_1;
descriptionShort = $STR_EQUIP_DESC_53;
class medical
@@ -104,5 +110,6 @@ class ItemAntibiotic1 : ItemAntibiotic
class ItemAntibioticEmpty : ItemAntibiotic_base
{
scope = public;
displayName = $STR_EQUIP_NAME_ANTIBIOTICS_EMPTY;
descriptionShort = $STR_EQUIP_DESC_54;
};

View File

@@ -1,5 +1,6 @@
#include "BloodBags.hpp"
#include "Antibiotic.hpp"
#include "Painkiller.hpp"
class ItemAntibacterialWipe : CA_Magazine
{
@@ -64,27 +65,6 @@ class ItemSepsisBandage : CA_Magazine
};
};
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;

View File

@@ -0,0 +1,115 @@
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 medical
{
chance = 1.10; //100%
amount = -1;
qtyRemaining = "ItemPainkiller6";
};
class ItemActions
{
class Use
{
text = $STR_TAKE_PAINKILLER;
script = "spawn player_useMeds;";
};
class Combine {
text = $STR_ANTIBIOTICS_COMBINE;
script = "spawn player_combinePainkiller;";
};
};
};
class ItemPainkiller6 : ItemPainkiller
{
displayName = $STR_EQUIP_NAME_PAINKILLER_6;
descriptionShort = $STR_EQUIP_DESC_PAINKILLER_6;
class medical
{
amount = 6;
qtyRemaining = "ItemPainkiller5";
};
};
class ItemPainkiller5 : ItemPainkiller
{
displayName = $STR_EQUIP_NAME_PAINKILLER_5;
descriptionShort = $STR_EQUIP_DESC_PAINKILLER_5;
class medical
{
amount = 5;
qtyRemaining = "ItemPainkiller4";
};
};
class ItemPainkiller4 : ItemPainkiller
{
displayName = $STR_EQUIP_NAME_PAINKILLER_4;
descriptionShort = $STR_EQUIP_DESC_PAINKILLER_4;
class medical
{
amount = 4;
qtyRemaining = "ItemPainkiller3";
};
};
class ItemPainkiller3 : ItemPainkiller
{
displayName = $STR_EQUIP_NAME_PAINKILLER_3;
descriptionShort = $STR_EQUIP_DESC_PAINKILLER_3;
class medical
{
amount = 3;
qtyRemaining = "ItemPainkiller2";
};
};
class ItemPainkiller2 : ItemPainkiller
{
displayName = $STR_EQUIP_NAME_PAINKILLER_2;
descriptionShort = $STR_EQUIP_DESC_PAINKILLER_2;
class medical
{
amount = 2;
qtyRemaining = "ItemPainkiller1";
};
};
class ItemPainkiller1 : ItemPainkiller
{
displayName = $STR_EQUIP_NAME_PAINKILLER_1;
descriptionShort = $STR_EQUIP_DESC_PAINKILLER_1;
class medical
{
amount = 1;
qtyRemaining = "ItemPainkillerEmpty";
};
};
class ItemPainkillerEmpty : CA_Magazine
{
scope = public;
displayName = $STR_EQUIP_NAME_PAINKILLER_EMPTY;
descriptionShort = $STR_EQUIP_DESC_PAINKILLER_EMPTY;
count = 1;
type = WeaponSlotItem;
model = "\dayz_equip\models\med_painkiller_gear.p3d";
picture = "\dayz_equip\textures\equip_painkiller_ca.paa";
};