ACTOR EnviroProtect : PowerupGiver
{
+INVENTORY.AUTOACTIVATE
Inventory.MaxAmount 0
Powerup.Type "IronFeet"
Powerup.Color 0, 0, 0, 0
Powerup.Duration 2147483647
}
}
Annoying powerup colour trouble
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.
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.
-
- Posts: 3975
- Joined: Fri Jul 06, 2007 9:16 am
Annoying powerup colour trouble
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?
Re: Annoying powerup colour trouble
have you changed the colour bit as it might be the basic colour for the ironfeet
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
Re: Annoying powerup colour trouble
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"
}
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Annoying powerup colour trouble
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.