[RESOURCE] There's Blood On My Gun!

Sprites, textures, sounds, code, and other resources belong here. Share and share-alike!
Forum rules
Before posting your Resource, please make sure you can answer YES to any of the following questions:
  • Is the resource ENTIRELY my own work?
  • If no to the previous one, do I have permission from the original author?
  • If no to the previous one, did I put a reasonable amount of work into the resource myself, such that the changes are noticeably different from the source that I could take credit for them?
If you answered no to all three, maybe you should consider taking your stuff somewhere other than the Resources forum.

Consult the Resource/Request Posting Guidelines for more information.

Please don't put requests here! They have their own forum --> here. Thank you!
Post Reply
Zombieguy
Posts: 1880
Joined: Mon May 24, 2010 4:38 pm
Location: C:\Earth>

[RESOURCE] There's Blood On My Gun!

Post by Zombieguy »

This is an example WAD file I made to show a cool little use of A_JumpIfCloser.

Here's what it does:
.When the player fires his/her shotgun, if you're close enough to an enemy, blood will splatter on your weapon!

Why?
.I've never seen anyone do this for a firearm, so I used my noggin to code this for others to use.

Please note:
This is a WAD that was created as a reference. This WAD is not a mod itself, just an example.

Screenshots!
Spoiler:
Download here!

Edit: New example for melee weapons!
.This version is for melee weapons when the player hits an enemy!
Please note:
This version uses an alt-fire function as a melee attack. So as a result, I had to use A_FireCustomMissile to spawn the melee-puff in order for it to work. A_CustomPunch wouldn't work for some reason. And remember, this is just an example. Hopefully I can improve this when I get time.

Also, - the Imp is the only monster that can call the A_GiveToTarget code pointer in the custom pain state I made. In other words, it won't work unless you hit the imp.

Download here!
Last edited by Zombieguy on Mon Nov 12, 2012 2:31 pm, edited 2 times in total.
User avatar
Sgt. Shivers
Posts: 1743
Joined: Fri Jun 22, 2012 5:39 am

Re: [RESOURCE] There's Blood On My Gun!

Post by Sgt. Shivers »

This is awesome, it reminds me of serious sam 3.
It'd be awesome to see something like this in BrutalDoom!
Zombieguy
Posts: 1880
Joined: Mon May 24, 2010 4:38 pm
Location: C:\Earth>

Re: [RESOURCE] There's Blood On My Gun!

Post by Zombieguy »

Yeah, Brutal Doom was my inspiration. I suggested it to Sarge, but he said it wouldn't be easy because of the long weapon animations. :(
User avatar
ledillman
Posts: 114
Joined: Sat Dec 11, 2010 12:12 pm
Location: Tei-Ten..- I mean, Deimos Base.

Re: [RESOURCE] There's Blood On My Gun!

Post by ledillman »

I have to say, that's Awesome! you did goood dude :wink: :wink:
Zombieguy
Posts: 1880
Joined: Mon May 24, 2010 4:38 pm
Location: C:\Earth>

Re: [RESOURCE] There's Blood On My Gun!

Post by Zombieguy »

Thanks man! :D
User avatar
Batandy
Posts: 1279
Joined: Tue Jul 19, 2011 2:56 am

Re: [RESOURCE] There's Blood On My Gun!

Post by Batandy »

This is awesome, i'd totally use it for Retro Encounter if it wasn't that i'd have to add +40 more sprites for each weapon.Keep the good work up!
Zombieguy
Posts: 1880
Joined: Mon May 24, 2010 4:38 pm
Location: C:\Earth>

Re: [RESOURCE] There's Blood On My Gun!

Post by Zombieguy »

Thanks, Batandy! It means a lot coming from you. I can't wait to play The Retro Encounter, by the way! :P
User avatar
Batandy
Posts: 1279
Joined: Tue Jul 19, 2011 2:56 am

Re: [RESOURCE] There's Blood On My Gun!

Post by Batandy »

Zombieguy wrote:Thanks, Batandy! It means a lot coming from you. I can't wait to play The Retro Encounter, by the way! :P
You know what, i may implement it for the Axe if you manage to filter the "enemies" from the "props", because it can get bloody even if you shoot a Barrel :P
Zombieguy
Posts: 1880
Joined: Mon May 24, 2010 4:38 pm
Location: C:\Earth>

Re: [RESOURCE] There's Blood On My Gun!

Post by Zombieguy »

You're right. Haven't thought of that. I'll make an update a bit later today. Thanks for telling me, Batandy!
Zombieguy
Posts: 1880
Joined: Mon May 24, 2010 4:38 pm
Location: C:\Earth>

Re: [RESOURCE] There's Blood On My Gun!

Post by Zombieguy »

I got it working for melee weapons, Batandy. It's not the way I want it right now, but it works. I'll improve it once I get time.

EDIT: I forgot to mention something; the Imp is the only monster that can call the A_GiveToTarget code pointer in the custom pain state I made.
User avatar
Batandy
Posts: 1279
Joined: Tue Jul 19, 2011 2:56 am

Re: [RESOURCE] There's Blood On My Gun!

Post by Batandy »

Zombieguy wrote:I got it working for melee weapons, Batandy. It's not the way I want it right now, but it works. I'll improve it once I get time.

EDIT: I forgot to mention something; the Imp is the only monster that can call the A_GiveToTarget code pointer in the custom pain state I made.
Image
It works correctly now, thanks
Zombieguy
Posts: 1880
Joined: Mon May 24, 2010 4:38 pm
Location: C:\Earth>

Re: [RESOURCE] There's Blood On My Gun!

Post by Zombieguy »

No problem. ;)
Post Reply

Return to “Resources”