14.02.2020, 17:57:38
С использованием Ikarus+Lego
Или делать урон зону в Spacer
var C_NPC global_fired_npc_self;
func void FireDamage()
{
global_fired_npc_self.attribute[ATR_HITPOINTS] = global_fired_npc_self.attribute[ATR_HITPOINTS] - 50;
if((global_fired_npc_self.aivar[AIV_VictoryXPGiven] == FALSE) && (global_fired_npc_self.attribute[ATR_HITPOINTS] <= 0))
{
B_GivePlayerXP(global_fired_npc_self.level * XP_PER_VICTORY);
global_fired_npc_self.aivar[AIV_VictoryXPGiven] = TRUE;
if (FF_Active(FireDamage))
{
FF_Remove(FireDamage);
};
};
};
func void WERK_S1()
{
Wld_PlayEffect("VOB_BURN",slf,slf,0,0,0,FALSE);
if(!FF_Active(FireDamage))
{
global_fired_npc_self = Hlp_GetNpc(slf);
FF_ApplyOnceExt(FireDamage, 1000, 3);
};
};
Или делать урон зону в Spacer
var C_NPC global_fired_npc_self;
func void FireDamage()
{
global_fired_npc_self.attribute[ATR_HITPOINTS] = global_fired_npc_self.attribute[ATR_HITPOINTS] - 50;
if((global_fired_npc_self.aivar[AIV_VictoryXPGiven] == FALSE) && (global_fired_npc_self.attribute[ATR_HITPOINTS] <= 0))
{
B_GivePlayerXP(global_fired_npc_self.level * XP_PER_VICTORY);
global_fired_npc_self.aivar[AIV_VictoryXPGiven] = TRUE;
if (FF_Active(FireDamage))
{
FF_Remove(FireDamage);
};
};
};
func void WERK_S1()
{
Wld_PlayEffect("VOB_BURN",slf,slf,0,0,0,FALSE);
if(!FF_Active(FireDamage))
{
global_fired_npc_self = Hlp_GetNpc(slf);
FF_ApplyOnceExt(FireDamage, 1000, 3);
};
};