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?
Model affecting only for specific ammo type
- Azure Agony
- Posts: 71
- Joined: Fri Aug 24, 2007 6:40
- Location: Somewhere in HANGAR or E4M7
- Enjay
- Developer
- Posts: 4723
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
I think this will be useful to you.
http://www.zdoom.org/wiki/Custom_damage_types
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.
- Azure Agony
- Posts: 71
- Joined: Fri Aug 24, 2007 6:40
- Location: Somewhere in HANGAR or E4M7