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).
armor class as unitdef tag?
Moderator: Moderators
Re: armor class as unitdef tag?
Been there done that need code for it?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: armor class as unitdef tag?
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.
https://code.google.com/p/evolutionrts/ ... s_post.lua
Line 86 is where the magic happens.