AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Long Jump + Bunny Hop (https://forums.alliedmods.net/showthread.php?t=49466)

GHW_Chronic 01-04-2007 21:17

Long Jump + Bunny Hop
 
16 Attachment(s)
  • All your jumps are now long jumps. They resemble the long jumps in Super Mario 64. As well I added in a CVAR to allow bunny hopping.

CVARs:
  • longjump_on
    • 1=on 0=off (Default: 1)
  • longjump_speed
    • speed at which you jump (Default: 500.0)
  • longjump_bhop
    • Bunny Hopping on - 1=on 0=off (Default: 0)

Requires CHR_Engine Stocks. (So download .amxx file instead of using the "Get Plugin" link.)
_

godlike 01-05-2007 11:55

Re: Long Jump
 
Nice im happy to see another jump plugin there allways awesome.
Just use the jump button to do a longjump?

GHW_Chronic 01-05-2007 12:27

Re: Long Jump
 
yes

Jamakl 01-05-2007 14:16

Re: Long Jump
 
Really Really Nice!
Approve It!
+Karma!

*Edit*
Do you have to run to jump?

Zenith77 01-05-2007 15:35

Re: Long Jump
 
Instead of using set_task(), why not do something like this:

Code:
new bool:gSetSpeed[33]; public FM_PreThink(id) {     if(get_pcvar_num(toggle_pcvar) && (pev(id,pev_button) & IN_JUMP) && !(pev(id,pev_oldbuttons) & IN_JUMP) && (pev(id,pev_flags) & FL_ONGROUND))         gSetSpeed[id] = true; } public FM_PostThink(id) {     if (gSetSpeed[id])     {            gSetSpeed[id] = false;         set_speed(id,get_pcvar_float(speed_pcvar))     } }

I don't know, maybe it's just personal preference.

stupok 01-05-2007 22:38

Re: Long Jump
 
I tested this in The Specialists, and when you set the speed to something high like 10000.0, the client is sometimes launched in a slight angle away from where the client is aiming, depending on which way the client is facing on the map. I made sure not to turn the mouse or push A or D, so the speed should be straight ahead.

It's not a big issue, but I don't think this should happen at all.

GHW_Chronic 01-06-2007 04:05

Re: Long Jump
 
because this doesnt throw u in the direction that you are aiming, this throws you in the direction that your jump sends you. This literally only magnifies your jump speed. I can change to the way your cursor is looking though.

edit: updated the plugin to do above.
edit2: found bug, updated latest plugin at 5:48 AM EST 1/6/07

stupok 01-06-2007 16:26

Re: Long Jump
 
What I was trying to say is that I hold down the forward key, get up to speed, and push jump. I make sure not to move the mouse or be on a slanted surface or press any other directional keys. When I do this the jump is sometimes straight ahead, but if I face a different direction and repeat the process the jump is slightly off. I think it might have to do with your set_speed function, or the user's jump velocity just isn't straight ahead...

I think the jump should be in line with the user's current velocity, not where the client is aiming, but do as you wish.

GHW_Chronic 01-06-2007 18:07

Re: Long Jump
 
my set_speed function as it was before only multiplies the users current velocity by a number. Multiplies both X and Y by the same number. So in no way could any offset be my function's fault. But i tested it with the current jump type and it seems fun.

Trent-Resnor 01-10-2007 09:13

Re: Long Jump
 
Great Plugin Chronic!


All times are GMT -4. The time now is 07:16.

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