View Issue Details

IDProjectCategoryView StatusLast Update
0000130Gameplay + OpenGL[All Projects] Bugpublic2017-01-28 05:19
ReporterCherepoc 
Assigned To_mental_ 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Summary0000130: Decorate: A_GiveInventory does not work with PowerupGiver
DescriptionHere's the decorate code:


ACTOR pinv : CustomInventory
{
    States
    {    
    Pickup:
        TNT1 A 1 A_GiveInventory("pgiver", 1)  
        Stop
    }
}

ACTOR pgiver : PowerupGiver
{
    +INVENTORY.PERSISTENTPOWER
    +INVENTORY.AUTOACTIVATE
    +INVENTORY.ALWAYSPICKUP
    Powerup.Type PowerFly
    States
    {
    Spawn:
        TNT1 A 5
        Loop
    }
}

ACTOR PowerFly : PowerFlight
{
    Powerup.Duration 0x7FFFFFFF
    Powerup.Color 0, 0, 0, 0
    +INVENTORY.HUBPOWER
    +INVENTORY.PERSISTENTPOWER  
}


Start the game, open console, type "give pinv". In gzdoom 2.3.2 this results in getting flight powerup. In 2.4pre-219 no powerup is given. Specifying "PowerFly" directly in A_GiveInventory works correctly.
TagsNo tags attached.

Relationships

Activities

_mental_

_mental_

2017-01-28 05:19

developer   ~0000264

Works fine with the latest code at c923f8c.

Issue History

Date Modified Username Field Change
2017-01-27 15:19 Cherepoc New Issue
2017-01-28 05:19 _mental_ Assigned To => _mental_
2017-01-28 05:19 _mental_ Status new => resolved
2017-01-28 05:19 _mental_ Resolution open => no change required
2017-01-28 05:19 _mental_ Note Added: 0000264