Monthly Target: $400 Donations: $355
 88%   Almost there!

LongJump Enabler


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Exolent[jNr] (179)
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-04-2009 , 16:37   LongJump Enabler
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (longjump.sma - 9227 views - 3.7 KB)
File Type: sma Get Plugin or Get Source (longjump_no_cvars.sma - 5468 views - 2.9 KB)
__________________
- tired and retired -

Last edited by ConnorMcLeod; 01-28-2010 at 12:05.
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-04-2009 , 16:38   Re: LongJump Enabler
Reply With Quote #2

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.
Attached Files
File Type: sma Get Plugin or Get Source (longjump(orpheu).sma - 2171 views - 6.6 KB)
File Type: zip CBasePlayer_SetAnimation.zip (2.5 KB, 1058 views)
__________________
Working on : CS Weapon Mod (72%) , MonsterAI (PAUSED),


Last edited by Arkshine; 01-29-2010 at 06:50. Reason: Updated 1.0.1 ; and fixed a typo.
Arkshine is offline
xPaw
AMX Mod X Moderator
Join Date: Jul 2008
Old 11-05-2009 , 07:45   Re: LongJump Enabler
Reply With Quote #3

fVecTemp[2] = 299.33259094191531084669989858532
wth?
__________________
xPaw is offline
Exolent[jNr]
AMX Mod X Moderator
Join Date: Feb 2007
Location: Tennessee
Old 11-05-2009 , 10:46   Re: LongJump Enabler
Reply With Quote #4

Quote:
Originally Posted by xPaw View Post
fVecTemp[2] = 299.33259094191531084669989858532
wth?
Could be a constant z-velocity for the longjump.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xPaw
AMX Mod X Moderator
Join Date: Jul 2008
Old 11-05-2009 , 11:37   Re: LongJump Enabler
Reply With Quote #5

I understand what its 299.3, but why he really needs such huuuge number
__________________
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-05-2009 , 12:47   Re: LongJump Enabler
Reply With Quote #6

He wanted just to write the most precise value for "sqrt(2 * 800 * 56.0)" ; but that's true it's not really necessary.
__________________
Working on : CS Weapon Mod (72%) , MonsterAI (PAUSED),

Arkshine is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 11-05-2009 , 12:57   Re: LongJump Enabler
Reply With Quote #7

It isn't any more exact than 299.33259, so it shouldn't be used anyway.
SnoW is offline
Send a message via MSN to SnoW
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-05-2009 , 12:59   Re: LongJump Enabler
Reply With Quote #8

Whooaa, who cares.~
__________________
Working on : CS Weapon Mod (72%) , MonsterAI (PAUSED),

Arkshine is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 11-05-2009 , 13:02   Re: LongJump Enabler
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
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.
SnoW is offline
Send a message via MSN to SnoW
xPaw
AMX Mod X Moderator
Join Date: Jul 2008
Old 11-05-2009 , 14:03   Re: LongJump Enabler
Reply With Quote #10

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
__________________
xPaw is offline
Reply


Thread Tools
Display Modes

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 14:52.


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