Melee weapon recovery time cap

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

Melee weapon recovery time cap

Unread postby rotalihinna » 07 Sep 2022, 15:04

Hey all, is there a way to lower the 30ms cap on melee recovery time?

Tomsod
Assassin
Assassin
Posts: 295
Joined: 31 Jul 2020

Re: Melee weapon recovery time cap

Unread postby Tomsod » 08 Sep 2022, 03:31

I think so, but which game? If MM7, I can give you the addresses for the 30 constant.

User avatar
raekuul
War Dancer
War Dancer
Posts: 398
Joined: 05 Jul 2019

Re: Melee weapon recovery time cap

Unread postby raekuul » 08 Sep 2022, 12:33

Just to be clear - 30 milliseconds is 33 attacks per second. Why, precisely, are we trying to get that even lower?

cthscr
Swordsman
Swordsman
Posts: 587
Joined: 12 Jan 2020

Re: Melee weapon recovery time cap

Unread postby cthscr » 08 Sep 2022, 13:31

rotalihinna wrote: 07 Sep 2022, 15:04 Hey all, is there a way to lower the 30ms cap on melee recovery time?
Newest MMExtension (from repo), Game.MinMeleeRecoveryTime
raekuul wrote: Just to be clear - 30 milliseconds is 33 attacks per second. Why, precisely, are we trying to get that even lower?
Because it is not 30 ms actually? If you want some numbers, (for MM8 turn-based mode) it is 1.0 * recovery * 2.13333 time units (256 units == 60 in-game seconds). I.e. 30 recovery is 15 in-game seconds if I didn't fail somewhere.

rotalihinna
Leprechaun
Leprechaun
Posts: 36
Joined: 18 Dec 2018

Re: Melee weapon recovery time cap

Unread postby rotalihinna » 08 Sep 2022, 16:39

Thank you! And this was for MM7, will the MMextension variable work?

rotalihinna
Leprechaun
Leprechaun
Posts: 36
Joined: 18 Dec 2018

Re: Melee weapon recovery time cap

Unread postby rotalihinna » 08 Sep 2022, 16:41

And I think 30 recovery is not 15 in game seconds - that would be too slow

Tomsod
Assassin
Assassin
Posts: 295
Joined: 31 Jul 2020

Re: Melee weapon recovery time cap

Unread postby Tomsod » 08 Sep 2022, 16:57

Turn-based mode treats time weirdly (and at least in MM7 it seems to be buggy sometimes), it's better to recall that one in-game minute is about two real seconds and 100 recovery is one minute, so 30 would be about 0.6 seconds. And it seems that MMExt is steadily putting me out of job, ha ha. It's not the first time I'm reinventing the wheel with some hooks or constants; I need to check the git out more often.

EDIT: oh wait, ingame seconds. Then 18. Again, it might actually be 15 in TB, there are definitely some conversion errors regarding recovery there.

Eksekk
Assassin
Assassin
Posts: 259
Joined: 19 Jul 2016

Re: Melee weapon recovery time cap

Unread postby Eksekk » 08 Sep 2022, 17:03

rotalihinna wrote: 08 Sep 2022, 16:39 Thank you! And this was for MM7, will the MMextension variable work?
Yes, you just need to install newest MMExtension (follow the instructions at the bottom). Or make use of addresses Tomsod offered to give you, but that's much harder I think.
rotalihinna wrote: 08 Sep 2022, 16:41 And I think 30 recovery is not 15 in game seconds - that would be too slow
in-game seconds. In-game minute lasts at most 3-4 real life seconds.
Unfinished mod by me: MM7 Rev4 mod, MMMerge version.

Tomsod
Assassin
Assassin
Posts: 295
Joined: 31 Jul 2020

Re: Melee weapon recovery time cap

Unread postby Tomsod » 08 Sep 2022, 17:05

I would've probably just provided an MMExt script, so it'd be basically the same. Not much point if there's already an interface, though.

rotalihinna
Leprechaun
Leprechaun
Posts: 36
Joined: 18 Dec 2018

Re: Melee weapon recovery time cap

Unread postby rotalihinna » 09 Sep 2022, 17:35

Thanks to all of you, I was able to get the limit down! However, it looks like there's some sort of hard limit at 4 - even if I set the variable to 1, I can't get the recovery lower than 4 in the game no matter what.


Return to “Might and Magic”

Who is online

Users browsing this forum: No registered users and 53 guests