Terrain Damage and IronFeet

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
ChupaReaper
Posts: 99
Joined: Fri Aug 03, 2007 9:39 am
Contact:

Terrain Damage and IronFeet

Post by ChupaReaper »

Flat damage defined in the Terrain lump causes damage when the player has the IronFeet powerup.
Here's my code:

Code: Select all

//==========Lava==========
Splash	Lava
{
	SmallClass	TLavaSplash
	SmallClip		12
	SmallSound	Sizzle
	BaseClass	TLavaSplash
	ChunkClass	TLavaDust
	ChunkXVelShift	8
	ChunkYVelShift	8
	ChunkZVelShift	8
	ChunkBaseZVel	2
	Sound		Singe
}
Terrain	Lava
{
	Splash		Lava
	Footclip		0
	Liquid
	DamageType	Fire
	DamageAmount	10
	DamageTimeMask	31
}
Floor	Lava	Lava
Having that code in TERRAIN will cause the player to receive damage from any sector floor with the 'Lava' flat, the problem is when the player has the ironfeet powerup, the player is still damaged. -I think I remember reading about how the RadSuit can only block a certain amout of damage, if so is there a way to increase the RadSuit's protection?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Terrain Damage and IronFeet

Post by Graf Zahl »

Terrain damage is from Hexen and Hexen never had a protection artifact.

I'd rather add a terrain option to enable IronFeet protection rather than doing it unconditionally because it leaves more options. If you add the keyword 'allowprotection' to the terrain definition the radiation suit should work. The random leakage is not implemented yet though. I find it more annoying than useful anyway.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: Terrain Damage and IronFeet

Post by HotWax »

Hmm... I went to add this information to the wiki, and it appears there is no mention of the ability to set damaging floors via the [wiki]TERRAIN[/wiki] lump. Could somebody with more knowledge of this feature add a section on this? My usage of the terrain lump amounts to downloading Enjay's WAD and autoloading it to add splashes to standard Doom levels. :D
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Terrain Damage and IronFeet

Post by Graf Zahl »

This is all there is:

DamageType Fire
DamageAmount 10
DamageTimeMask 31
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Terrain Damage and IronFeet

Post by Gez »

I wonder if it could be possible to have damage type-specific IronFeet items. Like a radsuit that protects you from nukage, but is absolutely useless when you decide to go swim in a lava pool... Terrain supports damage types, but apparently not the [wiki=Classes:PowerIronFeet]IronFeet power[/wiki].
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: Terrain Damage and IronFeet

Post by HotWax »

Graf Zahl wrote:This is all there is:

DamageType Fire
DamageAmount 10
DamageTimeMask 31
What are the valid DamageTypes? Is there a set list or can this be any string? Does it correlate directly to the damage resistances in Decorate? Does it set the MOD to use as well?

I'm also under the assumption that DamageTimeMask is the number to bitwise-AND the current gametic by to determine when to damage the player? (e.g. if (gametic & DamageMask) DoDamage(foo); ?)

[EDIT] OK, I've made a pretty major update to the [wiki]TERRAIN[/wiki] article with the new information included. I've made a couple assumptions here and some of the other information might not be 100% accurate. If somebody could look over it and verify that it works as described, I'd appreciate it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Terrain Damage and IronFeet

Post by Graf Zahl »

Damage type is the exact same thing as in DECORATE, which means it can be any name imaginable - even cow damage! :P
dennisj1
Posts: 399
Joined: Sun Jan 11, 2004 1:46 pm
Location: Superior, WI

Re: Terrain Damage and IronFeet

Post by dennisj1 »

What the heck is "cow damage"?
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Re: Terrain Damage and IronFeet

Post by TheDarkArchon »

dennisj1 wrote:What the heck is "cow damage"?
Whatever you want it to be.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Terrain Damage and IronFeet

Post by Gez »

dennisj1 wrote:What the heck is "cow damage"?
Three words: "Fetchez la vache"
Post Reply

Return to “Closed Bugs [GZDoom]”