mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-07 13:30:23 +00:00
1bd6ac028b
- Added a PickupMessage property to the internal actor parser, replaced most of the virtual PickupMessages with it and placed the code that reads the metadata into AInventory::PickupMessage. Now the PickupMessage method is truly virtual and I can do: Added a Health.LowMessage property to define double message items like Doom's medikit in DECORATE. - Since defining Mana3 as an ammo type and then overriding the TryPickup method means that this item defeats all ammo checks in the game it might as well be defined as a CustomInventory item. At least this fixes the amount given in easy and very hard skills. - Converted all ammo items to DECORATE. - Changed internal property setting of ammo types and sister weapons to use fuglyname as for DECORATE definitions. This allows to export the ammo definitions into DECORATE definitions without doing it for the weapons themselves. - Replaced obituary methods with actor properties. - Fixed: The secret map check didn't work for maps inside Zips. SVN r196 (trunk)
144 lines
2.4 KiB
Text
144 lines
2.4 KiB
Text
// Clip --------------------------------------------------------------------
|
|
|
|
ACTOR Clip : Ammo 2007
|
|
{
|
|
Game Doom
|
|
SpawnID 11
|
|
Inventory.PickupMessage "$GOTCLIP"
|
|
Inventory.Amount 10
|
|
Inventory.MaxAmount 200
|
|
Ammo.BackpackAmount 10
|
|
Ammo.BackpackMaxAmount 400
|
|
Inventory.Icon "CLIPA0"
|
|
States
|
|
{
|
|
Spawn:
|
|
CLIP A -1
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Clip box ----------------------------------------------------------------
|
|
|
|
ACTOR ClipBox : Clip 2048
|
|
{
|
|
Game Doom
|
|
SpawnID 139
|
|
Inventory.PickupMessage "$GOTCLIPBOX"
|
|
Inventory.Amount 50
|
|
States
|
|
{
|
|
Spawn:
|
|
AMMO A -1
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Rocket ------------------------------------------------------------------
|
|
|
|
ACTOR RocketAmmo : Ammo 2010
|
|
{
|
|
Game Doom
|
|
SpawnID 140
|
|
Inventory.PickupMessage "$GOTROCKET"
|
|
Inventory.Amount 1
|
|
Inventory.MaxAmount 50
|
|
Ammo.BackpackAmount 1
|
|
Ammo.BackpackMaxAmount 100
|
|
Inventory.Icon "ROCKA0"
|
|
States
|
|
{
|
|
Spawn:
|
|
ROCK A -1
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Rocket box --------------------------------------------------------------
|
|
|
|
ACTOR RocketBox : RocketAmmo 2046
|
|
{
|
|
Game Doom
|
|
SpawnID 141
|
|
Inventory.PickupMessage "$GOTROCKBOX"
|
|
Inventory.Amount 5
|
|
States
|
|
{
|
|
Spawn:
|
|
BROK A -1
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Cell --------------------------------------------------------------------
|
|
|
|
ACTOR Cell : Ammo 2047
|
|
{
|
|
Game Doom
|
|
SpawnID 75
|
|
Inventory.PickupMessage "$GOTCELL"
|
|
Inventory.Amount 20
|
|
Inventory.MaxAmount 300
|
|
Ammo.BackpackAmount 20
|
|
Ammo.BackpackMaxAmount 600
|
|
Inventory.Icon "CELLA0"
|
|
States
|
|
{
|
|
Spawn:
|
|
CELL A -1
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Cell pack ---------------------------------------------------------------
|
|
|
|
ACTOR CellPack : Cell 17
|
|
{
|
|
Game Doom
|
|
SpawnID 11
|
|
Inventory.PickupMessage "$GOTCELLBOX"
|
|
Inventory.Amount 100
|
|
States
|
|
{
|
|
Spawn:
|
|
CELP A -1
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Shells ------------------------------------------------------------------
|
|
|
|
ACTOR Shell : Ammo 2008
|
|
{
|
|
Game Doom
|
|
SpawnID 12
|
|
Inventory.PickupMessage "$GOTSHELLS"
|
|
Inventory.Amount 4
|
|
Inventory.MaxAmount 50
|
|
Ammo.BackpackAmount 4
|
|
Ammo.BackpackMaxAmount 100
|
|
Inventory.Icon "SHELA0"
|
|
States
|
|
{
|
|
Spawn:
|
|
SHEL A -1
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Shell box ---------------------------------------------------------------
|
|
|
|
ACTOR ShellBox : Shell 2049
|
|
{
|
|
Game Doom
|
|
SpawnID 143
|
|
Inventory.PickupMessage "$GOTSHELLBOX"
|
|
Inventory.Amount 20
|
|
States
|
|
{
|
|
Spawn:
|
|
SBOX A -1
|
|
Stop
|
|
}
|
|
}
|
|
|