50 RegisterNetSyncVariableBool(
"m_CanReceiveUpgrade");
76 if (GetHierarchyRoot())
77 return GetHierarchyRoot().GetPosition();
79 return super.GetPosition();
84 super.EEDelete(parent);
94 if (
att &&
att.IsFullQuantity())
102 if (!
super.CanPutInCargo(parent))
return false;
110 return !GetCompEM().IsWorking();
120 return !GetCompEM().IsWorking();
126 return !GetCompEM().IsWorking();
131 return GetCompEM().IsWorking();
136 return GetCompEM().IsWorking();
147 if (!GetCompEM().CheckWetness())
152 if (
rag && GetCompEM().
GetEnergy() < GetCompEM().GetEnergyUsage() * GetCompEM().GetUpdateInterval())
158 if (!GetCompEM().CanWork())
167 if (
this !=
player.GetItemInHands())
192 if (!GetCompEM().HasEnoughStoredEnergy())
195 GetCompEM().SwitchOn();
200 if (!GetCompEM().HasEnoughStoredEnergy())
201 GetCompEM().SwitchOff();
224 if (
rag.GetQuantity() <= 1)
254 float energy_limit = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
318 float energy_limit = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
341 float energy_limit = GetCompEM().GetEnergyMax() - GetCompEM().GetEnergy();
471 if (
GetType() ==
"WoodenStick")
476 stick.SetPosition(pos);
477 stick.PlaceOnSurface();
479 if (
stick.GetType() ==
"LongWoodenStick")
482 stick.SetPosition(pos);
507 return Rag.Cast(GetAttachmentByType(
Rag));
518 rag.UnlockFromParent();
563 GetCompEM().SwitchOff();
607 if (!
GetGame().IsDedicatedServer())
690 if (GetCompEM().IsWorking())
698 if (GetCompEM().IsWorking())
706 if (GetCompEM().IsWorking())
738 GetInventory().CreateAttachment(
"Rag");
764 if (GetCompEM().IsWorking())
787 if (!
super.OnStoreLoad(
ctx, version))
834 if (
GetGame().IsDedicatedServer())
905 ctx.Write(m_ConsumeRagFlipFlop);
906 ctx.Write(m_RagsUpgradedCount);
912 if (!
super.OnStoreLoad(
ctx, version))
917 if (!
ctx.Read(m_ConsumeRagFlipFlop))
920 if (!
ctx.Read(m_RagsUpgradedCount))
923 UpdateCheckForReceivingUpgrade();
Param4< int, int, string, int > TSelectableActionInfoWithColor
eBleedingSourceType GetType()
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
void AddAction(typename actionName)
const int ECE_PLACE_ON_SURFACE
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
void SetQuantityNormalized(float value, bool destroy_config=true, bool destroy_forced=false)
Sets quantity in normalized 0..1 form between the item's Min a Max values as defined by item's config...
override float GetQuantity()
override void AddWet(float value)
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
override void OnWasAttached(EntityAI parent, int slot_id)
void OnStoreSave(ParamsWriteContext ctx)
bool OnStoreLoad(ParamsReadContext ctx, int version)
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
override void OnWasDetached(EntityAI parent, int slot_id)
static float m_BurnTimePerFullLard
static int m_StartFadeOutOfLightAtQuantity
static float m_MaxConsumableFuelQuantity
static float m_BurnTimePerFullFuelDose
static float m_WaterEvaporationByFireIntensity
FlammableBase m_BurnTimePerRag
static float m_MaxConsumableLardQuantity
class JsonUndergroundAreaTriggerData GetPosition
Super root of all classes in Enforce script.
void ConsumeFuelFromGasStation()
override void OnDebugSpawn()
override bool CanPutInCargo(EntityAI parent)
void ApplyResultModifications(ItemBase result)
bool IsRagDryEnough(ItemBase rag)
override void OnInventoryExit(Man player)
override int GetMeleeMode()
float m_MaxConsumableFuelQuantityEx
void UpdateCheckForReceivingUpgrade()
float m_BurnTimePerFullLardEx
void ConsumeLard(Lard lard)
vector m_ParticleLocalPos
override bool IsIgnited()
override bool CanReleaseAttachment(EntityAI attachment)
bool CanTransformIntoStick()
ref UniversalTemperatureSource m_UTSource
override bool OnStoreLoad(ParamsReadContext ctx, int version)
SoundOnVehicle m_LoopSoundEntity
override void OnIgnitedThis(EntityAI fire_source)
override void SetActions()
void CraftingInit(float quantity)
override void OnWork(float consumed_energy)
override void OnStoreSave(ParamsWriteContext ctx)
override void OnWorkStop()
void TryTransformIntoStick()
bool m_ConsumeRagFlipFlop
override void DeferredInit()
override void EEDelete(EntityAI parent)
void Upgrade(ItemBase source)
override void EEItemDetached(EntityAI item, string slot_name)
void LockRags(bool do_lock)
override bool CanRemoveFromCargo(EntityAI parent)
override void OnSwitchOff()
string GetBurningMaterial()
float m_BurnTimePerFullFuelDoseEx
override bool CanBeIgnitedBy(EntityAI igniter=NULL)
float m_WaterEvaporationByFireIntensityEx
ref UniversalTemperatureSourceLambdaConstant m_UTSLConstant
void SetTorchDecraftResult(string type)
override void OnSwitchOn()
override void OnWorkStart()
override void OnAttachmentQuantityChangedEx(ItemBase item, float delta)
ref UniversalTemperatureSourceSettings m_UTSSettings
override bool DisassembleOnLastDetach()
float m_MaxConsumableLardQuantityEx
override vector GetUniversalTemperatureSourcePosition()
int m_StartFadeOutOfLightAtQuantityEx
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
override int GetMeleeSprintMode()
override bool CanIgniteItem(EntityAI ignite_target=NULL)
override int GetMeleeHeavyMode()
override bool CanPutAsAttachment(EntityAI parent)
override void EEItemAttached(EntityAI item, string slot_name)
void ConsumeFuelFromBottle(ItemBase vessel)
override bool HasFlammableMaterial()
override void OnItemInHandsPlayerSwimStart(PlayerBase player)
string GetBurntMaterial()
Legacy way of using particles in the game.
void ScaleParticleParamFromOriginal(int parameter_id, float coef)
Scales the given parameter on all emitors relatively to their ORIGINAL value.
int GetParticleID()
Gets particle id.
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
Object GetDirectParticleEffect()
Returns direct particle effect entity which is usually handled by this class 'Particle' if there is o...
static const int TORCH_T2
static const int TORCH_T1
base class for transformation operations (creating one item from another)
Serialization general interface. Serializer API works with:
override void CopyOldPropertiesToNew(notnull EntityAI old_item, EntityAI new_item)
original Timer deletes m_params which is unwanted
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Min(float x, float y)
Returns smaller of two given values.
static proto float Round(float f)
Returns mathematical round of value.
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static proto float Ceil(float f)
Returns ceil of value.
const int SAT_DEBUG_ACTION