Page 1 of 1

Proper rounds/second calculation.

Posted: Wed Feb 08, 2023 12:16 am
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.

Re: Proper rounds/second calculation.

Posted: Wed Feb 08, 2023 5:25 pm
by curiosity
It's not "vanilla bugs", it's bugs in the game. The game engine is part of the game.

Re: Proper rounds/second calculation.

Posted: Wed Feb 08, 2023 7:39 pm
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.