Help with custom swimming suit...

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
User avatar
darkwyder
Posts: 22
Joined: Tue Dec 09, 2008 4:07 pm

Help with custom swimming suit...

Post by darkwyder »

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 :)
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Help with custom swimming suit...

Post by Gez »

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.
User avatar
darkwyder
Posts: 22
Joined: Tue Dec 09, 2008 4:07 pm

Re: Help with custom swimming suit...

Post by darkwyder »

Would i need to make it a new actor for the power-up?
Something like this?...

ACTOR PowerOxigen : Powerup native
{
Powerup.Duration -60
}
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Help with custom swimming suit...

Post by Gez »

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:

Code: Select all

Actor PowerOxygen : PowerIronFeet
{
	Powerup.Color 0, 0, 0, 0
	Inventory.Icon "SWIMSUIT"
}

Actor SwimSuit : PowerupGiver 1337
{
	Powerup.Type "Oxygen"
}
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).
User avatar
darkwyder
Posts: 22
Joined: Tue Dec 09, 2008 4:07 pm

Re: Help with custom swimming suit...

Post by darkwyder »

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... :D
User avatar
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...

Post by XutaWoo »

Actually, that's just a naming style, like the DS prefix for sounds and D_ prefix for music.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Help with custom swimming suit...

Post by Gez »

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... :D
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".
User avatar
darkwyder
Posts: 22
Joined: Tue Dec 09, 2008 4:07 pm

Re: Help with custom swimming suit...

Post by darkwyder »

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 :lol: )
Locked

Return to “Editing (Archive)”