Unit regeneration is officially in game!111

Discussion in 'Mod Discussions' started by zx0, June 13, 2015.

  1. zx0

    zx0 Well-Known Member

    Messages:
    295
    Likes Received:
    319
    Add "passive_health_regen":100 to any unit spec...
  2. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    ARE YOU SERIOUS? How does it work? Does it need to be 100? What does the 100 mean?
  3. zx0

    zx0 Well-Known Member

    Messages:
    295
    Likes Received:
    319
    Pretty sure any number will work. Must be hp/second.
    dom314 likes this.
  4. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    That is awesome :D
  5. zx0

    zx0 Well-Known Member

    Messages:
    295
    Likes Received:
    319
    Found a problem: wreckege can regenerate back into unit, lol.

    Edit: Units are only visual, but wreckeges actually getting their health and metal back.

    Edit 2: There is also new flag "wreckage", that supposedly receieves wreckege spec, whatever that is.
    Last edited: June 13, 2015
    ace63, igncom1, Nicb1 and 3 others like this.
  6. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I really like that it seems they are working on this kind of thing.
    ace63 and zx0 like this.
  7. zx0

    zx0 Well-Known Member

    Messages:
    295
    Likes Received:
    319
    Yeah, it wasn't yet in previous stable, so we hopefully we will see it fully working soon. Wonder what unit will have it in vanilla? Commander probably.
  8. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Regenerating walls could work, especially with the energy effect and no current wreckage.
  9. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    This series of strings looks promising, at least for the properties that are unique to wreckage.

    Code:
    WreckageSpec::parse received non-object Json
    remove_ground_cost_stamp
    collision_types
    
    cola_colin and zx0 like this.
  10. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    How did you find this out lol

    Looks like we're going to use this on the faction mod though :p
    ace63 and Nicb1 like this.
  11. Engineer1234

    Engineer1234 Well-Known Member

    Messages:
    325
    Likes Received:
    291
    I think it might mean "regen x% per second" damaged comm with default 12500 hitpoints and regen 100 seems to regen 1% healty every second.
  12. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    100/12500 = 0.08 which is approcimately 1% per second. You will probably notice that it doesn't go up by 1% every tick.
  13. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    zx0 likes this.
  14. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    ZX0, how did you even find this? I did a find in files after the last patch to see if there was any wreckage related stuff added and found nothing.
  15. zx0

    zx0 Well-Known Member

    Messages:
    295
    Likes Received:
    319
    Strings in .exe.
  16. MrTBSC

    MrTBSC Post Master General

    Messages:
    4,857
    Likes Received:
    1,823
    ... you people are sometimes such suprisekillers .... ...
    dom314 likes this.

Share This Page