[Fixed] The damage formula of Strife's punch dagger

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

The damage formula of Strife's punch dagger

Post by Graf Zahl »

This has been discussed some time ago but apparently forgotten.

The damage formula of Strife's punch dagger gives horrendous damage distribution for many stamina values. For example, when stamina is 1 the damage is either 0 or 24 with either 50% probability but no decent distribution in between.

If you change:

Code: Select all

	damage = (pr_jabdagger() & (power + 7)) * (power + 2);
to

Code: Select all

	damage = (pr_jabdagger() % (power + 8)) * (power + 2);
the average damage will stay the same but the distribution will be much better making the weapon significantly more comfortable to use.

I only can view this odd formula as an original bug in Strife so IMO it should be fixed.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Fixed.
Post Reply

Return to “Closed Bugs [GZDoom]”