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

Changing Kick Damage and Range?

Recommended Posts

Anyone know how I can do this? I'd like to add the knockback of a kick to a gum but have it go further along with the bullet.

Share this post


Link to post

Here is a way to do it:

On the same tic as the bullets, shoot an invisible, 0-damage rail attack with RGF_SILENT|RGF_NOPIERCING|RGF_NORANDOMPUFFZ, and make it use a custom puff, which should inherit from BulletPuff and which will do the actual work.

Give the puff +PUFFGETSOWNER and +PUFFONACTORS, and use TNT1 as the sprite so it will be invisible.

In the Spawn state of the puff, use A_RadiusThrust with a small radius, and if the monster hits a wall and dies and you don't get credit for the kill, try the RTF_NOTMISSILE flag. 

Adjust the thrust force until it seems right when you test it.

To the puff, add a Crash state that does nothing, so nothing will happen if it hits a wall.

 

I would have suggested using that custom puff on the bullet attack itself, but BD, which you are editing, already has a custom puff there, which does fancy effects when it hits a wall.  Hmm, maybe you could do that anyway (put the custom puff in the bullet attack in place of BD's puff, and drop the rail attack), and have the Crash state do those fancy effects, copied-and-pasted from the puff that BD uses.

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
×