Page 1 of 1

Can Lua read the handicap?

Posted: 08 Jan 2009, 04:05
by zwzsg
Can Lua read the handicap that each player set to himself?

Basically, I want to catch the use of the handicap button, to then implemement my own Lua gadget handicap code. Which has nothing to do with metal (it's for a mod in which metal is irrelevant).

Nemo suggested comparing a player's income to a calculated level, but, that sounds like a dirty workaround, which wouldn't work on a metal less map.

So I just hope someone will tell me about an undocumenated Spring.GetTeamHandicap

Re: Can Lua read the handicap?

Posted: 08 Jan 2009, 04:29
by lurker
The way to do it not-so-dirty is to set their resources to 0, add 100, measure them, and then set them back to normal. I think. I don't know about your question, though.