AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   LongJump Enabler (https://forums.alliedmods.net/showthread.php?t=108382)

ConnorMcLeod 11-04-2009 16:37

LongJump Enabler
 
3 Attachment(s)
LongJump (Re)Enabler




.: Description :.

Since last cs update, longjump (item_longjump) is disabled.
This plugin re-enable it.
I hope it was a mistake and that this plugin will be useless in next game update.


.: Modules :.

engine
fakemeta
hamsandwich


.: Changelog :.
Code:

v1.0.1
- added cvars to suit arkshine's version, see 2nd post for cvars description.
cvar longjump_zvelocity doesn't allow null value though.


Arkshine 11-04-2009 16:38

Re: LongJump Enabler
 
2 Attachment(s)
Orpheu v2 version. ( Works under linux and windows )


Cvars :
  • longjump_speed
    Speed of long jump. ( default : "350" )
  • longjump_punchangle
    Punch angle applied when you jump. ( default : "-5" )
  • longjump_minvelocity
    Minimum speed to be able to make a long jump. ( default : "50" )
  • longjump_zvelocity
    The velocity on z axis. It defines the max height of a jump.
    Use it to overwrite the defaut value which is calculated based
    on player's/server gravity. ( default : "0" )

Changelog :

Quote:

v1.0.1 : [ 28 jan 2010 ]
Changed : Adapt the code for the new version of Orpheu. Plugin works now under linux and windows.
Changed : The velocity on z axis is now based by default on player's/server gravity and longjump speed.
Changed : The "slj" physic key value is now used to know it player has a longjump instead of m_fLongJump offset.
Changed : The 'longjump_zvelocity' cvar is no more considerated as the default value. Use it to overwrite the default value.
Added : New 'longjump_minvelocity' cvar to specify the minimum speed to be able to make a long jump.
v1.0.0 : [ 5 nov 2009 ]
Initial release.

Note :
  • After installing Orpheu, you have to overwrite the content of CBasePlayer_SetAnimation.zip in ./configs/orpheu/ directory.

xPaw 11-05-2009 07:45

Re: LongJump Enabler
 
fVecTemp[2] = 299.33259094191531084669989858532
wth?

Exolent[jNr] 11-05-2009 10:46

Re: LongJump Enabler
 
Quote:

Originally Posted by xPaw (Post 981415)
fVecTemp[2] = 299.33259094191531084669989858532
wth?

Could be a constant z-velocity for the longjump.

xPaw 11-05-2009 11:37

Re: LongJump Enabler
 
I understand what its 299.3, but why he really needs such huuuge number :D

Arkshine 11-05-2009 12:47

Re: LongJump Enabler
 
He wanted just to write the most precise value for "sqrt(2 * 800 * 56.0)" ; but that's true it's not really necessary.

SnoW 11-05-2009 12:57

Re: LongJump Enabler
 
It isn't any more exact than 299.33259, so it shouldn't be used anyway.

Arkshine 11-05-2009 12:59

Re: LongJump Enabler
 
Whooaa, who cares.~

SnoW 11-05-2009 13:02

Re: LongJump Enabler
 
Quote:

Originally Posted by Arkshine (Post 981621)
Whooaa, who cares.~

I'm not sure whether or not you understood me. What I meant was that it isn't only not necessary like you said but also useless.

xPaw 11-05-2009 14:03

Re: LongJump Enabler
 
800 i suppose is pev_gravity * sv_gravity ? Then i think it would be more correct to change calcs for different gravity values O.o


All times are GMT -4. The time now is 13:36.

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