Lowering the amount of time to switch to auto-fire

The role-playing games (I-X) that started it all and the various spin-offs (including Dark Messiah).
rotalihinna
Leprechaun
Leprechaun
Posts: 36
Joined: 18 Dec 2018

Lowering the amount of time to switch to auto-fire

Unread postby rotalihinna » 12 Dec 2022, 20:25

In MM6-7-8, when you press A the character shoots an arrow immediately. If you keep it pressed, it'll wait for something like 1 second, and switch to some auto-fire mode that will keep firing as long as there's somebody available to fire (and if there isn't, will wait until there is).

I've always found that 1-second interval a bit problematic in both real-time and turn-based modes. My questions:

1. Is there a way to lower this 1-second interval between the first shot and when it starts auto-firing?
2. Is there a way to maybe make auto-fire a completely different action (that you can bind to a different key)?

Thanks!

Tomsod
War Dancer
War Dancer
Posts: 354
Joined: 31 Jul 2020

Re: Lowering the amount of time to switch to auto-fire

Unread postby Tomsod » 12 Dec 2022, 20:56

I believe that delay is not the game's fault, it's just how held keys are handled by your OS (Windows or what have you). You can probably lower it by changing your keyboard settings.

rotalihinna
Leprechaun
Leprechaun
Posts: 36
Joined: 18 Dec 2018

Re: Lowering the amount of time to switch to auto-fire

Unread postby rotalihinna » 12 Dec 2022, 21:01

Oh ok! I hadn't considered that, thank you. Question then, why aren't the arrow keys having the same interrupt, for example? You start going forward or turning the moment you start to hold them down.

Tomsod
War Dancer
War Dancer
Posts: 354
Joined: 31 Jul 2020

Re: Lowering the amount of time to switch to auto-fire

Unread postby Tomsod » 13 Dec 2022, 01:29

Good question! At least on my machine, arrow keys do have the same delay, which can be observed e.g. through moving the cursor in your favorite text editor by holding down the left/right key, but the game indeed ignores it. Perhaps it checks for press and depress events rather than the repeating presses generated by the OS. This suggests that by giving the attack key the same treatment, we could fix your problem too... but fiddling with keyboard settings is, like, dozens of times easier, if a bit less elegant.

cthscr
Golem
Golem
Posts: 618
Joined: 12 Jan 2020

Re: Lowering the amount of time to switch to auto-fire

Unread postby cthscr » 13 Dec 2022, 13:21

You can either wait for OS KeyPressed (of how it is called in your OS/library) event or check status (up or down) of the key periodically. MM8 uses both (well, one of them depending on key). If I got it right Game.KeyTypes (in upcoming MMExtension) could be what you look for (see also Game.KeyCodes).
[OS/library can generate repeated KeyPressed events for a key that is held down. Application might use or not use them - see for example https://linux.die.net/man/3/glutignorekeyrepeat]

GracieFay
Leprechaun
Leprechaun
Posts: 3
Joined: 14 Jan 2023

Re: Lowering the amount of time to switch to auto-fire

Unread postby GracieFay » 14 Jan 2023, 02:49

Oh ok! Thank you, I hadn't thought of that. So why, for instance, don't the arrow keys have the same interrupt? As soon as you begin to hold them down, you move forward or turn. monkey mart


Return to “Might and Magic”

Who is online

Users browsing this forum: No registered users and 2 guests