UFO:Alien Invasion

Technical support => FAQ => Topic started by: Djadavin on December 09, 2008, 10:50:55 am

Title: Where is character create function?
Post by: Djadavin on December 09, 2008, 10:50:55 am
Hello. I want to change a maximum of soldiers HP, and also make their stronger, say please that i need to do.
I read source but its all type "chr->maxHP" and nothing says about how that maxHP calculate.
Give me a pointer on character create function.
Thank you.
Title: Re: Where is character create function?
Post by: BTAxis on December 09, 2008, 01:36:38 pm
Look in inv_shared.c, around line 1635. Health is randomly picked between two values given in the templates. Templates are randomly picked as well.