public override void BatchedRender() { base.BatchedRender(); List <Entity> teamRevivers = base.Scene[GameTags.Dummy]; // Using Dummy tag for MyTeamReviver for (int i = 0; i < teamRevivers.Count; i++) { MyTeamReviver teamReviver = (MyTeamReviver)teamRevivers[i]; teamReviver.HUDRender(); } }
public override void Update() { base.Update(); List <Entity> teamRevivers = base[GameTags.Dummy]; // Using Dummy tag for MyTeamReviver for (int i = 0; i < teamRevivers.Count; i++) { MyTeamReviver teamReviver = (MyTeamReviver)(teamRevivers[i]); if (teamReviver.Active) { teamReviver.ReviveUpdate(); } } }
public override void Update() { base.Update(); if (this.reviverAdded == true) { this.reviverAdded = false; List <Entity> teamRevivers = base.Level[GameTags.TeamReviver]; if (teamRevivers.Count > 0) { TeamReviver teamReviver = (TeamReviver)(teamRevivers[teamRevivers.Count - 1]); base.Level.Layers[teamReviver.LayerIndex].Remove(teamReviver); MyTeamReviver myTeamReviver = new MyTeamReviver( this, TeamReviver.Modes.TeamDeathmatch, ((MyMatchVariants)(base.Level.Session.MatchSettings.Variants)).GhostRevives ); base.Level.Layers[myTeamReviver.LayerIndex].Add(myTeamReviver, false); } } }