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

Bhop timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.kevin12
Junior Member
Join Date: Aug 2016
Old 07-06-2017 , 19:28   Bhop timer
Reply With Quote #1

Hello guys! Im looking for a bhop timer plugin to a mg server, do you have any tips?
Not shavit, i cant get it to work

/Kevin
Mr.kevin12 is offline
Bl4CkGuuN
Junior Member
Join Date: Oct 2016
Location: Germany
Old 07-07-2017 , 07:11   Re: Bhop timer
Reply With Quote #2

I'm pretty sure, that cksurf is working for a bhop server.
Bl4CkGuuN is offline
Mr.kevin12
Junior Member
Join Date: Aug 2016
Old 07-07-2017 , 13:04   Re: Bhop timer
Reply With Quote #3

Quote:
Originally Posted by Bl4CkGuuN View Post
I'm pretty sure, that cksurf is working for a bhop server.
Map damage not working with cksurf :/ and cant find a way to turn it on
Mr.kevin12 is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 07-07-2017 , 13:36   Re: Bhop timer
Reply With Quote #4

Quote:
Originally Posted by Mr.kevin12 View Post
Map damage not working with cksurf :/ and cant find a way to turn it on
Try:
Remove line 2003 in cksurf.sp
Code:
	HookEvent("player_hurt", Event_OnPlayerHurt);
Remove lines 483-499 in /cksurf/hooks.sp
Code:
// PlayerHurt 
public Action Event_OnPlayerHurt(Handle event, const char[] name, bool dontBroadcast)
{
	if (!GetConVarBool(g_hCvarGodMode) && GetConVarInt(g_hAutohealing_Hp) > 0)
	{
		int client = GetClientOfUserId(GetEventInt(event, "userid"));
		int remainingHeatlh = GetEventInt(event, "health");
		if (remainingHeatlh > 0)
		{
			if ((remainingHeatlh + GetConVarInt(g_hAutohealing_Hp)) > 100)
				SetEntData(client, FindSendPropInfo("CBasePlayer", "m_iHealth"), 100);
			else
				SetEntData(client, FindSendPropInfo("CBasePlayer", "m_iHealth"), remainingHeatlh + GetConVarInt(g_hAutohealing_Hp));
		}
	}
	return Plugin_Continue;
}
And recompile. Should solve that problem.

Edit: This also might interest you for course maps: https://forums.alliedmods.net/showth...44#post2481744
__________________

Last edited by sneaK; 07-07-2017 at 13:39.
sneaK is offline
Bl4CkGuuN
Junior Member
Join Date: Oct 2016
Location: Germany
Old 07-08-2017 , 18:08   Re: Bhop timer
Reply With Quote #5

Quote:
Originally Posted by Mr.kevin12 View Post
Map damage not working with cksurf :/ and cant find a way to turn it on
It should be easier with this two CVars

Code:
// Sets HP amount for autohealing (requires ck_godmode 0)
// -
// Default: "50"
// Minimum: "0.000000"
// Maximum: "100.000000"
ck_autoheal "50"
and
// on/off - unlimited hp
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
ck_godmode "1"
Just disable both.
__________________
Bl4CkGuuN 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 17:08.


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