MantisBT - Zandronum
View Issue Details
0001935Zandronum[All Projects] Suggestionpublic2014-09-15 14:072024-03-02 07:44
ZzZombo 
 
normalfeatureN/A
closedno change required 
2.0-beta 
 
0001935: Externalized medals and related stuff
'https://bitbucket.org/Torr_Samaho/zandronum/pull-request/45/externalized-medals-and-related-stuff/diff [^]'
actor Medal:CustomInventory native
{
    ReactionTime 105//time to keep the overhead icon, in tics.
    Inventory.PickupSound ""//remote sound to play if another player got it.
    +INVENTORY.ALWAYSPICKUP
    -COUNTITEM
    States
    {
        Spawn:
        UNKN A -1
        wait
        Pickup:
        TNT1 A 0 A_Recoil(0)//workaround to make picking up successful by default.
        stop
    }
}

Also used properties are DropItem (all medals listed there regardless of amount and probability are lower ranked, so this medal will occupy their place in the queue), AnnouncerPickupEntry for announcing and PickupMessage for the text drawn on the screen.

Since the medal system was heavily tied to other pieces of the code the overall commit is very big, much more bigger than I supposed first. Needs throughout testing.
No tags attached.
Issue History
2014-09-15 14:07ZzZomboNew Issue
2024-03-02 07:44Ru5tK1ngNote Added: 0023239
2024-03-02 07:44Ru5tK1ngStatusnew => closed
2024-03-02 07:44Ru5tK1ngResolutionopen => no change required

Notes
(0023239)
Ru5tK1ng   
2024-03-02 07:44   
Closing since there's a new medal overhaul planned for 3.2