Help with a powerup item

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Help with a powerup item

Post by wildweasel »

I want to make my QuadDamage powerup make a sound when it's wearing out. Is there a way to do this, Decorate or Fragglescript-wise?

This is what I have so far:

Code: Select all

ACTOR QuadDamage : PowerupGiver 86
{
   +INVENTORY.ALWAYSPICKUP
   +INVENTORY.AUTOACTIVATE
   +COUNTITEM
   scale 0.8
   Inventory.MaxAmount 0
   Inventory.PickupSound "items/quaddamage"
   Inventory.PickupMessage "quad damage!"
   powerup.color "44 55 aa" 25
   powerup.duration 700 
   powerup.type "WeaponLevel2"
   states
   {
   Spawn:
      PQUA ABCDEFGH 3 BRIGHT
      Loop
   }   
}
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Unfortunately not. Unless you count the time yourself in a script and act accordingly.
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Post by wildweasel »

Can I use Decorate to call a script in FSGLOBAL?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

No. The needed special is not in the list of supported commands for DECORATE.

The FS_Execute special is still undocumented because Legacy hasn't finalized it yet. I don't want to create my own incompatible version of it. They are still routing everything through their one extension special which I consider not final. As such I consider my current assignment temporary and won't export or document it.
Locked

Return to “GZDoom”