Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Spicy Cacodemon

Custom Armor & Health Pickups

Recommended Posts

I'd like to make some custom armor and health pickups. They don't need to replace the existing ones.

I can't get it to work. BasicArmor, BasicArmorPickup, ArmorBonus, BasicArmorBonus, I don't know what to type.

I keep getting Script error - @actor' is an unknown actor property.

 

Can I get a DECORATE script for a new ACTOR that gives the player 1 armor and one that gives 1 health.

Share this post


Link to post

Since this item already exists in the game, I'd say the simplest solution is to use inheritance and change just what you need.

ACTOR OneArmor : ArmorBonus 31000
{
//$Category CustomPowerups
Armor.SaveAmount 3
}

 

It does not replace anything. The number can be changed to most numbers up to 32000 something. The item is a regular armor bonus, but gives 3 armor. The part that starts with // puts the actor in a folder with the name of the category in editor, so it's easier to find. Let's say you want to give it a different sprite.

 

ACTOR OneArmor : ArmorBonus 31000
{
//$Category CustomPowerups
Armor.SaveAmount 3
States
  {
  Spawn:
  SOUL ABCDCB 6 Bright
  Loop
  }
}

 

Now they look like Soulspheres.

 

Same would go for the health bonus, you can check the actor definitions:
https://zdoom.org/wiki/Classes:ArmorBonus

https://zdoom.org/wiki/Classes:HealthBonus

 

If you want to make a new one from scratch, just use inheritance from their parent classes and take a look at what properties they have. Or add some new. :)

Edited by Rifleman

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×