Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Astro Space

Can't add custom weapon

Question

So Im new to doom builder but I've looked at several tutorials on how to do this but everything I'm supposed to do doesn't work that includes adding an Id after the actor name I don't know what to do.

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0
1 minute ago, Astro Space said:

Yes

Do you mind pasting the weapon script so I can see what might be the problem?

Share this post


Link to post
  • 0
1 minute ago, Rhebiz said:

Do you mind pasting the weapon script so I can see what might be the problem?

Sure 

 

 

ACTOR Thompson 15000 : DoomWeapon 
{
    //Weapon.SlotNumber ?
    Weapon.SelectionOrder 700
    Weapon.AmmoUse 1
    Weapon.AmmoGive 30
    Weapon.AmmoType "Clip"
    Inventory.PickupMessage "You got the Thompson SMG!"
    Obituary "%o was stormed by %k Thompson SMG."
    Tag "Thompson SMG"
    Decal BulletChip
    Scale 0.75
    States
    {
    Ready:
        T28G A 1 A_WeaponReady
        Loop
    Deselect:
        T28G A 1 A_Lower
        Wait 
    Select:
        T28G A 1 A_Raise
        Wait
    Fire:
        T28G A 0 A_GunFlash
        TNT1 A 0 A_PlaySound ("weapons/tommygun")
        T28F AB 1 bright 
        TNT1 A 0 A_FireBullets (5,5,1,7,"BulletPuff")
        T28G A 2 A_ReFire
        Goto Ready
    Flash:
        TNT1 A 2 Bright A_Light1
        Goto LightDone
        TNT1 A 2 Bright A_Light2
        Goto LightDone
    Spawn:
        T28X A -1
        Stop
    }
}

Share this post


Link to post
  • 0
Posted (edited)
47 minutes ago, Astro Space said:

[The Script]

Heres a fixed version:

 

ACTOR Thompson : Weapon 15000
{
    Weapon.SlotNumber (Whatever it is. Automatic bullet based weaponry is usually 4)
    Weapon.SelectionOrder 700
    Weapon.AmmoUse 1
    Weapon.AmmoGive 30
    Weapon.AmmoType "Clip"
    Inventory.PickupMessage "You got the Thompson SMG!"
    Obituary "%o was stormed by %k Thompson SMG."
    Tag "Thompson SMG"
    Decal BulletChip
    Scale 0.75
    States
    {
    Ready:
        T28G A 1 A_WeaponReady
        Loop
    Deselect:
        T28G A 1 A_Lower
        Wait 
    Select:
        T28G A 1 A_Raise
        Wait
    Fire:
        T28G A 0 A_GunFlash
        TNT1 A 0 A_PlaySound ("weapons/tommygun")
        T28F AB 1 bright 
        TNT1 A 0 A_FireBullets (5,5,1,7,"BulletPuff")
        T28G A 2 A_ReFire
        Goto Ready
    Flash:
        TNT1 A 2 Bright A_Light1
        Goto LightDone
        TNT1 A 2 Bright A_Light2
        Goto LightDone
    Spawn:
        T28X A -1
        Stop
    }
}

 

That should be it!

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
×