Loading...
  OR  Zero-K Name:    Password:   

Post edit history

NEW Damage model proposal

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
8/21/2022 1:33:00 PMPLrankrookstoo before revert after revert
8/21/2022 1:10:46 PMPLrankrookstoo before revert after revert
8/21/2022 1:08:01 PMPLrankrookstoo before revert after revert
8/21/2022 12:56:24 PMPLrankrookstoo before revert after revert
8/21/2022 12:48:43 PMPLrankrookstoo before revert after revert
Before After
1 Heres the thing: 1 Heres the thing:
2 \n 2 \n
3 What if all stuff when damaged shoots crappier, builds crappier. 3 What if all stuff when damaged shoots crappier, builds crappier.
4 Basically extra slow penalty% = damage%/2. 4 Basically extra slow penalty% = damage%/2.
5 \n 5 \n
6 Unit has 25% damage (75%HP) = 12.5% slow. 6 Unit has 25% damage (75%HP) = 12.5% slow.
7 \n 7 \n
8 The slow from damage is not shown as usual slow damage, and its compounded with usual slow damage. So: 8 The slow from damage is not shown as usual slow damage, and its compounded with usual slow damage. So:
9 \n 9 \n
10 Unit that has 1%HP and is hit with max slow attack, has 99.5% SLOW (49.5% from damage, and 50% from maxed out slow attack) 10 Unit that has 1%HP and is hit with max slow attack, has 99.5% SLOW (49.5% from damage, and 50% from maxed out slow attack)
11 \n 11 \n
12 So we woulnt have situation where theres 5% hp left fleet of tanks destroying glaives like fresh out of factory. 12 So we woulnt have situation where theres 5% hp left fleet of tanks destroying glaives like fresh out of factory.
13 \n 13 \n
14 ALSO 14 ALSO
15 \n 15 \n
16 When unit is hit, there is a 2d noise texture, like one texture for all game (something like blenders noise texture) that is tilable, that is rotated using unitID*8008.135 to have each unit different damaged look. That 2d noise texture is greayscale, its overlapped in shaders over existing unit texture in a way, that 16 When unit is hit, there is a 2d noise texture, like one texture for all game (something like blenders noise texture) that is tilable, that is rotated using unitID*8008.135 to have each unit different damaged look. That 2d noise texture is greayscale, its overlapped in shaders over existing unit texture in a way, that
17 \n 17 \n
18 FinalTexture = Mix(UnitTexture , NoiseTexture*RustColor, IF ( Damage% > NoiseTexture, 1, 0 ) ) 18 FinalTexture = Mix(UnitTexture , NoiseTexture*RustColor, IF ( Damage% > NoiseTexture, 1, 0 ) )
19 \n 19 \n
20 So the damaged unit gets more rust growing on it. 20 So the damaged unit gets more rust growing on it.
21 \n 21 \n
22 Or more advanced like, when unit gets hit, it shows some bare metal and paint is stripped, before rust is exposed, so like: 22 Or more advanced like, when unit gets hit, it shows some bare metal and paint is stripped, before rust is exposed, so like:
23 \n 23 \n
24 DmageTexture = Mix (ShinyMetal, NoiseTexture*RustColor, Threshold*NoiseTexture/Damage% ) 24 DmageTexture = Mix (ShinyMetal, NoiseTexture*RustColor, Threshold*NoiseTexture/Damage% )
25 FinalTexture = Mix(UnitTexture , DamageTexture , IF ( Damage% > NoiseTexture, 1, 0 ) ) 25 FinalTexture = Mix(UnitTexture , DamageTexture , IF ( Damage% > NoiseTexture, 1, 0 ) )
26 \n 26 \n
27 So, at first it scratches paint, then it gets rust. 27 So, at first it scratches paint, then it gets rust.
28 \n 28 \n
29 Additionally maybe throw a geometry shader slight seeded random deform, so geometry bends slightly when unit gets hit. 29 Additionally maybe throw a geometry shader slight seeded random deform, so geometry bends slightly when unit gets hit.
30 \n 30 \n
31 ALSO 31 ALSO
32 \n 32 \n
33 When on gridded land it gets small auto heal from Pylons, closer to pylon, the stronger heal, like 33 When on gridded land it gets small auto heal from Pylons, closer to pylon, the stronger heal, like
34 \n 34 \n
35 HealSpeed = 1% Max HP * (Distance + Threshold)/PylonRadius * (Energy Grid Power / 700 ) ^ 0.2 35 HealSpeed = 1% Max HP * (Distance + Threshold)/PylonRadius * (Energy Grid Power / 700 ) ^ 0.2
36 HealSpeed = HealSpeed * 5 if Playername.Consists("vegan") 36 HealSpeed = HealSpeed * 5 if Playername.Consists("vegan")
37 \n 37 \n
38 so it benefits early eco, but later eco add miniscule hp boost, but also pylons go boom harder, so its difficult to porc using that method. 38 so it benefits early eco, but later eco add miniscule hp boost, but also pylons go boom harder, so its difficult to porc using that method.
39 \n 39 \n
40 [url=https://postimages.org/][img]https://i.postimg.cc/T3cdnrgp/image-2022-08-21-153205879.png[/img][/url]
41 \n
40 What you think? 42 What you think?