Raised This Month: $ Target: $400
 0% 

kill_streak_x (HLStats CE)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
casvdry
Member
Join Date: Mar 2008
Old 06-22-2010 , 09:36   kill_streak_x (HLStats CE)
Reply With Quote #1

I'm willing to pay a small amount of money ($5 or so) for the ability to have a plugin send kill_streak_x so that we can have kill streaks higher than 12 on our servers, thanks.
casvdry is offline
R3M*
Member
Join Date: May 2009
Location: Germany
Old 06-23-2010 , 11:12   Re: kill_streak_x (HLStats CE)
Reply With Quote #2

I don't think you need a extra plugin for this, edit HLstats_EventHandlers.plib at line 403, 404 and change the 12, add the new kill streaks numbers in the webadmin, and restart the perl daemon.

Code:
sub endKillStreak
{
	my ($player) = @_;
	
	my $killtotal = $player->{kills_per_life};
	if ($killtotal > $player->{kill_streak}) {
		$player->{kill_streak} = $killtotal;
	}	
	if ($killtotal > 12) {
		$killtotal = 12;
	}
	# octo: I don't think suicides should count as deaths in a row
	if ($killtotal > 1) {
		&doEvent_PlayerAction(
			$player->{userid},
			$player->{uniqueid},
			"kill_streak_" . $killtotal
		);
	}
	$player->{kills_per_life} = 0;
}
Don't know if this works, but it should.
__________________
R3M* 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 02:22.


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