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

Custom weapon not appearing in-game

Recommended Posts

Hey everyone. First post, so please go easy on me.

 

So I was playing a lot of Reelism (nice wad) and I thought I would learn modding myself so maybe I can also contribute with awesome content in the future. I tried making a simple assault rifle weapon and... it just won't show up in game. I looked at the GunLabs and ZDoom wiki tutorials and according to those pages, everything should be working.

I'm going to attach a PK3 file, maybe someone can tell me what went wrong?

assaultrifle.rar

Share this post


Link to post

This might sound obvious but, did you actually spawn the gun in the game? place it in a custom map using the map editor, make it drop from an enemy, or replace one of the existing weapons with it?

Share this post


Link to post

you could make it drop from an enemy, like former human:

 

ACTOR ZombieMan2 ZombieMan Replaces ZombieMan

{

 DropItem "assaultrifle",255

}

 

or replace one of the other weapons already in the game with it:

 

ACTOR AssaultRifle : Weapon replaces Pistol 123

{

//your code here

}

 

or add it as a resource in a map editor and place it in a custom map.

Share this post


Link to post
17 minutes ago, tempdecal.wad said:

you could make it drop from an enemy, like former human:

 

ACTOR ZombieMan2 ZombieMan Replaces ZombieMan

{

 DropItem "assaultrifle",255

}

 

or replace one of the other weapons already in the game with it:

 

ACTOR AssaultRifle : Weapon replaces Pistol 123

{

//your code here

}

 

or add it as a resource in a map editor and place it in a custom map.

Did that to make it replace the shotgun. The shotgun is still in the game and it wasn't replaced by anything.

 

EDIT: There has to be something wrong in the code, but I have no idea what.

Share this post


Link to post

Okay I just took a look at your file, and it looks like you're trying to use S_START and S_END makers in a .pk3, you don't need them in .pk3s, remove them and make a new folder inside your .pk3 and name it "sprites" then place your sprite there.

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

×