#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667_repo/user/rep_approved.png) DP-28

##

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

   5 years 10 months ago [\#8621](#8621) by Gothic  Replied by *Gothic* on topic *[DP-28](https://www.realm667.com/forum/closed-submissions/717-dp-28?start=10#8621 "A Soviet DP-28 Machinegun. My second weapon creation, also created for my wad. I decided to begin working on more weapons.

INFO:
Name: DP28
Class: 4
Type: Hitscan
Palette: Custom
Summon: DP28
Ammo Type: Rifle Ammo
Altfire: No
Powered Mode: No
Added States: No

CREDITS:
Submitted: Br0leg
Decorate: M60 Edit
Sounds: VALVE
Sprites: Doom and Monolith Productions. (Hands) and Lobotomy (Firing flash)
Sprite Edit: Sprite made by using DP28 model in Garry's Mod. The hands are hands of Caleb from Blood. (or DOOM guy)
Idea Base: Real life World War II inspiration
ACS: No")*

 Question to the people here, do you think is this worth adding? I kind of want to speed up things here, starting with this 4y old thread. I think it may have some uses, but I want to hear other opinions first.
Second, since OP hasn't logged in in more than a year, and if this gets approved, I made some modifications:
Code:

Actor DP28 : Weapon { Decal BulletChip Weapon.SelectionOrder 500 Weapon.SlotNumber 4 Inventory.PickupMessage "You found a DP28!" Obituary "%o was shot down by %k's DP28." Weapon.AmmoType "MGAmmo" Weapon.AmmoGive 47 Weapon.AmmoUse 1 Weapon.Kickback 150 AttackSound "DP28/Fire" Scale 0.5 States { Spawn: DPPU A -1 Stop Select: DP29 A 1 A_Raise(16) Loop Deselect: DP29 A 1 A_Lower(16) Loop Ready: DP29 A 1 A_WeaponReady Loop Fire: TNT1 A 0 A_GunFlash TNT1 A 0 A_Jump(256,"fire1","fire2","fire3","fire4","fire5") Fire1: RICO AB 1 Bright TNT1 A 4 Goto Ready Fire2: RICO CD 1 Bright TNT1 A 4 Goto Ready Fire3: RICO EF 1 Bright TNT1 A 4 Goto Ready Fire4: RICO GH 1 Bright TNT1 A 4 Goto Ready Fire5: RICO IJ 1 Bright TNT1 A 4 Goto Ready Flash: DP29 A 2 Bright A_FireBullets(1,1,-1,10,"BulletPuff",1) DP29 BCBB 1 Stop } }

The code is functionally the same, with some minor changes:
- Instead of calling A\_Lower/Raise multiple times, I used their parameters.
- A\_GunFlash is called at the very start of the firing state, instead of calling it on each state it jumps to when firing.
- A\_Jump is called in 1 line only, and has a 100% chance of jumping, instead of looping until one of the many Jump functions defined decided to jump.
- The number of sprite frames is reduced because there were some repeated sprites. So instead of frames ABCDEF, they're just ABC.

Some not so minor changes include my previous complains regarding the sprite offsets and sound volume. The sprites are now more close to the center and the volume was reduced to 0.5 in the SNDINFO.

####  Attachment not found

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

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   5 years 10 months ago [\#8623](#8623) by Blue Shadow  Replied by *Blue Shadow* on topic *[DP-28](https://www.realm667.com/forum/closed-submissions/717-dp-28?start=10#8623 "A Soviet DP-28 Machinegun. My second weapon creation, also created for my wad. I decided to begin working on more weapons.

INFO:
Name: DP28
Class: 4
Type: Hitscan
Palette: Custom
Summon: DP28
Ammo Type: Rifle Ammo
Altfire: No
Powered Mode: No
Added States: No

CREDITS:
Submitted: Br0leg
Decorate: M60 Edit
Sounds: VALVE
Sprites: Doom and Monolith Productions. (Hands) and Lobotomy (Firing flash)
Sprite Edit: Sprite made by using DP28 model in Garry's Mod. The hands are hands of Caleb from Blood. (or DOOM guy)
Idea Base: Real life World War II inspiration
ACS: No")*

 I never really cared about this or [ the other](https://www.realm667.com/index.php/en/kunena/armory/716-mosin-nagant), to be honest. So it's up to you and Johnnie. If you guys think it's worth adding, then do it.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83MTctZHAtMjg/c3RhcnQ9MTA=&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
-
-
-

   5 years 10 months ago [\#8624](#8624) by Gothic  Replied by *Gothic* on topic *[DP-28](https://www.realm667.com/forum/closed-submissions/717-dp-28?start=10#8624 "A Soviet DP-28 Machinegun. My second weapon creation, also created for my wad. I decided to begin working on more weapons.

INFO:
Name: DP28
Class: 4
Type: Hitscan
Palette: Custom
Summon: DP28
Ammo Type: Rifle Ammo
Altfire: No
Powered Mode: No
Added States: No

CREDITS:
Submitted: Br0leg
Decorate: M60 Edit
Sounds: VALVE
Sprites: Doom and Monolith Productions. (Hands) and Lobotomy (Firing flash)
Sprite Edit: Sprite made by using DP28 model in Garry's Mod. The hands are hands of Caleb from Blood. (or DOOM guy)
Idea Base: Real life World War II inspiration
ACS: No")*

 [ Added.](https://www.realm667.com/index.php/en/armory-mainmenu-157-97317/other-sources-styles-mainmenu-160-29963/2304-dp-28) Some changes were made: Besides what I did in my previous post, I removed all the blank space from the sprites, and updated both INFO and CREDITS lumps with proper credits (still don't know where did the muzzleflash came from though). Also I reverted back the pickup sprite to the original. It looked great on the Alternate HUD.

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

- **Br0leg**
- ![Br0leg's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg) Topic Author
- Wraith
- ![Wraith](https://www.realm667.com/media/kunena/ranks/rank_41_wraith.png)

 Less More- Posts: 15
-
-

   5 years 10 months ago [\#8625](#8625) by Br0leg  Replied by *Br0leg* on topic *[DP-28](https://www.realm667.com/forum/closed-submissions/717-dp-28?start=10#8625 "A Soviet DP-28 Machinegun. My second weapon creation, also created for my wad. I decided to begin working on more weapons.

INFO:
Name: DP28
Class: 4
Type: Hitscan
Palette: Custom
Summon: DP28
Ammo Type: Rifle Ammo
Altfire: No
Powered Mode: No
Added States: No

CREDITS:
Submitted: Br0leg
Decorate: M60 Edit
Sounds: VALVE
Sprites: Doom and Monolith Productions. (Hands) and Lobotomy (Firing flash)
Sprite Edit: Sprite made by using DP28 model in Garry's Mod. The hands are hands of Caleb from Blood. (or DOOM guy)
Idea Base: Real life World War II inspiration
ACS: No")*

 Oh lmao, Thank you guys for adding it in, I completely forgot about this xD

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy83MTctZHAtMjg/c3RhcnQ9MTA=&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)
