View Issue Details

IDProjectCategoryLast Update
0019379AI War 2Gameplay IssueFeb 17, 2018 8:38 pm
ReporterChris_McElligottPark Assigned Tokeith.lamothe  
Severityminor 
Status resolvedResolutionfixed 
Product Version0.702 Activating Mk1 Grinding Machine 
Fixed in Version0.707 
Summary0019379: From Badger: the human faction doesn't see its Controllers die
DescriptionAlso weird: the human faction doesn't see its Controllers die. I have the following in Human.cs.

        public override void DoOnDeathLogic(GameEntity entity, EntitySystem FiringSystemOrNull, ArcenSimContext Context)
        {
            ArcenDebugging.ArcenDebugLogSingleLine("Human Entity destroyed: " + entity.TypeData.InternalName, Verbosity.DoNotShow );
            if (entity.GetMatches( EntityRollupType.Controllers ) // thing dying is a planet controller
                && FiringSystemOrNull != null) // the game knows who killed it
            {
                Engine_AIW2.Instance.PresentationLayer.PlaySoundByType( SFXItemType_NonPositional.PlayerControllerDestroyed );
            }


The Human Entity Destroyed print never says "Controller", though an equivalent printout in AI.cs does for when humans destroy an AI controller.
TagsNo tags attached.

Activities

keith.lamothe

Feb 17, 2018 8:38 pm

administrator   ~0046998

For 0.707:

* Split out unit-on-death logic into "first death" and "any death", since things like controllers can die and be reclaimed several times during the game.
** AIP-on-death and such goes in the first-death logic.
** Most other stuff goes in any-death logic. For instance, the checks for taunts/messages when certain things die.

Thanks :)

Issue History

Date Modified Username Field Change
Jan 26, 2018 1:53 pm Chris_McElligottPark New Issue
Jan 26, 2018 1:53 pm Chris_McElligottPark Status new => assigned
Jan 26, 2018 1:53 pm Chris_McElligottPark Assigned To => keith.lamothe
Feb 17, 2018 8:38 pm keith.lamothe Status assigned => resolved
Feb 17, 2018 8:38 pm keith.lamothe Resolution open => fixed
Feb 17, 2018 8:38 pm keith.lamothe Fixed in Version => 0.707
Feb 17, 2018 8:38 pm keith.lamothe Note Added: 0046998