View Single Post
XGAK
Junior Member
Join Date: May 2018
Old 01-01-2019 , 01:59   Re: Freak Fortress 2 1.10.14 Released
Reply With Quote #2983

Quote:
Originally Posted by Hoto Cocoa View Post
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~~ φ(゜▽゜*)♪
Delete the bonk.smx plugin and add this to switch(index) in LINE 6466 of your freak_fortress_2.sp.
Code:
					case 44: 
					{
						decl Float:fClientLocation[3], Float:fClientEyePosition[3]; 
						GetClientAbsOrigin(attacker, fClientEyePosition); 
						GetClientAbsOrigin(client, fClientLocation); 
						decl Float:fDistance[3]; 
						MakeVectorFromPoints(fClientLocation, fClientEyePosition, fDistance); 
						float dist = GetVectorLength(fDistance); 
						//PrintToChat(attacker, "\x04Distance: %2.f", dist); //See the distances between the ball and the client. 
						if (dist >= 128.0 && dist <= 256.0) 
						{
							TF2_StunPlayer(client, 1.0, 0.0, TF_STUNFLAGS_SMALLBONK, attacker); 
						}
						else if (dist >= 256.0 && dist < 512.0) 
						{
							TF2_StunPlayer(client, 2.0, 0.0, TF_STUNFLAGS_SMALLBONK, attacker); 
						}
						else if (dist >= 512.0 && dist < 768.0)
						{
							TF2_StunPlayer(client, 3.0, 0.0, TF_STUNFLAGS_SMALLBONK, attacker); 
						}
						else if (dist >= 768.0 && dist < 1024.0)
						{
							TF2_StunPlayer(client, 4.0, 0.0, TF_STUNFLAGS_SMALLBONK, attacker); 
						}
						else if (dist >= 1024.0 && dist < 1280.0) 
						{
							TF2_StunPlayer(client, 5.0, 0.0, TF_STUNFLAGS_SMALLBONK, attacker); 
						}
						else if (dist >= 1280.0 && dist < 1536.0) 
						{
							TF2_StunPlayer(client, 6.0, 0.0, TF_STUNFLAGS_SMALLBONK, attacker); 
						}
						else if (dist >= 1536.0 && dist < 1792.0) 
						{
							TF2_StunPlayer(client, 7.0, 0.0, TF_STUNFLAGS_SMALLBONK, attacker); 
						}
						else if (dist >= 1792.0)
						{
							TF2_StunPlayer(client, 7.0, 0.0, TF_STUNFLAGS_BIGBONK, attacker); 
						}
						return Plugin_Changed; 
					}
XGAK is offline