Additional Information | 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. |