Jump to content
  • 0

Adding Custom Weapon


Toilet_Wine_Connoisseur

Question

I have been having trouble getting a custom weapon added for use in making WADs.

 

I have gotten custom textures added with no problem (I absolutely adore the DOOM 64 textures)

 

I have SLADE3 and done gotten the weapon all ready as a pk3 file (converting graphics, adding separate directories for SPRITES SOUNDS etc etc)

 

I have no problem with the weapon appearing in the 'decorate' folder in THINGS, all the graphics show up just fine I dont even have any messages in  "Error and Warnings" 

 

like here 

1417978146_fuckwadat2019_10.1617-28-26.997R2787.jpg.2be8849a96b658442ae2815351456e69.jpg

 

And here

 

1012394632_fuckwadat2019_10.1615-30-00.809R2787.jpg.c5f16ee37514c7e7dd3a3dfa6d5fda1a.jpg

 

But when I actually boot it up to test it I get this

 

1841613795_DOOM2HellonEarth2019-10-16_17-35-25.jpg.e21abdff20f22d5de91944bd18b6250e.jpg

 

and this

 

809538338_DOOM2HellonEarth2019-10-16_17-35-28.jpg.cb771a64648300481ca68f0c5dd2c698.jpg

 

 

This is the code for the custom weapon I am trying to add

 

Spoiler

//Pump-Action Shotgun

actor PumpActionShotgun : Shotgun 15000 
{
  Weapon.SlotNumber 3
  spawnid 27
  obituary "%o was blown by %k's shotty."
  radius 20
  height 16
  attacksound "weapons/Xshotgf"
  inventory.pickupmessage "You got the pump-action shotgun!"
  weapon.selectionorder 1300
  weapon.kickback 100
  Weapon.AmmoType "Shell"
  Weapon.AmmoGive 8
  Weapon.AmmoUse 1
  Inventory.Icon "XSOTA0"
  Decal "BulletChip"
  states
  {
  Ready:
    XSTG A 1 A_WeaponReady
    loop
  Deselect: 
    XSTG A 1 A_Lower
    loop
  Select:
    XSTG A 1 A_Raise
    loop
  Fire:
    XSTG A 3
    XSTG A 0 A_FireBullets (5.6, 5.6, 8, 5, "BulletPuff")
    NONE A 7 A_GunFlash
    XSTG B 4
    XSTG C 3 A_PlaySound("weapons/Xshotgr")
    XSTG DE 4
    XSTG F 2
    XSTG A 6 A_ReFire
    Goto Ready  
  Flash:
    XSTF A 4 bright A_Light1
    XSTF B 3 bright A_Light2
    XSTF B 0 bright A_Light0
    stop
  Spawn:
    XSOT A -1
    stop
  }
}
 

 

I am thinking it is something really simple and dumb I am overlooking from a complete lack of coding experience.

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

I believe the problem is in the second line:

actor PumpActionShotgun : Shotgun 15000 

use this instead and see if its work:

actor PumpActionShotgun 15000 

Share this post


Link to post
  • 0
5 hours ago, Marlamir said:

I believe the problem is in the second line:

actor PumpActionShotgun : Shotgun 15000 

use this instead and see if its work:

actor PumpActionShotgun 15000 

I did do that, also I included the resource in testing parameters and got this:

 

MAPINFO error in "Pump Action Shotgun.pk3\MAPINFO", line 5. Expected "=", but got "}".

 

Share this post


Link to post
  • 0

you used slade 3 to add the weapon to the map wad?, if not, it is as if the weapon did not exist

 

I would also delete the line //Pump-Action Shotgun

 

 

This is correct, use this in the name actor:

actor PumpActionShotgun : Shotgun 15000 

 

if it does not work despite everything I think it would be very useful if you could send the wad :P

Share this post


Link to post
  • 0

Idk if its going to work but one thing you can try is replace shotgun with weapon state:

Actor PumpActionShotgun : Weapon 15000

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...