A boy and his shotgun

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
orxalot22
Posts: 374
Joined: Fri Nov 08, 2013 2:42 pm

Re: A boy and his shotgun

Post by orxalot22 »

I did try changing the weapon pickups to a bunch of shells last night, dont remember why i removed it but i can try adding it back in.
And i could have some sort of upgrade for the slingshot! i really like the bb gun idea.
User avatar
Combine_Kegan
Posts: 467
Joined: Sun Jan 19, 2014 8:12 am
Location: Hopelessly stuck in the past

Re: A boy and his shotgun

Post by Combine_Kegan »

orxalot22 wrote:I did try changing the weapon pickups to a bunch of shells last night, dont remember why i removed it but i can try adding it back in.
And i could have some sort of upgrade for the slingshot! i really like the bb gun idea.
and there's two ways you could go with the BB gun, you could make it a classic red rider. Or make it a pump-operated BB gun,secondary fire could pump it up, with each pump the BB would fly faster and hit harder.
User avatar
orxalot22
Posts: 374
Joined: Fri Nov 08, 2013 2:42 pm

Re: A boy and his shotgun

Post by orxalot22 »

ooh yeah. how do i do that?
cause ive got no idea how. :P
and sprites for the bb gun would kick ass, if anyone has lever action sprites or whatnot
User avatar
Combine_Kegan
Posts: 467
Joined: Sun Jan 19, 2014 8:12 am
Location: Hopelessly stuck in the past

Re: A boy and his shotgun

Post by Combine_Kegan »

orxalot22 wrote:ooh yeah. how do i do that?
cause ive got no idea how. :P
and sprites for the bb gun would kick ass, if anyone has lever action sprites or whatnot
No sprites come to mind but the pump action BB gun would be fairly simple, each time you'd hit altfire, it'd play out a pump animation, and it'd give you an invisible inventory item like "BBpump" and depending on how many the player has, when you click fire, it jumps to a different firing state that shoots a different projectile.
User avatar
orxalot22
Posts: 374
Joined: Fri Nov 08, 2013 2:42 pm

Re: A boy and his shotgun

Post by orxalot22 »

ah alrights then
it may take me till tomorrow but im gonna do that!
User avatar
orxalot22
Posts: 374
Joined: Fri Nov 08, 2013 2:42 pm

Re: A boy and his shotgun

Post by orxalot22 »

okay it might not happen actually.
i cannot get it to work.
User avatar
Combine_Kegan
Posts: 467
Joined: Sun Jan 19, 2014 8:12 am
Location: Hopelessly stuck in the past

Re: A boy and his shotgun

Post by Combine_Kegan »

orxalot22 wrote:okay it might not happen actually.
i cannot get it to work.
Okay make the BBpump into an ammo item, and have the pump animation give you one BBpump every time you altfire.

Then in the actual firing block of code, just add a TNT1 A 0 a_jumpifinventory ("BBpump", 1, "BBshot1") then do that a few more times depending on how many pumps you want the player to go
User avatar
orxalot22
Posts: 374
Joined: Fri Nov 08, 2013 2:42 pm

Re: A boy and his shotgun

Post by orxalot22 »

so will BBSHOT1 be a seperate state?
User avatar
Combine_Kegan
Posts: 467
Joined: Sun Jan 19, 2014 8:12 am
Location: Hopelessly stuck in the past

Re: A boy and his shotgun

Post by Combine_Kegan »

orxalot22 wrote:so will BBSHOT1 be a seperate state?
Yep, it'd be the same animation wise as your standard fire state, EXCEPT it fires a new projectile, and you'd do this for how many states you want, pretty simple actually.
User avatar
orxalot22
Posts: 374
Joined: Fri Nov 08, 2013 2:42 pm

Re: A boy and his shotgun

Post by orxalot22 »

Im not really sure what im doing wrong but if you could point it out for me that'd be awesome. itll do the click clicks and all that but it wont change the shot

Code: Select all

    Actor BBgun : weapon replaces Rocketlauncher
  {
     Inventory.PickupSound "misc/usgpickup" 
     Weapon.SlotNumber 1
     AttackSound "BBshot" 
     States 
     { 
     Spawn: 
        SHOT A -1 
        Loop
     Ready: 
        BBGN A 1 A_WeaponReady 
        Loop 
     Deselect: 
        BBGN A 1 A_Lower 
        Loop 
     Select: 
        BBGN A 1 A_Raise 
        Loop 
     Fire: 
        TNT1 A 0 A_Jumpifinventory("BBpump",1,"BBshot1")
		 TNT1 A 0 A_Jumpifinventory("BBpump",2,"BBshot2")
		 TNT1 A 0 A_Jumpifinventory("BBpump",3,"BBshot3")
        Goto Ready 
		"BBshot1":
		BBGN B 0 A_Playsound("shotgunfire")
		BBGN B 0 A_Firecustommissile("BBshot1")
		BBGN BCDEA 1 A_Takeinventory("BBpump",3)
		goto ready
				"BBshot2":
		BBGN B 0 A_Playsound("shotgunfire")
		BBGN B 1 A_Firecustommissile("BBshot2")
		BBGN BCDEA 1 A_Takeinventory("BBpump",3)
		goto ready
		"BBshot3":
		BBGN B 0 A_Firecustommissile("BBshot3")
		BBGN B 0 A_Playsound("shotgunfire")
		BBGN BCDEA 1 A_Takeinventory("BBpump",3)
		goto ready
	Altfire:
	TNT1 A 0 A_Playsound ("BBload")
	BBGN AFA 10
	TNT1 A 0 A_Giveinventory("BBpump",1)
	goto ready
     Flash: 
        Stop 
     } 
  }
    actor BBshot1
{
   Radius 6
   Height 10
   Speed 25
   Damage 3
   PROJECTILE
   Scale .5
   RenderStyle Normal
   Alpha 0.85
   Obituary "%o was bb'd!"
   States
   {
   Spawn:
      ROCK AB 1 
      Loop
   Death:
      ROCK A 1
      Stop
   }
}
    actor BBshot2
{
   Radius 6
   Height 10
   Speed 30
   Damage 6
   PROJECTILE
   Scale .5
   RenderStyle Normal
   Alpha 0.85
   Obituary "%o was bb'd!"
   States
   {
   Spawn:
      ROCK AB 1 
      Loop
   Death:
      ROCK A 1
      Stop
   }
}
    actor BBshot3
{
   Radius 6
   Height 10
   Speed 40
   Damage 20
   PROJECTILE
   Scale .5
   RenderStyle Normal
   Alpha 0.85
   Obituary "%o was bb'd!"
   States
   {
   Spawn:
      RROK A 1 
      Loop
   Death:
      RROK A 1
      Stop
   }
}
ACTOR BBpump : Ammo
{
	Inventory.Amount 1
	Inventory.MaxAmount 3
	Ammo.BackpackAmount 0
	Ammo.BackpackMaxAmount 3
	Scale 1
	Inventory.Icon "SGLSA0"
	Inventory.PickupMessage "Pump it up"
	States
	{
	Spawn:
		SGLS A -1
		Stop
	}
}
User avatar
Combine_Kegan
Posts: 467
Joined: Sun Jan 19, 2014 8:12 am
Location: Hopelessly stuck in the past

Re: A boy and his shotgun

Post by Combine_Kegan »

Hm. Try renaming the fire states something different, like BBFire1, 2, etc

Oh! And remove the quotes from the custom states, just have them be BBFire1: BBFire2: etc
User avatar
orxalot22
Posts: 374
Joined: Fri Nov 08, 2013 2:42 pm

Re: A boy and his shotgun

Post by orxalot22 »

i get it now
the states and the shots had the exact same names
derrrppp

but
its still not workin..
User avatar
Combine_Kegan
Posts: 467
Joined: Sun Jan 19, 2014 8:12 am
Location: Hopelessly stuck in the past

Re: A boy and his shotgun

Post by Combine_Kegan »

orxalot22 wrote:i get it now
the states and the shots had the exact same names
derrrppp
I think the quotes were causing interference too. Make sure to remove those as well, looking forward to trying this out, the BB Gun sounds like it's going to be a fun addition to the DoomKid's arsenal.

Or DoomLad if you prefer, also the BB Gun will be infinite ammo, requiring only pumps right?
User avatar
orxalot22
Posts: 374
Joined: Fri Nov 08, 2013 2:42 pm

Re: A boy and his shotgun

Post by orxalot22 »

yeah only pumps are required.
User avatar
Combine_Kegan
Posts: 467
Joined: Sun Jan 19, 2014 8:12 am
Location: Hopelessly stuck in the past

Re: A boy and his shotgun

Post by Combine_Kegan »

Are you using the vanilla shotgun sprite for this? Because funnily enough I think that sprite IS an edit of a BB Gun.

Return to “Gameplay Mods”