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

How to add more weapons?

Recommended Posts

How can I add another weapon in another? What I mean is that as I can add one more weapon in another section of weapon, example: two pistols in its section.

Share this post


Link to post

If you're making a wad for ZDoom, the simplest way is to define Weapon.SlotNumber in the weapon actor's properties in DECORATE - then the weapon will be assigned to the slot without removing weapons already in that slot, and you don't even have to redefine the player class this way, unlike with other ZDoom-specific methods for adding weapons.

Share this post


Link to post

If you have a custom weapon defined in DECORATE like this:

actor MyWeapon [...] {
  [...]
}
Just add this one line into the definition block:
actor MyWeapon [...] {
  Weapon.SlotNumber 2
  [...]
}
That way, the weapon will be assigned to slot 2. Then, pressing the number key 2 in the game will select this weapon, and pressing the number key 2 again will select the default pistol (or vice versa).

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
×