Be warned that the getdammage command is rather... imperfect. A unit can die with the command only returning like 0.2, or he can be walking still and be at 0.9. So it doesn't really return a nice, neat percentage representing a unit's total damage. It's all we got though, but just be warned.
Then i have a config editing question: is there a way to edit the amount of maximum health on (this is the one i realy want) a sertain unit in the config or something or can you alter the maximum amount of helth for all soldiers in the game.
In a unit's config, you need these lines:
      armor=X;
      armorHead=X;
      armorBody=X;
      armorHands=X;
      armorLegs=X;
Just replace the X's with whatever number you like. I believe the default man has something like 3/.5/.8/.6/.7 respectively. Don't ask me what the numbers mean or how they work. You likely don't want it more than double the default though.
If you want to do that for all units in the game, then you need to get a hold of the game's config file. You can find one right here:
http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=bdba561697823f0ba8692d8593322e0b;act=ST;f=51;t=41783Open that up, find where the "man" class is defined, and then find the lines like the ones I showed you. Just change the numbers, and then use the cpp->bin utility (search the ofp file tools section) to compile it. Then put it in your res/bin folder (backup your old config), and you're good to go!