Below is the Code I wrote for highlander strategic
Remove the // to add this to your Highlander pxl
Code:
if(CurW != this && CurW != NullObj && CurW->dead != true)
{
StealWeapons(CurW);
//int HPtoADD = GS->Info.Teams[WormTeam-1].Worms[WormNumber-1].DamageTaken;
//int health = GS->Info.GetWormHealth(CurW->WormTeam, CurW->WormNumber);
//GS->Info.SetWormHealth(CurW->WormTeam, CurW->WormNumber, health + HPtoADD);
}
GS->Info.Teams[WormTeam-1].Worms[WormNumber-1].DamageTaken;This is the line that gets the HP done to the worm, I store this in a variable "HPtoADD".
The next two are pretty straight forward. As
GS->Info.SetWormHealth(Team#, Worm#, HealthToSet); Sets the hp to an actual value, you need to get the original hp first with.
int health = GS->Info.GetWormHealth(Team#, Worm#);use Set, Get and HPtoADD to add 'x' amount of HP to your original worms HP.