public SlamEffect(Units.MainCharacter performer) { AddChild(new SwordStrikeEffect(performer, 0.3f, 0.47f, new TextureFromFile("Models/Effects/SlamFire1.png"), -10f) { OrientationRelation = OrientationRelation.Absolute }); }
public SwordStrikeEffect(Units.MainCharacter mainCharacter, float ttl, float delay, TextureFromFile texture, float weaponLength) { this.mainCharacter = mainCharacter; this.delay = delay; SwordOffset = Vector3.UnitZ * weaponLength; entity = new Entity { VisibilityLocalBounding = new Common.Bounding.NonfittableBounding(Vector3.Zero, false, true) }; AddChild(entity); this.ttl = ttl; fadeTotal = fadeSurvive; this.texture = texture; }