123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- class Bandana_ColorBase: Clothing
- {
- override void SetActions()
- {
- super.SetActions();
-
- AddAction(ActionBandageTarget);
- AddAction(ActionBandageSelf);
- AddAction(ActionWringClothes);
- }
-
- void Bandana_ColorBase()
- {
- }
-
- override bool CanBeDisinfected()
- {
- return true;
- }
-
- override float GetBandagingEffectivity()
- {
- return 0.5;
- };
-
- override float GetInfectionChance(int system = 0, Param param = null)
- {
- if(m_Cleanness == 1)
- {
- return 0.00;
- }
- else
- {
- return 0.15;
- }
- }
-
- override protected set<int> GetAttachmentExclusionInitSlotValue(int slotId)
- {
- set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
- switch (slotId)
- {
- case InventorySlots.HEADGEAR:
- return ret;//no discernable conflict here
- break;
-
- default:
- ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
-
- ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
- break;
- }
- return ret;
- }
- };
- class Bandana_RedPattern: Bandana_ColorBase {};
- class Bandana_BlackPattern: Bandana_ColorBase {};
- class Bandana_PolkaPattern: Bandana_ColorBase {};
- class Bandana_Greenpattern: Bandana_ColorBase {};
- class Bandana_CamoPattern: Bandana_ColorBase {};
- class Bandana_Blue: Bandana_ColorBase {};
- class Bandana_Pink: Bandana_ColorBase {};
- class Bandana_Yellow: Bandana_ColorBase {};
- class Shemag_ColorBase: Clothing
- {
- override void SetActions()
- {
- super.SetActions();
-
- AddAction(ActionBandageTarget);
- AddAction(ActionBandageSelf);
- AddAction(ActionWringClothes);
- }
-
- void Shemag_ColorBase()
- {
- }
-
- override bool CanBeDisinfected()
- {
- return true;
- }
-
- override float GetBandagingEffectivity()
- {
- return 0.5;
- };
-
- override float GetInfectionChance(int system = 0, Param param = null)
- {
- if(m_Cleanness == 1)
- {
- return 0.00;
- }
- else
- {
- return 0.15;
- }
- }
-
- override protected set<int> GetAttachmentExclusionInitSlotValue(int slotId)
- {
- set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
-
- switch (slotId)
- {
- case InventorySlots.HEADGEAR:
- ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
- break;
-
- default:
- ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
- ret.Insert(EAttExclusions.EXCLUSION_MASK_3);
-
- ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
- break;
- }
- return ret;
- }
- };
- class Shemag_Brown: Shemag_ColorBase {};
- class Shemag_Green: Shemag_ColorBase {};
- class Shemag_Red: Shemag_ColorBase {};
- class Shemag_White: Shemag_ColorBase {};
- class BatteryD: ItemBase {};
- class Bone: ItemBase
- {
- override void SetActions()
- {
- super.SetActions();
-
- AddAction(ActionCraftBoneKnife);
- AddAction(ActionCraftBoneKnifeEnv);
- }
- };
- class BurlapStrip: ItemBase {};
- class ButaneCanister: ItemBase {};
- class DuctTape: ItemBase
- {
- override void SetActions()
- {
- super.SetActions();
-
- AddAction(ActionRepairTent);
- AddAction(ActionRepairShelter);
- //AddAction(ActionRepairPart);
- AddAction(ActionRestrainTarget);
- AddAction(ActionRestrainSelf);
- }
- };
- class Flashbang: ItemBase {};
- class LargeGasCanister: ItemBase
- {
- override bool CanSwitchDuringAttach(EntityAI parent)
- {
- return true;
- }
-
- override string GetDestructionBehaviour()
- {
- return "DestructionEffectGasCanister";
- }
-
- override bool IsDestructionBehaviour()
- {
-
- if (GetQuantity() > 0)
- {
- return true;
- }
-
- else
- {
- return false;
- }
- }
- };
- class MediumGasCanister: ItemBase
- {
- override bool CanSwitchDuringAttach(EntityAI parent)
- {
- return true;
- }
-
- override string GetDestructionBehaviour()
- {
- return "DestructionEffectGasCanister";
- }
-
- override bool IsDestructionBehaviour()
- {
-
- if (GetQuantity() > 0)
- {
- return true;
- }
-
- else
- {
- return false;
- }
- }
- };
- class NailBox: Box_Base {};
- class Netting: ItemBase {};
- class SmallGasCanister: ItemBase
- {
- override bool CanSwitchDuringAttach(EntityAI parent)
- {
- return true;
- }
-
- override string GetDestructionBehaviour()
- {
- return "DestructionEffectGasCanister";
- }
-
- override bool IsDestructionBehaviour()
- {
-
- if (GetQuantity() > 0)
- {
- return true;
- }
-
- else
- {
- return false;
- }
- }
- };
- class SmallStone: ItemBase
- {
- override void SetActions()
- {
- super.SetActions();
-
- AddAction(ActionCraftStoneKnifeEnv);
- }
- };
- class Spraycan_ColorBase: ItemBase {};
- class Spraycan_Black: Spraycan_ColorBase {};
- class Spraycan_Green: Spraycan_ColorBase {};
- class TannedLeather: ItemBase
- {
- override void SetActions()
- {
- super.SetActions();
-
- AddAction(ActionAttachToConstruction);
- }
- };
|