[fixed] Tome of Power effects remain when level completed

Bugs that have been resolved.

Moderator: Graf Zahl

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

[fixed] Tome of Power effects remain when level completed

Post by wildweasel »

I'm working on a weapon mod for Heretic, and one of the things I've done is replace the Tome of Power with an instant-use version. Using this code:

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 2100 
   powerup.type "WeaponLevel2"
   states
   {
   Spawn:
      PQUA ABCDEFGH 3 BRIGHT
      Loop
   }   
}
I pick up the QuadDamage powerup and exit the level. When I enter the next level, the screen is not dimmed anymore, and there is no powerup timer - however, shooting whatever weapon I had out would fire the Tomed version instead of the normal version. That is, until I change weapons or do something that makes me switch weapons (i.e. pick up a new weapon or run out of ammo).

I propose a solution: if the current weapon is flagged as POWERED_UP, force the player to switch to its SisterWeapon upon changing levels and remove the powerup from their inventory.
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Post by wildweasel »

Could I at least have some word on what's happening with this bug? It kinda destroys the balance in a few Heretic maps.
User avatar
TheDarkArchon
Posts: 1000
Joined: Wed Jul 06, 2005 11:58
Location: What's that fucking smell
Contact:

Post by TheDarkArchon »

Known bug. Tainted Decorum also suffers from this.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Fixed - also in ZDoom.
Locked

Return to “Closed Bugs”