Page 1 of 1

Help with a powerup item

Posted: Mon May 01, 2006 21:35
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
   }   
}

Posted: Mon May 01, 2006 21:47
by Graf Zahl
Unfortunately not. Unless you count the time yourself in a script and act accordingly.

Posted: Mon May 01, 2006 23:14
by wildweasel
Can I use Decorate to call a script in FSGLOBAL?

Posted: Tue May 02, 2006 0:51
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.