armor class as unitdef tag?

armor class as unitdef tag?

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Erik
Posts: 283
Joined: 20 Aug 2009, 20:49

armor class as unitdef tag?

Post 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).
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: armor class as unitdef tag?

Post by smoth »

Been there done that need code for it?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: armor class as unitdef tag?

Post 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.
Post Reply

Return to “Feature Requests”