Page 1 of 1

armor class as unitdef tag?

Posted: 07 Jan 2013, 15:09
by Erik
Whats the point of armordefs.lua anyway? Why not simply implement armor class as a tag in unit definition?

Having to enter each and every unit manually is pretty annoying (especially when having a lot of copy paste - small change unit variants automatically generated).

Re: armor class as unitdef tag?

Posted: 23 Jan 2013, 19:34
by smoth
Been there done that need code for it?

Re: armor class as unitdef tag?

Posted: 24 Jan 2013, 05:33
by Forboding Angel
You should look at smoths Armor system code. Evo uses it rather extensively.

https://code.google.com/p/evolutionrts/ ... s_post.lua

Line 86 is where the magic happens.