Go to hgrunt.cpp and find the classify function. It should say
[quote]int CHGrunt :: Classify ( void )
{
return CLASS_HUMAN_MILITARY;
}[/quote]
Change it to
[quote]int CHGrunt :: Classify ( void )
{
return CLASS_PLAYER_ALLY;
}[/quote]
That's it for hgrunt.cpp, now he's your friend.
The turrets are harder for one reason: They're mechanical. The game uses their class to make sure they get out the right sounds, etc, when they get hit. But it's still fairly easy.
So, go to monsters.cpp and find
int CBaseMonster::IRelationship ( CBaseEntity *pTarget )
Find where the line that starts with
*MACHINE*.
Delete the whole line, and, IN IT'S PLACE, write
*MACHINE* { R_NO ,R_NO ,R_NO ,R_NO ,R_NO ,R_DL ,R_DL ,R_DL ,R_DL ,R_DL ,R_NO ,R_NO, R_DL, R_DL },
What that does is it changes who machines hate and like. Good luck!