AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Slap Height (https://forums.alliedmods.net/showthread.php?t=205250)

Diegorkable 01-08-2013 14:25

Slap Height
 
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?

AngeIII 01-08-2013 14:49

Re: Slap Height
 
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

Diegorkable 01-08-2013 15:06

Re: Slap Height
 
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?

Diegorkable 01-08-2013 16:28

Re: Slap Height
 
nevermind i got it.


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

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