Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Freakin' Noob

New weapons

Recommended Posts

Is there a way to add a new weapon slot? i want to include an unmaker/railgun type weapon to my wads, and i dont want to replace anything else... can this be done?

Share this post


Link to post

If you're using Zdoom as a source port you could use Decorate to add a slot:

Open your wad in XWE and create two new entries. One named DECORATE and the second named KEYCONF

in DECORATE write something like:

// RAILGUN
ACTOR Railgunx : Weapon 1234
{
Weapon.AmmoType1 "Cell"
Weapon.AmmoUse 1
Weapon.AmmoGive 40
Inventory.PickupSound "misc/w_pkup"
Inventory.PickupMessage "Picked up a Railgun!"
Obituary "%o got derailed."
States
{
Spawn:
PLAS A 1
Loop
Ready:
PLSG A 8 Bright A_WeaponReady
Loop
Deselect:
PLSG A 1 A_Lower
Loop
Select:
PLSG A 1 A_Raise
Loop

Fire:
PLSF A 0 A_Light1
PLSF B 1 Bright
PLSF A 1 Bright A_RailAttack(18,0,1,"FF FF FF","FF FF FF",10)
PLSF B 1 Bright
PLSG A 0 A_Light0
PLSG B 40 A_ReFire
goto Ready
}
}

and in KEYCONF write:

weaponsection rail

setslot 9 Railgunx

Now when you play your wad and press "9" you've got a railgun (that looks just like a plasma riffle).
You can edit the DECORATE entry to change the characteristics of your railgun.

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
×