Modme Forums
Menu:

Sprinting cancels reload

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: ReviveMePlz
So I've done a bit of research as to how it was handled in older games (BO2 just notified "abort_reload" to the client) but as reloading while sprinting is in the game by default I am not sure how I would go about terminating the reload. I have made a little function below already if that helps

function reloadCancel()
{
	for(;;)
	{
		if(self IsSprinting() && self IsReloading())
		{
			//cancel the reload
		}
		wait 0.05;
	}
}
Any help or ideas are greatly appreciated


ModmeBot:

Reply By: Symbo
what about the opposite?

if(player IsReloading())
{
player AllowSprint(false);
}


ModmeBot:

Reply By: ReviveMePlz

Symbo
what about the opposite? if(player IsReloading()){player AllowSprint(false);}

I thought about doing that but that would be pretty inconvenient and could easily get you killed