So I've been trying to replace armors lately. I decided that it would be handy to further rip off DOOM 4 and make all armors fully absorb damage, but I have a few issues related to these.
Firstly, I use idkfa/idfa for testing purposes, since both are faster than using give or summon commands. However, idkfa still gives me the normal blue armor, rather than my modified armor. Can I change this?
Second, because my armors all fully absorb damage, whenever the player is shot and they have enough armor to not receive health damage, there's no sound or hit effect that plays. Is it also possible to add some form of feedback when that happens?
Custom armor issues.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
-
- Posts: 10
- Joined: Thu May 04, 2017 10:26 am
- Location: MAP08
-
- Posts: 29
- Joined: Wed Mar 22, 2017 1:40 pm
Re: Custom armor issues.
ACTOR ************ : BasicArmorPickup Replaces BlueArmor
-
- Posts: 10
- Joined: Thu May 04, 2017 10:26 am
- Location: MAP08
Re: Custom armor issues.
I already know how to replace armor actors. In fact, I've already replaced the blue armor. The problem is that idkfa/'give armor' still gives me the default blue armor, regardless of whether or not I've replaced it through DECORATE.D3X1K AXYZ wrote:ACTOR ************ : BasicArmorPickup Replaces BlueArmor
- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: Custom armor issues.
All I could do on that end was override Player.DamageMobj() and reinvent a number of wheels.
(note that "BlueArmour", etc. is intentionally spelled the unAmerican way as the name of a new separate actor. Yes this does completely throw out Doom's native armour system, but that system makes so many assumptions that it seems better to just throw it out in your case anyway.)
(note that "BlueArmour", etc. is intentionally spelled the unAmerican way as the name of a new separate actor. Yes this does completely throw out Doom's native armour system, but that system makes so many assumptions that it seems better to just throw it out in your case anyway.)
- TensorMatrix
- Posts: 41
- Joined: Wed Mar 29, 2017 7:05 am
Re: Custom armor issues.
Do you have a MAPINFO in your mod?
You need to add line "armoricons" inside gameinfo block. It needs to look like this:
"<basic icon lump>" is for normal (Green) armor
"<advanced savepercent value>" is defence value for blue armor
"<advanced icon lump>" is icon for blue armor
More info in here:
https://zdoom.org/wiki/MAPINFO/GameInfo_definition
You need to add line "armoricons" inside gameinfo block. It needs to look like this:
Code: Select all
gameinfo
{
armoricons = "<basic icon lump>", <advanced savepercent value>, "<advanced icon lump>"
}
"<advanced savepercent value>" is defence value for blue armor
"<advanced icon lump>" is icon for blue armor
More info in here:
https://zdoom.org/wiki/MAPINFO/GameInfo_definition