Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

A few requests for the generic weapon codepointers

Recommended Posts

Would it be possible to add a few more parameters to the generic weapon functions without breaking the way they work now? There are a few expansions that I'd find useful:

For A_FireCustomBullets and A_CustomPlayerMelee:
- Type of "puff" to make
- Whether or not it can hit things that have the Heretic "ghost" flag.

For A_FirePlayerMissile:
- Horizontal deviance (how much the shot might be inaccurate to the left or right)
- Vertical deviance (how much the shot might be inaccurate up or down)

I'd also like a pointer similar to A_RandomJump, but instead of a random roll, it jumps if there's a shootable object within the player's melee range. That way it would be possible to make weapons that attack differently when used in melee, similar to some Hexen weapons.

Share this post

Link to post

Problem is that a design decision was made to assign 5 args values to frames. Now, I can increase that number without causing issues (and 8 would be a good round number). I just don't want to do it without a really good reason. I'll consider this, but keep in mind that with the advent of EDF weapons, it might be more practical to specify some properties as properties of the weapon rather than as args on the codepointers in its frames. I've already been thinking about tracer puff types and some of the other things you've mentioned :)

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
Sign in to follow this