Raised This Month: $ Target: $400
 0% 

Slap Height


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 01-08-2013 , 14:25   Slap Height
Reply With Quote #1

Hey guys

Is there a possible way to set the height of a slap? for example, when I do user_slap it slaps the player to a random direction and to not such a high place. Can I make for example, some type of mega slap, where it slaps the player really really high?
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 01-08-2013 , 14:49   Re: Slap Height
Reply With Quote #2

PHP Code:
public RandomDirection(player) {
    new 
Float:velocity[3]
    
velocity[0] = random_float(-256.0256.0)
    
velocity[1] = random_float(-256.0256.0)
    
velocity[2] = random_float(-256.0256.0)
    
set_pev(playerpev_velocityvelocity)

increase velocity if necessary
__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT

Last edited by AngeIII; 01-08-2013 at 14:50.
AngeIII is offline
Send a message via Skype™ to AngeIII
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 01-08-2013 , 15:06   Re: Slap Height
Reply With Quote #3

let me know if im correct...
velocity has (x,y,z) values of where to kick his ass to? if so, where do I set the height it will kick him too? or speed?
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive

Last edited by Diegorkable; 01-08-2013 at 15:06.
Diegorkable is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 01-08-2013 , 16:28   Re: Slap Height
Reply With Quote #4

nevermind i got it.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
Reply



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 13:42.


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