Raised This Month: $ Target: $400
 0% 

Jump Height Modifier


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 09-17-2012 , 20:13   Jump Height Modifier
Reply With Quote #1

I just meshed up this lil code to increase the players jump height when he jumps,
I was wondering if this would work (cant test it myself for the moment).
(raising the players jump height with lowering the gravity for him is not an option.)
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
 
#define PLUGIN "Jump height modifier"
#define VERSION "0.0.1"
#define AUTHOR "striker07"
 
public plugin_init()
{
     
register_plugin(PLUGINVERSIONAUTHOR);
 
     
RegisterHam(Ham_Player_Jump"player""fwdPlayerJump");
}
public 
fwdPlayerJump(id)
{
     if(!(
pev(idpev_flags) & FL_ONGROUND))
     {
          static 
Float:velocity[3];
          
pev(idpev_velocityvelocity);
 
          
velocity[2] = velocity[2] * (0.1 levelvariable)
 
          
set_pev(idpev_velocityvelocity)
     }

__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
 



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 08:12.


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