12 private ParticleEffectEntity
m_Fire =
null;
39 ParticleEffectEntitySpawnParams spawnParams();
41 spawnParams.Transform[3] = offset;
42 m_Fire = ParticleEffectEntity.SpawnParticleEffect(particle, spawnParams);
84 return "Start dragging this object around.";
88 return "Let go of this object.";
98 return "Use lighter to set this object on fire!";
102 return "Attempt to extinguish this object.";
184 m_User.GetWorldTransform(userMat);
185 vector userTgtPos = userMat[3] + userMat[2] * 1.3;
186 vector selfOrigin =
m_Owner.GetOrigin();
187 vector dir = userTgtPos - selfOrigin;
188 dir[1] = Math.Clamp(dir[1], -0.5, 0.5);
189 float distance = vector.Distance(userTgtPos, selfOrigin);
197 float upMag = userMat[3][1] - selfOrigin[1];
198 dir += Vector(0, upMag, 0);
206 VObject obj =
m_Owner.GetVObject();
207 string materials[256];
208 int numMats = obj.GetMaterials(materials);
210 for (
int i = 0; i < numMats; i++)
212 remap +=
"$remap '" + materials[i] +
"' '{DD86C0AE16B22569}Assets/Props/Garbage/Data/MI_RubberForTrashBinContainer_01.emat';";
220 override void EOnFrame(IEntity owner,
float timeSlice)
238 super.OnPostInit(owner);
239 SetEventMask(owner, EntityEvent.INIT | EntityEvent.FRAME | EntityEvent.SIMULATE);