#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667_repo/user/rep_approved.png) \[SUBMISSION\] Hand Cannon

##

- **TyrannotitanFan**
- ![TyrannotitanFan's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11787.png?1781431990) Topic Author
- Lost Soul
- ![Lost Soul](https://www.realm667.com/media/kunena/ranks/rank_7_skull.png)

 Less More- Posts: 92
-
-
-
-

   4 years 11 months ago - 4 years 10 months ago [\#9366](#9366) by TyrannotitanFan  *[\[SUBMISSION\] Hand Cannon](https://www.realm667.com/forum/closed-submissions/1685-submission-hand-cannon#9366 "Information:

Name: Hand Cannon
Class: 2
Type: Hitscan
Palette: Doom
Summon: HandCannon
Ammo Type: Clip

Credits:
Code: TyrannotitanFan
Sounds: Navaro
Sprites: Neccronixis
Idea Base: Pistol from DOOM (2016)

Sprite:
as attachment

Download Link:
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing
 ")* was created by *TyrannotitanFan*

 **Information:**
**Name:** *Hand Cannon*
**Class:** ***2***
**Type:** *Hitscan*
**Palette:** Doom
**Summon:** *HandCannon*
**Ammo Type:** *Clip*

**Credits:**
**Code:** *TyrannotitanFan*
**Sounds:** *Navaro*
**Sprites:** Neccronixis
**Idea Base:** Pistol from DOOM (2016)

**Sprite:**
*as attachment*

**Download Link:**
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing

- [ 1.png ![1.png](https://www.realm667.com/forum/attachment/1087?download=1) ](https://www.realm667.com/forum/attachment/1087?download=1 "1.png") [ ](https://www.realm667.com/forum/attachment/1087?download=1 "1.png")
- [ PISSA0.png ![PISSA0.png](https://www.realm667.com/forum/attachment/1088?download=1) ](https://www.realm667.com/forum/attachment/1088?download=1 "PISSA0.png") [ ](https://www.realm667.com/forum/attachment/1088?download=1 "PISSA0.png")

 Last edit: 4 years 10 months ago by TyrannotitanFan.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjg1LXN1Ym1pc3Npb24taGFuZC1jYW5ub24/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   4 years 11 months ago [\#9376](#9376) by Gothic  Replied by *Gothic* on topic *[\[SUBMISSION\] Hand Cannon](https://www.realm667.com/forum/closed-submissions/1685-submission-hand-cannon#9376 "Information:

Name: Hand Cannon
Class: 2
Type: Hitscan
Palette: Doom
Summon: HandCannon
Ammo Type: Clip

Credits:
Code: TyrannotitanFan
Sounds: Navaro
Sprites: Neccronixis
Idea Base: Pistol from DOOM (2016)

Sprite:
as attachment

Download Link:
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing
 ")*

 If it is an energy weapon, then it should leave energy puffs, not bullet puffs. And it should use a different type of ammunition, or none if you're aiming for Doom 2016 accuracy.
The firing frames need to be bright, and the animation could be smoother, without making the fire rate faster.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjg1LXN1Ym1pc3Npb24taGFuZC1jYW5ub24/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **TyrannotitanFan**
- ![TyrannotitanFan's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11787.png?1781431990) Topic Author
- Lost Soul
- ![Lost Soul](https://www.realm667.com/media/kunena/ranks/rank_7_skull.png)

 Less More- Posts: 92
-
-
-
-

   4 years 11 months ago [\#9380](#9380) by TyrannotitanFan  Replied by *TyrannotitanFan* on topic *[\[SUBMISSION\] Hand Cannon](https://www.realm667.com/forum/closed-submissions/1685-submission-hand-cannon#9380 "Information:

Name: Hand Cannon
Class: 2
Type: Hitscan
Palette: Doom
Summon: HandCannon
Ammo Type: Clip

Credits:
Code: TyrannotitanFan
Sounds: Navaro
Sprites: Neccronixis
Idea Base: Pistol from DOOM (2016)

Sprite:
as attachment

Download Link:
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing
 ")*

 done

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjg1LXN1Ym1pc3Npb24taGFuZC1jYW5ub24/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   4 years 11 months ago - 4 years 11 months ago [\#9385](#9385) by Gothic  Replied by *Gothic* on topic *[\[SUBMISSION\] Hand Cannon](https://www.realm667.com/forum/closed-submissions/1685-submission-hand-cannon#9385 "Information:

Name: Hand Cannon
Class: 2
Type: Hitscan
Palette: Doom
Summon: HandCannon
Ammo Type: Clip

Credits:
Code: TyrannotitanFan
Sounds: Navaro
Sprites: Neccronixis
Idea Base: Pistol from DOOM (2016)

Sprite:
as attachment

Download Link:
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing
 ")*

 There's a bug with the pickup sprite, it shows up on the HUD, because you didn't close the Flash state properly.
When I said smoother animation, I meant more frames of animation in between. And it still uses the bullet puff even if it leaves a plasma decal.

 Last edit: 4 years 11 months ago by Gothic.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjg1LXN1Ym1pc3Npb24taGFuZC1jYW5ub24/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **TyrannotitanFan**
- ![TyrannotitanFan's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11787.png?1781431990) Topic Author
- Lost Soul
- ![Lost Soul](https://www.realm667.com/media/kunena/ranks/rank_7_skull.png)

 Less More- Posts: 92
-
-
-
-

   4 years 11 months ago - 4 years 11 months ago [\#9386](#9386) by TyrannotitanFan  Replied by *TyrannotitanFan* on topic *[\[SUBMISSION\] Hand Cannon](https://www.realm667.com/forum/closed-submissions/1685-submission-hand-cannon#9386 "Information:

Name: Hand Cannon
Class: 2
Type: Hitscan
Palette: Doom
Summon: HandCannon
Ammo Type: Clip

Credits:
Code: TyrannotitanFan
Sounds: Navaro
Sprites: Neccronixis
Idea Base: Pistol from DOOM (2016)

Sprite:
as attachment

Download Link:
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing
 ")*

 kay
edit: fixed one problem
but i have two other ones:
- sprite problems (clipping while in anim)
- i don't know whith "BulletPuff" like state i must use

here's code:
Actor HandCannon : Weapon
{
 Obituary "%o was splattered by %k HandCannon"
 AttackSound "weapons/HandCannon"
 Inventory.pickupmessage "Picked up the Hand Cannon"
 Weapon.SelectionOrder 400
 Weapon.SlotNumber 2
 Weapon.kickback 100
 +WEAPON.AMMO_OPTIONAL
 Weapon.ammouse 1
 Decal "PlasmaScorch"
 States
 {
 Spawn:
 HACA P -1
 Loop
 Ready:
 HACA A 2 A_WeaponReady
 Loop
 Deselect:
 HACA A 2 A_Lower
 Loop
 Select:
 HACA A 1 A_Raise
 Loop
 Fire:
 HACA B 4 A_FireBullets(3, 3, 1, 8, "PlasmaBall")
 HACA B 4 A_GunFlash
 HACA C 4
 HACA D 4
 HACA C 4
 HACA A 3
 Goto Ready
 Flash:
 HACA B -1 A_Light0
 Goto Ready
 }
}

 Last edit: 4 years 11 months ago by TyrannotitanFan. Reason: question

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjg1LXN1Ym1pc3Npb24taGFuZC1jYW5ub24/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   4 years 10 months ago - 4 years 10 months ago [\#9390](#9390) by Gothic  Replied by *Gothic* on topic *[\[SUBMISSION\] Hand Cannon](https://www.realm667.com/forum/closed-submissions/1685-submission-hand-cannon#9390 "Information:

Name: Hand Cannon
Class: 2
Type: Hitscan
Palette: Doom
Summon: HandCannon
Ammo Type: Clip

Credits:
Code: TyrannotitanFan
Sounds: Navaro
Sprites: Neccronixis
Idea Base: Pistol from DOOM (2016)

Sprite:
as attachment

Download Link:
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing
 ")*

 The sprite bug is because the flash state needs to end in "goto LightDone", and it can't have -1 tics of duration.
The puff type is A_FireBullets needs to be a valid actor, not just any projectile, like this for example
Code:

Actor HandCannonPuff : Bulletpuff { RenderStyle Add Alpha 0.8 Scale 0.3 VSpeed 0 +PUFFONACTORS States { Spawn: Melee: PLSE ABDE 4 Bright Stop } }

The rest of the code needs some cleanup: - The spawn state must end in "stop" if the frame duration is -1
- Ready, Select and Deselect frames should last 1 tic, so they animate faster
- Since this weapon doesn't use ammo, it shouldn't have a "Weapon.ammouse" property

 Last edit: 4 years 10 months ago by Gothic.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjg1LXN1Ym1pc3Npb24taGFuZC1jYW5ub24/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **TyrannotitanFan**
- ![TyrannotitanFan's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11787.png?1781431990) Topic Author
- Lost Soul
- ![Lost Soul](https://www.realm667.com/media/kunena/ranks/rank_7_skull.png)

 Less More- Posts: 92
-
-
-
-

   4 years 10 months ago - 4 years 10 months ago [\#9392](#9392) by TyrannotitanFan  Replied by *TyrannotitanFan* on topic *[\[SUBMISSION\] Hand Cannon](https://www.realm667.com/forum/closed-submissions/1685-submission-hand-cannon#9392 "Information:

Name: Hand Cannon
Class: 2
Type: Hitscan
Palette: Doom
Summon: HandCannon
Ammo Type: Clip

Credits:
Code: TyrannotitanFan
Sounds: Navaro
Sprites: Neccronixis
Idea Base: Pistol from DOOM (2016)

Sprite:
as attachment

Download Link:
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing
 ")*

 ok
thanks
edit: i guess i messed something in code

- [ bv.png ![bv.png](https://www.realm667.com/forum/attachment/1101?download=1) ](https://www.realm667.com/forum/attachment/1101?download=1 "bv.png") [ ](https://www.realm667.com/forum/attachment/1101?download=1 "bv.png")

 Last edit: 4 years 10 months ago by TyrannotitanFan. Reason: found an error

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjg1LXN1Ym1pc3Npb24taGFuZC1jYW5ub24/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **inkoalawetrust**
- ![inkoalawetrust's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11669.jpg?1718890853)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 254
-
-

   4 years 10 months ago [\#9393](#9393) by inkoalawetrust  Replied by *inkoalawetrust* on topic *[\[SUBMISSION\] Hand Cannon](https://www.realm667.com/forum/closed-submissions/1685-submission-hand-cannon#9393 "Information:

Name: Hand Cannon
Class: 2
Type: Hitscan
Palette: Doom
Summon: HandCannon
Ammo Type: Clip

Credits:
Code: TyrannotitanFan
Sounds: Navaro
Sprites: Neccronixis
Idea Base: Pistol from DOOM (2016)

Sprite:
as attachment

Download Link:
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing
 ")*

 Well, can you show us what you typed out the decal property as ? Like did you try passing a number to it instead of a text string ?

And also, GZDoom is on version 4.6.1, so use that instead.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjg1LXN1Ym1pc3Npb24taGFuZC1jYW5ub24/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   4 years 10 months ago [\#9394](#9394) by Gothic  Replied by *Gothic* on topic *[\[SUBMISSION\] Hand Cannon](https://www.realm667.com/forum/closed-submissions/1685-submission-hand-cannon#9394 "Information:

Name: Hand Cannon
Class: 2
Type: Hitscan
Palette: Doom
Summon: HandCannon
Ammo Type: Clip

Credits:
Code: TyrannotitanFan
Sounds: Navaro
Sprites: Neccronixis
Idea Base: Pistol from DOOM (2016)

Sprite:
as attachment

Download Link:
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing
 ")*

 Check the [ ZDoom wiki](https://zdoom.org/wiki/Main_Page) to clarify more doubts in the future

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjg1LXN1Ym1pc3Npb24taGFuZC1jYW5ub24/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **TyrannotitanFan**
- ![TyrannotitanFan's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11787.png?1781431990) Topic Author
- Lost Soul
- ![Lost Soul](https://www.realm667.com/media/kunena/ranks/rank_7_skull.png)

 Less More- Posts: 92
-
-
-
-

   4 years 10 months ago [\#9395](#9395) by TyrannotitanFan  Replied by *TyrannotitanFan* on topic *[\[SUBMISSION\] Hand Cannon](https://www.realm667.com/forum/closed-submissions/1685-submission-hand-cannon#9395 "Information:

Name: Hand Cannon
Class: 2
Type: Hitscan
Palette: Doom
Summon: HandCannon
Ammo Type: Clip

Credits:
Code: TyrannotitanFan
Sounds: Navaro
Sprites: Neccronixis
Idea Base: Pistol from DOOM (2016)

Sprite:
as attachment

Download Link:
https://drive.google.com/file/d/1cbNsSf-kqx4bxYIxoeeYL-Y8I4sm0VSZ/view?usp=sharing
 ")*

 here you go
(the 11-th line)
also thanks anyway (i was looking in ZDoom Wiki for some Decorate stuff)

- [ hf.png ![hf.png](https://www.realm667.com/forum/attachment/1102?download=1) ](https://www.realm667.com/forum/attachment/1102?download=1 "hf.png") [ ](https://www.realm667.com/forum/attachment/1102?download=1 "hf.png")

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8xNjg1LXN1Ym1pc3Npb24taGFuZC1jYW5ub24/c3RhcnQ9MA==&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
