Raised This Month: $51 Target: $400
 12% 

[TF2] Homing Rocket v2.4.0.9 (13.12.12)


Post New Thread Reply   
 
Thread Tools Display Modes
Bonkorn
Senior Member
Join Date: Jul 2015
Old 09-01-2017 , 09:19   Re: [TF2] Homing Rocket v2.4.0.9 (13.12.12)
Reply With Quote #151

Is it possible to disable only for certain flag with specified weapon?
If player have A flag, when he equip Direct Hit, homing is disabled but other rocket launchers homing available.
If player have no A flag, when he equip Direct Hit or other rocket launchers, homing is available.
This doesn't seems work for me.
Code:
public Action:TF2_CalcIsAttackCritical(iClient, weapon, String:weaponname[], &bool:result)
{	
	if(GetUserFlagBits(iClient) & ADMFLAG_RESERVATION)
	{
		if (IsValidEntity(weapon))
		{
			new index = GetEntProp(weapon, Prop_Send, "m_iItemDefinitionIndex");
			if (index == 127 && StrEqual(weaponname, "tf_weapon_rocketlauncher_directhit", false))
			{
				if(g_bPluginOn[iClient])
				{
					g_bPluginOn[iClient] = false;
				}
			}
			else
			{
				if(g_bPluginOn[iClient])
				{
					g_bPluginOn[iClient] = true;
				}
			}
		}
	}
	else
	{
		return Plugin_Continue;
	}
}

Last edited by Bonkorn; 09-01-2017 at 09:50.
Bonkorn is offline
epicwindow
Senior Member
Join Date: Jan 2018
Old 03-05-2018 , 03:45   Re: [TF2] Homing Rocket v2.4.0.9 (13.12.12)
Reply With Quote #152

can someone add cvar that disables homing rocket for blue/red team?thanks
epicwindow is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode