How to prolong poison suit protection?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

How to prolong poison suit protection?

Postby martinezz123 » Thu Feb 06, 2020 5:11 am

Hi.
How to rolong poison suit protection?
Does "health" work this way?
martinezz123
 
Joined: 22 Jan 2020
Operating System: Windows 10/8.1/8/201x 64-bit

Re: How to prolong poison suit protection?

Postby Kappes Buur » Thu Feb 06, 2020 4:25 pm

See https://zdoom.org/wiki/Actor_properties ... p.Duration

You will have to create a new powerup actor, which could inherit
from the Radsuit for simplicity of coding.
User avatar
Kappes Buur
 
 
 
Joined: 17 Jul 2003
Location: British Columbia, Canada

Re: How to prolong poison suit protection?

Postby martinezz123 » Fri Feb 07, 2020 4:37 am

Those articles are too FRAGMENTED and too complicated for me. They do not explain explicitly how to do this.

Can anyone explain it in simple words?
martinezz123
 
Joined: 22 Jan 2020
Operating System: Windows 10/8.1/8/201x 64-bit

Re: How to prolong poison suit protection?

Postby Misery » Thu Nov 26, 2020 2:46 pm

You need to create a new actor and inherit from the radiation suit, and modify its powerup duration.

Actor SuperRadSuit : RadSuit 999

{
//$Category Powerups
//$Title Super Radiation Suit
Powerup.Duration -120
}

Powerup.Duration length can be a positive value, in which it will be in tics (1/35 second), or a negative value, in which it will be in seconds. The other two properties categorize and name it so you can find it in Doom Builder, and the number at the top is its DoomEdNum which is used to search for it in Edit Thing. Those three things can be anything you want, as long as it isn't already in use.
User avatar
Misery
 
Joined: 04 Nov 2018

Re: How to prolong poison suit protection?

Postby Gez » Thu Nov 26, 2020 3:03 pm

Also you can give it +INVENTORY.ADDITIVETIME so that when you pick sveral at once, their time is added instead of merely resetting the counter.
Gez
 
 
 
Joined: 06 Jul 2007


Return to Mapping

Who is online

Users browsing this forum: Xane123 and 3 guests