r/boid•
Tom_Merchant

Boid unit stats and interesting facts

Oddly all the units in the code are known as "fireflies" with all the unit classes extending from Firefly(firefly being the base). Maybe it wasn't going to be all alien in the first place, or maybe firefly is just a nice name because they glow, who knows, I guess the base units kind of look like fireflys.

Something I found interesting while looking at the source is that each unit in has it's own heal value, which means that the healer heals different amounts based on the unit it is healing, the doctor heals a unit at a base rate of 16 Health per second. By default the heal modifier is set to 1 / (the unit's defence).

So a crab is healed at the rate of 16 * 1 health per second, whereas a scout is healed at 16 * 1.1, which is 17.6 health per second, the Poison class is healed at a rate of (16 * 1.43) 22.8 Health per second. Oddly the kamikaze as it is known in the code(Bomb unit) has a defence of 190, making it the class with the highest defence in the game, and giving it a theoretical heal rate of 8.4 health/second (Of course this doesn't make any sense considering it will blow itself up). The Archer as it is known in the files (Gun in the game), which has 44 defense, has a heal rate of 35.5 health/second. The venom has a heal rate of 26.6 health/second. The leech known as Parasite in the game files, has the lowest defence and the highest heal rate of 40 health/second. The doctor(medic) has a heal rate of 32 health/second.

The only unit with a altered heal speed is the Hero unit, the hero unit has a heal speed of (1 / 10) * 2(presumably since its heal rate would be ridiculously slow otherwise), so the hero is healed at a rate of 3.2 health/second. (As far as I can tell, the hero unit's defence is 1000, but it's actually quite hard to tell)

The venom is known as a kalmar in the game files and the Kalmar's poison does 7 damage per second. And Has an attack radius of 200.

The hero travels at a speed of 159 (10 slower than the scout), has 51 attack power. The hero's bullets travel at a speed of 500,

For some reason there are 2 different versions of the hero classes in the source, Hero and Hero2, Hero2 appears to be the one that is implemented, Hero is definitely unimplemented and has some interesting features, in the code it appears that hero should level up, initially after 7 kills, with the kills required to level up being multiplied by 1.2 after that. Ostensibly when the hero levels up it should appear bigger, gain 2 defence, 10 attack power, add a bonus speed multiplier, Increase the max number of attackers (whatever that does). Presumably since this is titled Hero, and Hero2 is the implemented one, they probably tested it out and it didn't work, so it is no longer there :(.

Poison is healed at a constant rate of 0.4 points / second, the maximum amount of poison you can have is 1. So it takes 3 seconds for a medic to completely remove poison from a unit.

The gun unit has a modifier called "CrabAttackMult" which is equal to 1.35, which means it does 1.35 times the amount of damage to a crab, this is in part, what allows it to easily beat the crab, and has a "FishAttackMult" which is equal to 0.5, meaning any damage done to a scout by the gun, does half damage. Interestingly, the Gun class also has a variable called "NoneAttackMult" equal to 1.249 Presumably this means it does extra damage to newly spawned, unspecialised minions. So guns do more damage to basic units. The "fish" aka the scout has a variable called KalmarAttackMult, which causes it to do 1.2 times it's base damage against poison classes.

The archer(gun) has an attack radius of 220, 20 more than the venom.

The game is locked to 60FPS, the physics engine seems to be locked to 10 ticks per second.

Defence seems to be seperate from health, in the file UnitConstants, the constant health is equal to 100. Leading me to believe that all minions have a set health of 100 and there are just modifiers on top of that.

The damage done to a minion is divided by it's defence. While the defence in-game is listed as an integer like 39(leech) it is actually a fixed-point decimal. So a leech has 0.39 defence.

I'm not exactly sure how the attack system works, there is a lot of code involved in it and it's a bit of a spaghetti pile. On top of the fact that it seems to use a wierd system to work out the actual attack values.

I hope this post helped somehow, Boid contains very large systems that interact with lots of other systems so it is hard to analyze(for me anyway), I can't give any actual units like what these numbers mean, distances and speeds don't appear to be in pixels, Attack values don't seem to make sense when compared with health and defence. I know that all the health stuff fits together relative with eachother, but I can't say anything concrete.

There's a lot more I could have written here, but I'm not 100% confident on all of it, if you have any questions about boid's inner workings, reply here and I will try to find out as much as I can about that specific part.

SPECULATION: Since poison does 7 DPS, each unit has 100 health. Therefore poison (if left untreated) should kill a unit in 14.2 seconds A new unit spawns from a spawner every 5 seconds.

Posted Jul 13, 2016, 9:17 PM UTC · edited

75
Loading comments…