189{
191 {
193 m_DecraftResult = "LongWoodenStick";
194 m_ParticleLocalPos =
Vector(0, 1.2, 0);
195 }
196
198 {
200
203 }
204
206 {
207 return false;
208 }
209
211 {
214 }
215
217 {
220 }
221
223 {
224 if (
GetGame().IsServer() && !IsIgnited() &&
GetEnergy() < 1 && !IsSetForDeletion())
225 return true;
226 else
227 return false;
228 }
229
230
232 {
234
235 GetCompEM().SetEnergy0To1(GetHealth01("",""));
236 }
237
238
240 {
242 {
245
246
248
249 GetCompEM().SetEnergy0To1(GetHealth01());
250 }
251 }
252
254 {
256
257 if (!m_FireParticle)
258 {
260 }
261 m_FireParticle.ScaleParticleParamFromOriginal(
EmitorParam.VELOCITY, 1.0);
262 m_FireParticle.ScaleParticleParamFromOriginal(
EmitorParam.VELOCITY_RND, 1.0);
263 if (m_FireParticle)
264 {
266
267 m_FireParticle.ScaleParticleParamFromOriginal(
EmitorParam.SIZE, scale);
268 }
269 }
270
271
273 {
274 float max_energy = GetCompEM().GetEnergyMaxPristine();
277 GetCompEM().SetEnergy(
time );
278 }
279
281 {
287
289 }
290
292 {
294 return true;
296 {
298 {
301 }
303 {
306 }
308 {
311 }
313 {
316 }
317 }
318 return false;
319 }
320
321}
322
324{
326 {
327 return "DZ\\gear\\tools\\data\\broom_emissive.rvmat";
328 }
329
331 {
332 return "DZ\\gear\\tools\\data\\broom_burn.rvmat";
333 }
334}
Param4< int, int, string, int > TSelectableActionInfoWithColor
Definition EntityAI.c:97
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
override bool CanTransformIntoStick()
Definition Broom.c:171
void DebugSetHealthAndEnergy(float time)
Definition Broom.c:221
override void ApplyResultModifications(ItemBase result)
Definition Broom.c:165
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
Definition Broom.c:240
override string GetBurntMaterial()
Definition Broom.c:143
override void Init()
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside o...
Definition Broom.c:139
override bool CanReceiveUpgrade()
Definition Broom.c:154
BroomBase FlammableBase GetBurningMaterial()
Definition Broom.c:138
override void UpdateParticle()
Definition Broom.c:202
override void EEHitBy(TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
Definition Broom.c:180
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
Definition Broom.c:229
override void OnWorkStart()
Definition Broom.c:159
override void CalculateQuantity()
Definition Broom.c:188
override void SetActions()
Definition Broom.c:146
EActions
Definition EActions.c:2
override void OnIgnitedThis(EntityAI fire_source)
Executed on Server when some item ignited this one.
Definition FireworksBase.c:96
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
float GetEnergy()
Definition ItemBase.c:8253
override float GetQuantity()
Definition ItemBase.c:8129
override int GetQuantityMax()
Definition ItemBase.c:8081
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition ParticleManager.c:84
Definition ActionBreakLongWoodenStick.c:13
Definition ActionClapBearTrapWithThisItem.c:2
Definition InventoryItem.c:731
Definition ParticleList.c:12
static const int BROOM_TORCH_T1
Definition ParticleList.c:78
Serialization general interface. Serializer API works with:
Definition Serializer.c:56
Definition DamageSystem.c:2
Definition EnConvert.c:106
proto native CGame GetGame()
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 InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto float Min(float x, float y)
Returns smaller of two given values.
EmitorParam
Definition EnVisual.c:114
const int SAT_DEBUG_ACTION
Definition constants.c:431