Aim Target Based on Parts
For those who develop new game modes, zombie mode for etc.. you can make the zombie die only by shooting on head!
ZGame::OnPeerShot_Range_Damaged
Code:
if(pickinfo.info.parts!=eq_parts_head)
//eq_parts_chest
//eq_parts_legs
return;
ZGame::OnPeerShotgun_Damaged
Code:
if(pickinfo.info.parts!=eq_parts_head)
//eq_parts_chest
//eq_parts_legs
return false;
Re: Aim Target Based on Parts
if(ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_INFECTED && pVictim->IsZombie && pickinfo.info.parts != eq_parts_head && pickinfo.info.parts != eq_parts_face) return NULL;
its what i did anyway, im glad you though of making zombies headshot only for my infection game mode, but im gonna add some room options so the room creator can choose if its headshot only or the speed of the zombies :)