Jump to content

Need help with editing the chaingun


Recommended Posts

Hello, could anyone please tell me how I could edit the chaingun to increase it's rate of fire in Slade? Thanks in advanced.

Share this post


Link to post
7 minutes ago, Smolspidey said:

Hello, could anyone please tell me how I could edit the chaingun to increase it's rate of fire in Slade? Thanks in advanced.

 

That entirely depends on what Source Port you are aiming for. If its by Dehacked then I can't help at all. If you are using Decorate or Zscript then I can offer a demo pk3 showing what to do,

Share this post


Link to post
9 minutes ago, kalensar said:

 

That entirely depends on what Source Port you are aiming for. If its by Dehacked then I can't help at all. If you are using Decorate or Zscript then I can offer a demo pk3 showing what to do,

I'm making a wad specifically for GZdoom so Decorate would work.

Edited by Smolspidey

Share this post


Link to post

Heres the Code inside of the this PK3 chaingundemo.pk3.zip

 

ACTOR ChaingunDemo : ChainGun Replaces Chaingun
{ 
   Weapon.SlotNumber 4
   Weapon.SelectionOrder 700
   Weapon.AmmoUse 1
   Weapon.AmmoGive 20
   Weapon.AmmoType "Clip"
   Inventory.PickupMessage "$GOTCHAINGUN" // "You got the chaingun"
   Obituary "$OB_MPCHAINGUN" // "%o was mowed down by %k's chaingun."
   Tag "$TAG_CHAINGUN"
   States
   {
   Ready:
     CHGG A 1 A_WeaponReady
     Loop
   Deselect:
     CHGG A 1 A_Lower
     Loop
   Select:
     CHGG A 1 A_Raise
     Loop
   Fire:
     CHGG AB 4 A_FireCGUN // Changing the Number on this line Changes the Fire Speed. vanilla is 4.
     CHGG B 0 A_ReFire
     Goto Ready
   Flash:                      // Down here you want to change these numbers to match the Fire Line so that the animations stay in sync.
     CHGF A 4 Bright A_Light1
     Goto LightDone
     CHGF B 4 Bright A_Light1
     Goto LightDone
   Spawn:
     MGUN A -1
     Stop
   }
}

 

Share this post


Link to post
7 minutes ago, kalensar said:

Heres the Code inside of the this PK3 chaingundemo.pk3.zip

 


ACTOR ChaingunDemo : ChainGun Replaces Chaingun
{ 
   Weapon.SlotNumber 4
   Weapon.SelectionOrder 700
   Weapon.AmmoUse 1
   Weapon.AmmoGive 20
   Weapon.AmmoType "Clip"
   Inventory.PickupMessage "$GOTCHAINGUN" // "You got the chaingun"
   Obituary "$OB_MPCHAINGUN" // "%o was mowed down by %k's chaingun."
   Tag "$TAG_CHAINGUN"
   States
   {
   Ready:
     CHGG A 1 A_WeaponReady
     Loop
   Deselect:
     CHGG A 1 A_Lower
     Loop
   Select:
     CHGG A 1 A_Raise
     Loop
   Fire:
     CHGG AB 4 A_FireCGUN // Changing the Number on this line Changes the Fire Speed. vanilla is 4.
     CHGG B 0 A_ReFire
     Goto Ready
   Flash:                      // Down here you want to change these numbers to match the Fire Line so that the animations stay in sync.
     CHGF A 4 Bright A_Light1
     Goto LightDone
     CHGF B 4 Bright A_Light1
     Goto LightDone
   Spawn:
     MGUN A -1
     Stop
   }
}

 

I got it to work because of you, thank you so much!

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
Reply to this topic...

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