Page 1 of 1

Model affecting only for specific ammo type

Posted: Sat Apr 05, 2008 12:30
by Azure Agony
I'm going to make object ( decorate model ) which can be attacked only with specific ammo type; it is possible to create in ZDoom/GZDoom?
Here I wider talk what I mean:
For example I'll make model of metal crate and when I'll shoot with bullets or shots it should be no effect, but if I'll shoot with rocket or plasma it should be destroyed/melted. How can I do that?

Posted: Sat Apr 05, 2008 12:57
by Enjay
I think this will be useful to you.

http://www.zdoom.org/wiki/Custom_damage_types
As you can see in the above example, you can also specify a painchance for each type of custom damage you have defined. This can allow enemies that will always be affected by fire damage (as above) but never by ice damage, for example.

In addition to the above, you can also create monsters that are resistant, or vulnerable, to a particular type of custom damage. You do this with the DamageFactor property, using the format damagefactor "damagetype", multiplier.

Posted: Sat Apr 05, 2008 16:24
by Azure Agony
Yes, this will help me, great thanks Enjay!