Help with custom swimming suit...
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.
Help with custom swimming suit...
I'm working on a decorate of a suit to breath under Deep water areas (I know the Radiation suit have this function but the green screen looks awful in blue coloured sectors)... so i was wondering if there was a way to make it just like the Radiation suit but without that green screen appearing when picking it up... also I was thinking that would be great to make the suit appear in the corner of the screen like the speed boots of Hexen when they are activated... any help appreciated 
Re: Help with custom swimming suit...
Inherit from this [wiki]Classes:PowerIronFeet[/wiki], but adjust the Powerup.Color property. Give it an Inventory.Icon property to give it an icon that'll be displayed. Then inherit from [wiki]Classes:RadSuit[/wiki] but change its Powerup.Type property to that of your new Powerup.
Re: Help with custom swimming suit...
Would i need to make it a new actor for the power-up?
Something like this?...
ACTOR PowerOxigen : Powerup native
{
Powerup.Duration -60
}
Something like this?...
ACTOR PowerOxigen : Powerup native
{
Powerup.Duration -60
}
Re: Help with custom swimming suit...
No. You cannot declare new native actors, as they are, well, native. I was talking about [wiki]using inheritance[/wiki].
Would be something like this:
Adjust as appropriate. I'm not sure if full transparency is alpha 0 or alpha 1. If you can't see anything when the item is picked up, then try the other value. I named the icon "SWIMSUIT" in this example, but use whatever name you're using. And for the powerup giver, I gave it a doomed num of 1337, change it to whatever value you want (but avoid using one of the [wiki]standard editor numbers[/wiki], and the maximum is 32767).
Would be something like this:
Code: Select all
Actor PowerOxygen : PowerIronFeet
{
Powerup.Color 0, 0, 0, 0
Inventory.Icon "SWIMSUIT"
}
Actor SwimSuit : PowerupGiver 1337
{
Powerup.Type "Oxygen"
}Re: Help with custom swimming suit...
Thank you very much!
It worked out fine...
For those who haven't tried this, the icon name must have the ARTI- term before its name (ARTISWIM for example)
I also based in Hexen decorate of artifacts to get this conclusion...
It worked out fine...
For those who haven't tried this, the icon name must have the ARTI- term before its name (ARTISWIM for example)
I also based in Hexen decorate of artifacts to get this conclusion...
- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: Help with custom swimming suit...
Actually, that's just a naming style, like the DS prefix for sounds and D_ prefix for music.
Re: Help with custom swimming suit...
It's not a necessity, just something the Raven developers adopted to make the resources easier to identify. And that's just for the icons of the inventory items you can use. For the icons of powerups (rather than powerupgivers), they used other names; for example the invulnerability power in Hexen uses the "SPSHLD0" icon; the Tome of Power uses "SPINBK0", the Dark Minion uses "SPMINO0" and the Wings of Wrath use "SPFLY0".darkwyder wrote:the icon name must have the ARTI- term before its name (ARTISWIM for example)
I also based in Hexen decorate of artifacts to get this conclusion...
Re: Help with custom swimming suit...
The first time I didn't add the ARTI- to the the graphic name, and it marked me error. It worked out fine when I added it... must be my old version of zdoom. (well... not old, just outdated
)
