3
« dnia: 2017-08-30, 10:57 »
1) Próbowałem wczoraj zmieniać te liczby, to nic nie dawało.
2) // ************************************************************
// ZS_ReactToDamage
// ----------------
// wird duch B_AssessDamage aufgerufen
// wenn ein Freundlicher NSC aus einem TA heraus getroffen wird
// verschafft dem Spieler bei Freunden EINEN Freischlag
// ************************************************************
func void ZS_ReactToDamage ()
{
if (self.id != 574)
{
Perception_Set_Normal();
B_LookAtNpc (self, other);
B_SelectWeapon (self, other);
B_TurnToNpc (self, other);
B_Say (self, other, "$WHATAREYOUDOING");
self.aivar[AIV_StateTime] = 0;
}
else
{
Mdl_ApplyOverlayMds (self, "HUMANS_FLEE.MDS");
AI_GotoWP (self,"TOT");
};
};
func int ZS_ReactToDamage_Loop ()
{
// ------ Alle 2 Sekunden zu other ausrichten ------
if (Npc_GetStateTime (self) > self.aivar[AIV_StateTime])
{
if (!Npc_CanSeeNpc (self, other))
{
AI_TurnToNpc (self, other);
};
self.aivar[AIV_StateTime] = self.aivar[AIV_StateTime] + 1;
};
// ------ 10 Sekunden warten -------
if (Npc_GetStateTime (self) > 10)
{
return LOOP_END;
}
else
{
return LOOP_CONTINUE;
};
};
func void ZS_ReactToDamage_End ()
{
AI_RemoveWeapon (self);
B_StopLookAt (self);
};
Ta metoda też nic nie dała, po otrzymaniu obrażeń NPC tylko patrzy się na mnie, nic nie mówi i nigdzie nie idzie.
3) Moduję G2NK