public FireBullets(IBaseEntity e) : base(e, CLASSNAME) { Origin = (Vector)e.GetProperty("DT_TEFireBullets.m_vecOrigin")?.Value ?? new Vector(); { uint playerIndex = (uint)e.GetProperty("DT_TEFireBullets.m_iPlayer").Value; Player = e.World.Players.ElementAt((int)playerIndex); } Weapon = (WeaponType)(uint)e.GetProperty("DT_TEFireBullets.m_iWeaponID").Value; }
public TFExplosion(IBaseEntity e) : base(e, CLASSNAME) { { Vector origin = new Vector(); origin.X = (double?)e.GetProperty("DT_TETFExplosion.m_vecOrigin[0]")?.Value ?? 0; origin.Y = (double?)e.GetProperty("DT_TETFExplosion.m_vecOrigin[1]")?.Value ?? 0; origin.Z = (double?)e.GetProperty("DT_TETFExplosion.m_vecOrigin[2]")?.Value ?? 0; Origin = origin; } Normal = (Vector)e.GetProperty("DT_TETFExplosion.m_vecNormal").Value; }
public TFBlood(IBaseEntity e) : base(e, CLASSNAME) { { Vector origin = new Vector(); // "DT_TETFBlood.m_vecOrigin[0]" origin.X = (double?)e.GetProperty("DT_TETFBlood.m_vecOrigin[0]")?.Value ?? 0; origin.Y = (double?)e.GetProperty("DT_TETFBlood.m_vecOrigin[1]")?.Value ?? 0; origin.Z = (double?)e.GetProperty("DT_TETFBlood.m_vecOrigin[2]")?.Value ?? 0; Origin = origin; } TargetEntityIndex = (uint?)e.GetProperty("DT_TETFBlood.entindex")?.Value; }