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

Custom wepon help

Recommended Posts

I am adding custom weapons, I added a minigun, a zombieman rifle, and a pumpaction shotgun. The sawnshotgun works great, when I hit 3 it goes to it, but for the rifle and mg how do I make it go to the mg when I hit 4 and rifle when hitting 2? The pumpaction works but it is not showing up on decorate


This is the decorate for the minigun
What do I edit?


ACTOR STMinigun : Weapon 20039
{
Weapon.AmmoType "Clip"
Weapon.AmmoGive 20
Weapon.AmmoUse 1
Inventory.PickupSound "misc/w_pkup"
Inventory.PickupMessage "Picked up a minigun!"
Obituary "%o was shredded by %k's minigun."
AttackSound "weapons/minigunfire"
States
{
Spawn:
MNGN A -1
Loop
Ready:
MNGG A 1 A_WeaponReady
Loop
Deselect:
MNGG A 1 A_Lower
Loop
Select:
MNGG A 1 A_Raise
Loop
Fire:
MNGG A 0 A_GunFlash
MNGG A 2 A_FireBullets(5, 1, 1, 5)
MNGG B 2 A_FireBullets(5, 1, 1, 5)
MNGG B 0 A_ReFire
MNGG B 2
MNGG A 5
MNGG B 8
MNGG A 11
MNGG B 14
MNGG A 17
goto Ready
Flash:
MNGF A 3 BRIGHT A_Light1
MNGF B 3 BRIGHT A_Light0
Stop
}

Share this post


Link to post
EarthQuake said:

You're missing an ending bracket. The error description pretty much made that clear.

Edit: Also, what the hell.



I forgot to paste that one.

Ok, here is what I was trying to say:
Ok, you know how you select weaposn with numbers, like "1" "2" "3" etc. Well, wheb I put the MG in the level, I can pick it up, once, and if I change the weapon I can't go back to it, how do I make it where I can switch between the chaingun and MG using "4" like how the shotgun changes between doublebarrel and pump with "3"?

Share this post


Link to post

try this

Weapon.SlotNumber (whatever)

Whatever being the slot number (2, 4, etc.)

I like to put this line after the Weapon.ammouse line.

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
×