Jump to content
  • 0

Can't add custom weapon


Astro Space

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
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!

Edited by Rhebiz

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...