nie wiem co jest nie tak,fragment pliku zs_reacttodamage, jest to logiczne, ale niała
//-------- Atak na NPC ! --------
if (!C_NpcIsMonster(other))
{
if C_NpcIsGuard(other)
|| C_NpcIsGuardArcher(other)
|| (!Npc_IsPlayer(other))
|| C_NpcIsBoss(other)
{
Bezio.aivar[AIV_BEENATTACKED] = 1;
if ((Npc_GetTempAttitude(Bezio,other)==ATT_FRIENDLY) || (self.npctype==NPCTYPE_FRIEND))
{
PrintDebugNpc (PD_ZS_CHECK, "...NSC FRIENDLY zum Angreifer");
C_LookAtNpc (GorHanis, other);
B_Say (GorHanis, other, "WHATAREYOUDOING");
Npc_SetTempAttitude (GorHanis, ATT_HOSTILE);
AI_ContinueRoutine (GorHanis);
Npc_SetTarget (GorHanis, other);
AI_StartState (GorHanis, ZS_Attack, 0, "");
return;
}
else
{
PrintDebugNpc (PD_ZS_CHECK, "...NSC nicht FRIENDLY zum Angreifer!");
if (Npc_GetPermAttitude(GorHanis,other) != ATT_HOSTILE)
{
Npc_SetPermAttitude (GorHanis, ATT_HOSTILE);
};
Npc_SetTempAttitude (GorHanis, ATT_HOSTILE);
};
};
Npc_SetTarget (GorHanis, other);
Npc_GetTarget (GorHanis);
Npc_SetTarget (GorHanis, other);
AI_StartState (GorHanis, ZS_Attack, 0, "");
AI_StartState (GorHanis, ZS_ProclaimAndPunish, 0, "");
//AI_StartState (GorHanis, ZS_AssessEnemy, 0, "" );
}
//-------- Angreifer ist Monster ! --------
else
{
AI_StartState (GorHanis, ZS_AssessMonster, 0, "" );
};