Transfer classes to (G)ZDoom

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Sandro
New User
Posts: 5
Joined: Fri Apr 04, 2014 7:04 pm
Location: Erathia

Transfer classes to (G)ZDoom

#1

Post by Sandro » Fri Apr 04, 2014 7:23 pm

Hi.
I have 2 objects in my wad that come from Zandronum ressources : the Invisibility Sphere and the MaxHealthBonus. (aka red potion)
The problem is, I want my wad to be also (G)ZDoom compatible, so I need to define the two missing classes this port can't read : Translucency (the "Power.type" of the sphere) and MaxHealth (for the health bonus, whose name curiously appears in blue in Slade... :hmm: ), because I don't want to load another file to play my wad.

Unfortunately, I totally ignore how to proceed. Searched on the forums and into the ressources files, but yet no success... :neutral:

Oh, and, is there a way to use the LifeShield Sphere with Zandro... ? The file seems to not work properly with it...

Many thanks if you can help me.
Last edited by Sandro on Fri Apr 04, 2014 7:33 pm, edited 1 time in total.

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Transfer classes to (G)ZDoom

#2

Post by Vincent(PDP) » Fri Apr 04, 2014 7:51 pm

I don't think you're able to fix the Powerup.Type... Bit here's the MaxHealthBonus:

Code: Select all

//=================================================================================================
//
// MaxHealth
//
//=================================================================================================

ACTOR MaxHealth : Health native
{
	Inventory.MaxAmount 50
	Inventory.PickupSound "misc/health_pkup"
}

//=================================================================================================
//
// Max. health bonus
//
//=================================================================================================

ACTOR MaxHealthBonus : MaxHealth 5090
{
	Game Doom
	Game Heretic
	Game Hexen
	SpawnID 166
	+COUNTITEM
	+INVENTORY.ALWAYSPICKUP
	Inventory.Amount 1
	Inventory.MaxAmount 50
	Health 200
	Inventory.PickupMessage "$PICKUP_MAXHEALTHBONUS"
	States
	{
	Spawn:
		BON3 ABCDCB 6
		Loop
	}
}

Since it's a native class, i have no idea if it'll work either
Last edited by Vincent(PDP) on Fri Apr 04, 2014 7:52 pm, edited 1 time in total.
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

Post Reply