Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question about rocket launcher #289

Closed
wzbbbb opened this issue Mar 14, 2018 · 7 comments
Closed

A question about rocket launcher #289

wzbbbb opened this issue Mar 14, 2018 · 7 comments

Comments

@wzbbbb
Copy link

wzbbbb commented Mar 14, 2018

Quite often, after the player picks up a rocket launcher, he can not fire right away. Only after like 10 seconds, it can start to shoot. What's the issue? Is "reload" required?
Thanks!

@mwydmuch
Copy link
Member

10 seconds? Are you sure about this? There is weapon swapping animation on pick up, during which player can't shoot, but it takes only a dozen ticks, about half a second.

@wzbbbb
Copy link
Author

wzbbbb commented Mar 14, 2018

Yes, I have seen this many times. I think it is in fact longer than 10 seconds. I have seen it both in the rocket launcher stage 01, and other stages on the unknow maps.
For example, the player was using a pistol or shotgun, he was shooting. Then, he picked up a rocket launcher, he suddenly stopped shooting, but he would still be facing the opponent. Then, after a while, he can shot again if he is not dead.

@mwydmuch
Copy link
Member

mwydmuch commented Mar 14, 2018

My quick test doesn't replicate the issue, so as in case of #288, I'll investigate this more deeply later.
The only reason I can think of is the quite particular situation.
Player ran out of ammo, but it keeps the attack button pressed.
Then it picks up additional ammunition, the attack button needs to be released and press again to start firing again. That how Doom engine works unfortunately.

EDIT: This should also be a case when new weapon is picked up. The button needs to be released first and then pressed again.

@mwydmuch
Copy link
Member

I guess it would be nice if we would change that.

@mwydmuch mwydmuch self-assigned this Mar 14, 2018
@wzbbbb
Copy link
Author

wzbbbb commented Mar 14, 2018

Hmm, make sense. I have never tried that. If I am able to try that I will update the ticket.

@michaelkrax
Copy link

There is a noautofire flag for weapons https://zdoom.org/wiki/Weapon_flags

From a (human) play perspective this is as far as I know mainly to avoid you run backwards over a rocket launcher in a fight while holding down the fire button for a permanent fire weapon (chaingun or plasma rifle) and you kill yourself with splash when auto switch weapons is on and you suddenly switch to rockets.

Both the rocket launcher and the BFG have the flag https://zdoom.org/wiki/Classes:DoomWeapon

@wzbbbb
Copy link
Author

wzbbbb commented Mar 14, 2018

@michaelkrax @mwydmuch That explains it. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants