• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 13:27
CET 19:27
KST 03:27
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !8Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
When will we find out if there are more tournament ComeBackTV's documentary on Byun's Career ! Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win RSL Revival - 2025 Season Finals Preview Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump
Tourneys
$5,000+ WardiTV 2025 Championship RSL Offline Finals Info - Dec 13 and 14! Master Swan Open (Global Bronze-Master 2) Winter Warp Gate Amateur Showdown #1: Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
How Rain Became ProGamer in Just 3 Months BGH Auto Balance -> http://bghmmr.eu/ FlaSh on: Biggest Problem With SnOw's Playstyle screp: Command line app to parse SC rep files [BSL21] RO8 Bracket & Prediction Contest
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] WB SEMIFINALS - Saturday 21:00 CET [BSL21] RO8 - Day 2 - Sunday 21:00 CET
Strategy
Game Theory for Starcraft Current Meta Simple Questions, Simple Answers Fighting Spirit mining rates
Other Games
General Games
PC Games Sales Thread Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI YouTube Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
TL+ Announced Where to ask questions and add stream?
Blogs
The (Hidden) Drug Problem in…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1891 users

[Q] Do units have non-integer health?

Forum Index > StarCraft 2 Strategy
Post a Reply
TheSambassador
Profile Joined May 2010
United States186 Posts
Last Edited: 2011-06-20 16:02:13
June 20 2011 15:35 GMT
#1
I searched a bunch, and it seems like there wasn't anything on this subject that actually looked at this in-detail, and the wiki doesn't seem to be much help.

Do units have a (not displayed in-game) fractional health value?

I ask this because of how Zerg regen, Mutalisk upgrades, and splash damage work according to the wiki.

Mainly, I want to know what "+.33333" means on a Mutalisk attack, what ".27hp/second" means on zerg regeneration, and what "50%" of a 35 damage attack means.

People talk about how the mutalisk attack upgrade helps with the bounce damage. As far as in-game health is concerned, there are no decimal places... yet the wiki says that a +1 attack mutalisk does 10 damage on an attack and 3.3333 on a bounce? What does that MEAN? Is it rounded up to 4 damage? Is it rounded down to 3? Or is there an actual decimal health value behind this? Would a marine getting hit with 3 1st-bounce +1 attacks take 9, 10, or 12 damage?

Please enlighten me... and maybe I'll update the wiki with what I find.
FlaminGinjaNinja
Profile Blog Joined January 2011
United Kingdom879 Posts
June 20 2011 15:39 GMT
#2
I think the only way for you to find these things out would be to test them for yourself. Use the custom unit test map to do it, it'll be interesting to see the results although i doubt it would effect anything in the game one way or another
GinjaNinja.661 EU I'd like to thank my sh*t keyyboard for always messing up my 'Y's
Fredbrik
Profile Joined August 2010
Denmark28 Posts
June 20 2011 15:42 GMT
#3
Yes, health and energy of units are non-integers but none of the decimals are shown.
Geiko
Profile Blog Joined June 2010
France1939 Posts
Last Edited: 2011-06-20 15:48:22
June 20 2011 15:48 GMT
#4
Yes units have non integer health. This is why zerg units don't die in the expected amount of hits sometimes , for example probe vs drone, drone always wins with 1hp because during the fight he has regenerated point-something health.
geiko.813 (EU)
RukKus
Profile Joined October 2010
United States197 Posts
Last Edited: 2011-06-20 18:03:37
June 20 2011 18:01 GMT
#5
Interesting idea. So a SCV can take damage and have a remaining health below 01.00 and above 00.00 and be considered dead?

What if an SCV took an attack that added up to 44.50 damage, leaving 00.50 health ; would that integer equal zero, or one?

I can picture it now.

Stevie: " *BLAST* Ow! Well Jiggerbits, that done hurt! At least I have 1% of my health left. Better get back to mining."
Adjutant: "Sorry, Stevie, but it appears your vitals are below an integer of one. You are forced to de-commission."
Stevie: "But I gots 1% left! I'm still alive!"
Adjutant: "Negative, Stevie, for this universe works in numbers below the visible."
Stevie: "Awww shucks...*hssssss CRASH*"
Micro... Kill Kill! Macro ... Build Build! ... Micro ... Kill Kill! Macro ... Build Build... Stim...RAAAAAGE!
FeyFey
Profile Joined September 2010
Germany10114 Posts
June 20 2011 18:13 GMT
#6
stuff gets rounded up i think. Atleast zerg regene works that way damage applied (zerg unit gains almost instantly 1 hp (only if it had full health before)). So always add +1 hp to zerg units and you are fine.
But you can get sure if you test it with a siege tank and marines clumping to gether, just shoot one and look at the health and you know. Or as mutas are your biggest interest use mutas ^.^.
Shucks!
Profile Joined November 2010
United States118 Posts
June 20 2011 18:13 GMT
#7
+ Show Spoiler +
On June 21 2011 03:01 RukKus wrote:
Interesting idea. So a SCV can take damage and have a remaining health below 01.00 and above 00.00 and be considered dead?

What if an SCV took an attack that added up to 44.50 damage, leaving 00.50 health ; would that integer equal zero, or one?

I can picture it now.

Stevie: " *BLAST* Ow! Well Jiggerbits, that done hurt! At least I have 1% of my health left. Better get back to mining."
Adjutant: "Sorry, Stevie, but it appears your vitals are below an integer of one. You are forced to de-commission."
Stevie: "But I gots 1% left! I'm still alive!"
Adjutant: "Negative, Stevie, for this universe works in numbers below the visible."
Stevie: "Awww shucks...*hssssss CRASH*"



In this scenario the SCV's hp would be displayed as 1 until it took lethal damage.
"Do not look into the eyes of a horse, for the void there will swallow your soul" - LiquidTyler on SotG 12.14.10
Kornholi0
Profile Joined November 2010
Canada634 Posts
June 20 2011 18:17 GMT
#8
Basically how it works, is that you do
10
10/3
10/9 (I believe), therefore it takes 9 mutalisk to do 10 damage on the 3rd shot.

So you are doing
10 to the first marine
3.3 to the second marine
1.1 to the 3rd marine But you are really doing.
10 to the first marine
3 to the second marine and 1 to the 3rd marine. You do not do extra damage based on 1 shot but upon a multiple of that (I believe it has to do with health cooldown) as in your unit regens to the nearest number (3.99 = 4 1.33 = 1.). Therefore if you get hit by a mutalisk as the second marine, you have 41.667 health for a moment in time, if you do not get hit again within a certain period of time the health goes to 42.

I could be wrong but if that doesn't make sense another theory is that you do extra damage (3.33 becomes 4) etc etc. I dunno I doubt it is like that plus my original sounds sooo much more advanced
Team Channel: VTeX Team Co-leader: AGGhost 223 Stream: http://www.twitch.tv/agghost
Icemind
Profile Joined May 2010
Germany570 Posts
Last Edited: 2011-06-20 18:49:29
June 20 2011 18:40 GMT
#9
On June 21 2011 03:13 FeyFey wrote:
stuff gets rounded up i think. Atleast zerg regene works that way damage applied (zerg unit gains almost instantly 1 hp (only if it had full health before)). So always add +1 hp to zerg units and you are fine.
But you can get sure if you test it with a siege tank and marines clumping to gether, just shoot one and look at the health and you know. Or as mutas are your biggest interest use mutas ^.^.


This is almost correct
Units have indeed got decimal health and energy values however the displayed value gets always rounded up (the system internal one does not)
A zerg unit that just regenerated and saved its life by doing so would have ~0.4 and if it was dealt 0.5 points of damage would indeed die (to deal 0.5 of damage you would need to shoot with a 6 damage attack at a unit with 6 armor, or of course with an attack that actually has a decimal value out of house like said mutas bounce) however would be displayed to have one health.

Units that can deal decimal values of damage are:
Mutas with one or more attack upgrades
Void Rays on massive targets
Any unit that attacks a target affected by coruption
Any unit that attacks a target with armor equal or higher than its own attack.
(in the last case an attack with 5 damage on a target with 5 armor would deal 0.5 damage; same attack on a target with 6 armor 0.25 and so fourth)

Oh and the marine in your example would be dealt 10 damage
figq
Profile Blog Joined May 2010
12519 Posts
June 20 2011 18:52 GMT
#10
In SC2 it's all real numbers, displayed as integers on screen. Sometimes people still think it's like in BW, where the internal system was truly integer with some ratio-tricks to count for rational numbers - but that's not true in SC2. All damage and armor is non-integer in SC2 internally.
If you stand next to my head, you can hear the ocean. - Day[9]
Please log in or register to reply.
Live Events Refresh
Big Brain Bouts
17:00
#102
YoungYakov vs JumyLIVE!
TriGGeR vs Spirit
RotterdaM703
IndyStarCraft 295
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 703
Lowko460
IndyStarCraft 295
SteadfastSC 147
BRAT_OK 53
ProTech42
mouzStarbuck 38
MindelVK 28
DivinesiaTV 17
StarCraft: Brood War
Britney 17606
Rain 1978
Bisu 1869
Shuttle 347
Larva 184
Mini 110
firebathero 108
Dewaltoss 104
BeSt 91
Hyun 87
[ Show more ]
Mind 85
Zeus 65
Killer 62
Aegong 51
ggaemo 45
JYJ 42
Mong 28
910 26
sorry 20
GoRush 15
soO 15
ajuk12(nOOB) 14
Shinee 14
SilentControl 13
JulyZerg 12
Sacsri 12
Dota 2
Gorgc6122
singsing3680
qojqva3196
Counter-Strike
fl0m211
Foxcn109
byalli106
Other Games
FrodaN1070
KnowMe101
C9.Mang083
Trikslyr61
Chillindude31
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota245
League of Legends
• Nemesis4197
• TFBlade220
Other Games
• imaqtpie586
• Shiphtur112
• tFFMrPink 17
Upcoming Events
The PiG Daily
2h 33m
SHIN vs ByuN
Reynor vs Classic
TBD vs herO
Maru vs SHIN
TBD vs Classic
CranKy Ducklings
15h 33m
WardiTV 2025
16h 33m
Reynor vs MaxPax
SHIN vs TBD
Solar vs herO
Classic vs TBD
SC Evo League
18h 3m
Ladder Legends
1d
BSL 21
1d 1h
Sziky vs Dewalt
eOnzErG vs Cross
Sparkling Tuna Cup
1d 15h
Ladder Legends
1d 22h
BSL 21
2 days
StRyKeR vs TBD
Bonyth vs TBD
Replay Cast
2 days
[ Show More ]
Wardi Open
2 days
Monday Night Weeklies
2 days
WardiTV Invitational
4 days
Replay Cast
5 days
WardiTV Invitational
5 days
ByuN vs Solar
Clem vs Classic
Cure vs herO
Reynor vs MaxPax
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 1
WardiTV 2025
META Madness #9
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

CSL Season 19: Qualifier 2
CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.