Preferred target category - Page 2

Preferred target category

Requests for features in the spring code.

Moderator: Moderators

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Preferred target category

Post by knorke »

Forboding Angel wrote:
knorke wrote: I wanted to look at evos amorblubs but the first thing I saw was like this and I did not understand:
That's because you're looking in the completely wrong place:
https://code.google.com/p/evolutionrts/ ... ost.lua#86
No, that is where damage of weapons is set.
The sorting units into armorblubs is in armordefs.lua. And there I saw the posted lines. And it does not do what the comment says it does. And then I thought that is no good.
btw another:

Code: Select all

 -- put any unit that doesn't go in any other category in medium armor
table.insert(armorDefs.LIGHT, name)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Preferred target category

Post by Forboding Angel »

Actually, sorting units into armor classes happens in the unitdefs.
https://code.google.com/p/evolutionrts/ ... nk3.lua#95

Damage types are also set in the unitdef
https://code.google.com/p/evolutionrts/ ... k3.lua#131


And damage percentages are set in weapondefs_post
https://code.google.com/p/evolutionrts/ ... ost.lua#86


armordefs.lua is irrelevant.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Preferred target category

Post by knorke »

garfield, the only reason why customParams have an effect at all is because there is code that reads them:
armordefs.lua is irrelevant.
:regret:
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Preferred target category

Post by Forboding Angel »

Yes, that is correct.

You wanted the armor classes. In which case, armordefs is mostly irrelevant. It tells you there are 3 armortypes, but the interesting stuff happens in weapondefs_post, Odie.
Post Reply

Return to “Feature Requests”