Difference between revisions of "Archive: Bot shooting mechanics"
From Gladiabots Wiki
Line 1: | Line 1: | ||
=== Shooting process === | === Shooting process === | ||
− | Although the | + | Although the bot classes have very different shooting behavior, they all share the same shooting process: |
# aiming for the time of the ''aiming duration'' | # aiming for the time of the ''aiming duration'' | ||
# attacking for the time of the ''attack duration'' | # attacking for the time of the ''attack duration'' | ||
− | + | #* shooting one or more rounds each with one or more bullets (specified by the ''bullet configuration'') towards the target | |
+ | #* each bullet will either hit with the ''attack power'' or miss completely according to the ''precision'' | ||
+ | #** the used ''precision value'' is determined at the moment the bullet is fired | ||
+ | #*** if the target is within short range, the short range precision is used | ||
+ | #*** if the target is between short and mid range, the mid range precision is used | ||
+ | #*** if the target is between mid and long range, the long range precision is used | ||
+ | #*** if the target is out of range, the bullet will miss | ||
+ | #** for each bullet the ''precision counter'' is incremented by the corresponding ''precision value'' | ||
+ | #*** if the ''precision counter'' is greater or equal to 100 the bullet will hit and the ''precision counter'' will be decremented by 100 | ||
+ | #*** otherwise the bullet will miss | ||
# continue with 1. | # continue with 1. | ||
− | === | + | === Bot class shooting stats === |
* Assault | * Assault | ||
** Aiming duration: 1 second | ** Aiming duration: 1 second | ||
** Attack power: 300 damage per bullet | ** Attack power: 300 damage per bullet | ||
− | ** Bullet | + | ** Bullet configuration: 3x2 (3 rounds each with 2 bullets) |
** Attack duration 0.3 seconds (0.1 seconds per round) | ** Attack duration 0.3 seconds (0.1 seconds per round) | ||
** Precision: Short range 90%, Mid range: 50%, Long range: 10% | ** Precision: Short range 90%, Mid range: 50%, Long range: 10% | ||
Line 20: | Line 29: | ||
** Aiming duration: 1 second | ** Aiming duration: 1 second | ||
** Attack power: 600 damage per bullet | ** Attack power: 600 damage per bullet | ||
− | ** Bullet | + | ** Bullet configuration: 1x5 (1 round with 5 bullets) |
** Attack duration 0.1 seconds (0.1 seconds per round) | ** Attack duration 0.1 seconds (0.1 seconds per round) | ||
** Precision: Short range 75%, Mid range: 25%, Long range: 5% | ** Precision: Short range 75%, Mid range: 25%, Long range: 5% | ||
Line 26: | Line 35: | ||
** Aiming duration: 2.5 seconds | ** Aiming duration: 2.5 seconds | ||
** Attack power: 250 damage per bullet | ** Attack power: 250 damage per bullet | ||
− | ** Bullet | + | ** Bullet configuration: 100x1 (100 rounds with 1 bullet) |
** Attack duration 7.5 seconds (0.075 seconds per round) | ** Attack duration 7.5 seconds (0.075 seconds per round) | ||
** Precision: Short range 80%, Mid range: 50%, Long range: 10% | ** Precision: Short range 80%, Mid range: 50%, Long range: 10% | ||
Line 32: | Line 41: | ||
** Aiming duration: 3 seconds | ** Aiming duration: 3 seconds | ||
** Attack power: 2000 damage per bullet | ** Attack power: 2000 damage per bullet | ||
− | ** Bullet | + | ** Bullet configuration: 1x1 (1 round with 1 bullet) |
** Attack duration 0.1 seconds (0.1 seconds per round) | ** Attack duration 0.1 seconds (0.1 seconds per round) | ||
** Precision: Short range 100%, Mid range: 100%, Long range: 100% | ** Precision: Short range 100%, Mid range: 100%, Long range: 100% | ||
Line 40: | Line 49: | ||
Informations about precision<br> | Informations about precision<br> | ||
shooting out of range<br> | shooting out of range<br> | ||
+ | shooting from mid of short and mid<br> | ||
sniper misses<br> | sniper misses<br> | ||
Attack damage algorithm<br> | Attack damage algorithm<br> |
Revision as of 08:04, 30 August 2017
Shooting process
Although the bot classes have very different shooting behavior, they all share the same shooting process:
- aiming for the time of the aiming duration
- attacking for the time of the attack duration
- shooting one or more rounds each with one or more bullets (specified by the bullet configuration) towards the target
- each bullet will either hit with the attack power or miss completely according to the precision
- the used precision value is determined at the moment the bullet is fired
- if the target is within short range, the short range precision is used
- if the target is between short and mid range, the mid range precision is used
- if the target is between mid and long range, the long range precision is used
- if the target is out of range, the bullet will miss
- for each bullet the precision counter is incremented by the corresponding precision value
- if the precision counter is greater or equal to 100 the bullet will hit and the precision counter will be decremented by 100
- otherwise the bullet will miss
- the used precision value is determined at the moment the bullet is fired
- continue with 1.
Bot class shooting stats
- Assault
- Aiming duration: 1 second
- Attack power: 300 damage per bullet
- Bullet configuration: 3x2 (3 rounds each with 2 bullets)
- Attack duration 0.3 seconds (0.1 seconds per round)
- Precision: Short range 90%, Mid range: 50%, Long range: 10%
- Shotgun
- Aiming duration: 1 second
- Attack power: 600 damage per bullet
- Bullet configuration: 1x5 (1 round with 5 bullets)
- Attack duration 0.1 seconds (0.1 seconds per round)
- Precision: Short range 75%, Mid range: 25%, Long range: 5%
- Machine gun
- Aiming duration: 2.5 seconds
- Attack power: 250 damage per bullet
- Bullet configuration: 100x1 (100 rounds with 1 bullet)
- Attack duration 7.5 seconds (0.075 seconds per round)
- Precision: Short range 80%, Mid range: 50%, Long range: 10%
- Sniper
- Aiming duration: 3 seconds
- Attack power: 2000 damage per bullet
- Bullet configuration: 1x1 (1 round with 1 bullet)
- Attack duration 0.1 seconds (0.1 seconds per round)
- Precision: Short range 100%, Mid range: 100%, Long range: 100%
Rough thoughts
Informations about precision
shooting out of range
shooting from mid of short and mid
sniper misses
Attack damage algorithm
https://forum.gladiabots.com/viewtopic.php?f=8&t=17&p=67#p61
https://forum.gladiabots.com/viewtopic.php?f=6&t=225&view=unread#unread
https://forum.gladiabots.com/viewtopic.php?f=8&t=545