Page 1 of 1

Transfer classes to (G)ZDoom

Posted: Fri Apr 04, 2014 7:23 pm
by Sandro
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.

RE: Transfer classes to (G)ZDoom

Posted: Fri Apr 04, 2014 7:51 pm
by Vincent(PDP)
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