Found a bug after using chem

Post Reply
User avatar
LunaticChick
Posts: 428
Joined: Fri Dec 09, 2011 6:13 pm

Found a bug after using chem

Post by LunaticChick »

Was on blastside today, got in chem with the pack on and the sensor blocker and got killed. When I re-spawned I was in my base but all the invos. said they were the enemy teams. None of our teams turrets fired at me. I controlled-K 3 times and it was the same thing until I dropped and logged back on.
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: Found a bug after using chem

Post by perrinoia »

Interesting... I remember that bug way back in the day... Thought it got fixed.
Image
Firefox
Posts: 8
Joined: Wed Feb 12, 2014 2:20 pm

Re: Found a bug after using chem

Post by Firefox »

its happens but very rarely. Once or twice a year maybe.
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: Found a bug after using chem

Post by perrinoia »

It's easy to fix, though. Just add two lines of code in each instance of "function Player::onKilled"

Code: Select all

function Player::onKilled(%this)
{
	if($debug)
		echo("Player::onKilled("@%this@")");
	DebugFun("Player::onKilled",%this);
	%this.Station = "";
	%cl = GameBase::getOwnerClient(%this);
	%cl.dead = 1;
	%cl.isSpy = false;
	%cl.OrigTeam = "";
---------- Find in Files ---------- wrote:> Searching for the string 'function player::onkilled'...
D:\BR\Annihilation\FlagHunter.cs(117,1): function Player::onKilled(%this)
D:\BR\Annihilation\player.cs(59,1): function Player::onKilled(%this)
> 2 occurrence(s) have been found.
Image
Post Reply