Annoying powerup colour trouble

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
CaptainToenail
Posts: 3975
Joined: Fri Jul 06, 2007 9:16 am

Annoying powerup colour trouble

Post by CaptainToenail »

I have a custom player classs that is supposed to be invulnerable to nukage, lava etc. by giving it a powerup, but this causes a green screen effect which I don't want, the following code does not remove it either! Why not?
ACTOR EnviroProtect : PowerupGiver
{
+INVENTORY.AUTOACTIVATE
Inventory.MaxAmount 0
Powerup.Type "IronFeet"
Powerup.Color 0, 0, 0, 0
Powerup.Duration 2147483647
}
}
User avatar
corysykes
Posts: 329
Joined: Mon May 07, 2007 6:03 pm
Location: Location i have no Location

Re: Annoying powerup colour trouble

Post by corysykes »

have you changed the colour bit as it might be the basic colour for the ironfeet
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Re: Annoying powerup colour trouble

Post by TheDarkArchon »

Bump but from what I can gather from the wiki, the colour goes on the powerup itself, not the powerupgiver. Try this:

Code: Select all

ACTOR PowerSteelFeet : PowerIronFeet
{
  Powerup.Color 0, 0, 0, 0
  Powerup.Duration 0x7FFFFFFF
}

ACTOR EnviroProtect : PowerupGiver
{
  +INVENTORY.AUTOACTIVATE
  Inventory.MaxAmount 0
  Powerup.Type "SteelFeet"
}
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Annoying powerup colour trouble

Post by Graf Zahl »

The powerup giver can transfer a color - but 0 is the placeholder for 'use the powerup's default' so 0,0,0,0 doesn't work.
Locked

Return to “Editing (Archive)”