I having troubles with the error
Code:
L 12/31/2018 - 14:48:51: [SM] Exception reported: Property "m_iItemDefinitionIndex" not found (entity 1117/eyeball_boss)
L 12/31/2018 - 14:48:51: [SM] Blaming: freak_fortress_2.smx
L 12/31/2018 - 14:48:51: [SM] Call stack trace:
L 12/31/2018 - 14:48:51: [SM] [0] GetEntProp
L 12/31/2018 - 14:48:51: [SM] [1] Line 6834, D:\Codes\tf2_freakfortress2\addons\sourcemod\scripting\freak_fortress_2.sp::OnTakeDamage
L 12/31/2018 - 14:48:51: [SM] Exception reported: Property "m_iItemDefinitionIndex" not found (entity 1117/eyeball_boss)
It keeps spamming in the error log and the spell Monoculuses does 0 damage.
I customized the freak_fortress_2.sp for weapons changes. And I found that line 6834 is about the Ullapool Caber
Code:
new index=(IsValidEntity(weapon) && weapon>MaxClients && attacker<=MaxClients ? GetEntProp(weapon, Prop_Send, "m_iItemDefinitionIndex") : -1);
if(index==307) //Ullapool Caber
{
if(detonations[attacker]<allowedDetonations)
{
detonations[attacker]++;
PrintHintText(attacker, "%t", "Detonations Left", allowedDetonations-detonations[attacker]);
if(allowedDetonations-detonations[attacker]) //Don't reset their caber if they have 0 detonations left
{
SetEntProp(weapon, Prop_Send, "m_bBroken", 0);
SetEntProp(weapon, Prop_Send, "m_iDetonated", 0);
}
}
}
I've been troubled by this problem for two months. Please I need help from you guys. ;-;
BTW. Happy New Year to you~~ φ(゜▽゜*)♪