Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Mewdoom

Zdoom how to change amount of shotgun damage ?

Recommended Posts

Hello Guys,

I would like to change the amount of damager per bullet of pistol, shotgun, etc.

I search in decorate but I just found the actor of the weapons, I didnt found where it is specified the amount of damage per bullet ?

Share this post


Link to post

Stock Doom weapons use specialized functions (A_FirePistol, A_FireShotgun...) with unchangable hardcoded behavior (including amount of damage, angle spread, number of bullets per shot, amount of ammo units consumed per shot...). If you want to customize their behavior, replace those specialized functions with their generic counterparts (in case of hitscan weapons, A_FireBullets) with parameters of your choice.

Share this post


Link to post

^ For example, here's A_Fireshotgun's specifics, which you can find via the article on the shotgun. It uses predetermined A_FireBullets parameters that set the damage to 5, which I think is the standard damage amount for Doom bullets. Make a new shotgun actor to inherit from and replace the default shotgun, and replace the A_FireShotgun entry in the Fire state with a custom A_FireBullets.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×