Raised This Month: $ Target: $400
 0% 

Make a player jump on a ball (NBA Jam Mod)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 03-27-2011 , 10:32   Make a player jump on a ball (NBA Jam Mod)
Reply With Quote #1

Hello,
I've finished a CS mod called NBAJam where people can play basketball. Players can dribble the ball by throwing it to the ground and jumping over it (ball hop).
The problem is that when I transfered the plugin from my local dedicated server to a public one I noticed that sometimes (maybe 1 in each 6 dribbles) the player isn't able to jump over the ball.
I've stolen the jump code from a bunnyhop plugin:
PHP Code:
if ( !(flags FL_ONGROUND) )
                return 
PLUGIN_CONTINUE
static iOwneriOwner pevg_iBallpev_iuser1 );
                
                new 
Float:velocity[3]
                
entity_get_vector(idEV_VEC_velocityvelocity)
                
velocity[2] += 250.0
                entity_set_vector
(idEV_VEC_velocityvelocity)
                
entity_set_int(idEV_INT_gaitsequence6)    // Play the Jump Animation 
I don't know if this is a lag problem but please help me to solve it. If you didn't understand what I wrote please PM me and I'll give you my server IP so you can test it yourself. Thanks.
__________________

Last edited by mabaclu; 04-10-2011 at 06:57. Reason: Change title
mabaclu 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 14:37.


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