Raised This Month: $32 Target: $400
 8% 

Metamod - Bunnyjump plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 04-11-2007 , 13:25   Metamod - Bunnyjump plugin
Reply With Quote #1

Can someone fix this plugin so that the bunnyjump_on cvar actually works? I've tried setting it to 1 and 0 and the bunnyjump effect is on no matter what setting. Also, can you compile it for me(windows), I'm nub in C++.
http://evilspy.1g.fi/files/bunnyjump_source-1.12.zip

I'm no expert but I believe this is what's causing the problem.
cvar_t * bunny_active = NULL; in pm_shared.c
__________________

Last edited by FatalisDK; 04-11-2007 at 13:28.
FatalisDK is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 04-11-2007 , 15:25   Re: Metamod - Bunnyjump plugin
Reply With Quote #2

Quote:
Originally Posted by FatalisDK View Post
Can someone fix this plugin so that the bunnyjump_on cvar actually works? I've tried setting it to 1 and 0 and the bunnyjump effect is on no matter what setting. Also, can you compile it for me(windows), I'm nub in C++.
http://evilspy.1g.fi/files/bunnyjump_source-1.12.zip

I'm no expert but I believe this is what's causing the problem.
cvar_t * bunny_active = NULL; in pm_shared.c
No, that's just the declaration I beleive (from that little code snippet). Make sure you add quotation marks when you set it. Half-Life doesn't respond to well sometimes if you don't.

Example:
bunnyjump_on "1"
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 04-11-2007 , 15:37   Re: Metamod - Bunnyjump plugin
Reply With Quote #3

Tried that, didn't work.
EDIT: Forgot to mention that I'm using CS 1.6
I noticed that when bunnyjump_on is 0, it enables half-life style jumping, and when it's 1, it has half-life style jumping and disables PreventMegaBunnyJumping. I need bunnyjump_on 0 to have CS 1.6 style, and bunnyjump_on 1 to have hl+disable PreventMegaBunnyJumping.

I think something like this would fix it. (dllapi.cpp)

Change this:
Code:
void PluginPM_Move(struct playermove_s *ppmove, int server)
{
	PM_Move (ppmove,server);
	RETURN_META(MRES_SUPERCEDE);	//Prevents gamedll's PM_Move to be called
}

void PluginPM_Init(struct playermove_s *ppmove)
{
	PM_Init (ppmove);
	RETURN_META(MRES_SUPERCEDE);	//Prevents gamedll's PM_Move to be called
}
To something like this:
Code:
void PluginPM_Move(struct playermove_s *ppmove, int server)
{
	if ( bunny_active->value > 0.001f )
	{
		PM_Move (ppmove,server);
		RETURN_META(MRES_SUPERCEDE);	//Prevents gamedll's PM_Move to be called
	}
}

void PluginPM_Init(struct playermove_s *ppmove)
{
	if ( bunny_active->value > 0.001f )
	{
		PM_Init (ppmove);
		RETURN_META(MRES_SUPERCEDE);	//Prevents gamedll's PM_Move to be called
	}
}

Last edited by FatalisDK; 04-11-2007 at 15:54.
FatalisDK is offline
Old 04-11-2007, 15:50
FatalisDK
This message has been deleted by FatalisDK.
evilspy
Member
Join Date: Jun 2004
Location: Finland
Old 04-11-2007 , 20:36   Re: Metamod - Bunnyjump plugin
Reply With Quote #4

Untested, don't use, no warranty:
http://evilspy.1g.fi/files/bunnyjump_mm-1.13.zip
http://evilspy.1g.fi/files/bunnyjump_source-1.13.zip

Server will mostlikely CRASH if you change bunnyjump_on on fly after map load.
__________________
^^ ^^ ^^ ^^
Metamod-P
- http://metamod-p.sf.net/
evilspy is offline
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 04-12-2007 , 01:04   Re: Metamod - Bunnyjump plugin
Reply With Quote #5

Crashes whenever a client is connected and bunnyjump_on is > 0
__________________
FatalisDK is offline
evilspy
Member
Join Date: Jun 2004
Location: Finland
Old 04-12-2007 , 05:51   Re: Metamod - Bunnyjump plugin
Reply With Quote #6

Well, it was good try...
__________________
^^ ^^ ^^ ^^
Metamod-P
- http://metamod-p.sf.net/
evilspy is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 06-26-2007 , 08:56   Re: Metamod - Bunnyjump plugin
Reply With Quote #7

Doesn't crash on Ancient's TFC servers, at least not constantly (there were a couple of unexplained crashes but it might be caused by other plugins or faulty RAM).

Instead of switching the cvar, perhaps using Metamod commands would work? I haven't tried this as there's no need, but it may help FatalisDK.

http://metamod.org/metamod.html#commands

You can probably do something like

rcon meta load bunny
rcon meta pause bunny
rcon meta unload bunny
rcon meta unpause bunny

(Omit rcon in HLSW and in server cfg.)
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 06-26-2007 at 09:08.
pizzahut is offline
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 11-28-2015 , 15:35   Re: Metamod - Bunnyjump plugin
Reply With Quote #8

Try this! I've recompiled the Metamod plugin and did some quick fixes on why this bjump src code fails to compile on VS 2015:

http://apg-clan.org/vbdownloads.php?...downloadid=747
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster
RoboCop is offline
Send a message via Skype™ to RoboCop
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:40.


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