Proper rounds/second calculation.

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Rafiz
Inserter
Inserter
Posts: 32
Joined: Sun Jan 17, 2021 9:28 am
Contact:

Proper rounds/second calculation.

Post by Rafiz »

I know - vanilla game doesn't use warmup on weapons.

But if you make item attack_parameters use warmup it isn't accounted into shooting speed tooltip.

To quickly explain, this code :

rifle.attack_parameters.warmup=20;
rifle.attack_parameters.cooldown=60;

sniper_rifle.attack_parameters.warmup=80;
sniper_rifle.attack_parameters.cooldown=40;

results in game in :
"Rifle - Shooting speed : 1/s"
"Sniper Rifle - Shooting speed : 1.5/s"
which is straight up wrong and could be considered bug.

Real shooting speed values when you hold space and aim at target are 0.75/s and 0.5/s respectively.

So my suggestion is just - to calculate warmup time into rounds/second tooltip for weapon :D

Aditionally game could show warmup time if it's not 0... But I'm not sure about that one... Maybe warmup being showed would add unnecessary information bloat. As long as shoot/second will be calculated correctly - end user won't be cheated about real performance of gun.


I now think, I have choosen wrong place for this post.. But it felt wrong to post it in vanilla bugs, since it has no attachment to vanilla game whatsovewer.
curiosity
Filter Inserter
Filter Inserter
Posts: 470
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Proper rounds/second calculation.

Post by curiosity »

It's not "vanilla bugs", it's bugs in the game. The game engine is part of the game.
Rafiz
Inserter
Inserter
Posts: 32
Joined: Sun Jan 17, 2021 9:28 am
Contact:

Re: Proper rounds/second calculation.

Post by Rafiz »

Yeah, I think it should be moved, too bad I've not deleted this one when it was yet possible. I guess there's some timeout, because I don't see like I could do it now.

Right now, I duplicated it to game bugs. So I'm fine if any moderator just deletes this post in this sub-forum.
Post Reply

Return to “Modding interface requests”