Terrain Damage and IronFeet

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 a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Terrain Damage and IronFeet

Re: Terrain Damage and IronFeet

by Gez » Wed Mar 26, 2008 2:30 pm

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

Re: Terrain Damage and IronFeet

by TheDarkArchon » Wed Mar 26, 2008 2:14 pm

dennisj1 wrote:What the heck is "cow damage"?
Whatever you want it to be.

Re: Terrain Damage and IronFeet

by dennisj1 » Wed Mar 26, 2008 2:10 pm

What the heck is "cow damage"?

Re: Terrain Damage and IronFeet

by Graf Zahl » Wed Mar 26, 2008 2:06 pm

Damage type is the exact same thing as in DECORATE, which means it can be any name imaginable - even cow damage! :P

Re: Terrain Damage and IronFeet

by HotWax » Wed Mar 26, 2008 8:34 am

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.

Re: Terrain Damage and IronFeet

by Gez » Tue Mar 25, 2008 3:30 pm

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].

Re: Terrain Damage and IronFeet

by Graf Zahl » Tue Mar 25, 2008 12:55 pm

This is all there is:

DamageType Fire
DamageAmount 10
DamageTimeMask 31

Re: Terrain Damage and IronFeet

by HotWax » Tue Mar 25, 2008 11:57 am

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

Re: Terrain Damage and IronFeet

by Graf Zahl » Sat Mar 22, 2008 9:21 am

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.

Terrain Damage and IronFeet

by ChupaReaper » Sat Mar 22, 2008 9:09 am

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?

Top