Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Something like velocity_by_aim ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-21-2017 , 00:50   Re: [ H3LP ] Something like velocity_by_aim ?
Reply With Quote #6

Left is negative , right is positive
PS : this idea is similar to call of duty advance warfare player boost jump

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Velocity By Side"
#define VERSION "1.0"
#define AUTHOR "Natsheh"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /goRight""clcmd_right")
    
register_clcmd("say /goLeft""clcmd_left")
}

public 
clcmd_right(id)
{
    new 
Float:vVelo[3];
    
fm_velocity_byside(id400vVelo)
    
set_pev(idpev_velocityvVelo)
    
client_print(idprint_chat"* Boost Right.")
}

public 
clcmd_left(id)
{
    new 
Float:vVelo[3];
    
fm_velocity_byside(id, -400vVelo)
    
set_pev(idpev_velocityvVelo)
    
client_print(idprint_chat"* Boost Left.")
}

/* Credits TO VEN */
stock fm_velocity_byside(indexmultiplierFloat:velocity[3])
{
    new 
Float:vec[3]
    
pev(indexpev_v_anglevec)
    
engfunc(EngFunc_MakeVectorsvec)
    
global_get(glb_v_rightvec)
    
    
velocity[0] = vec[0] * multiplier
    velocity
[1] = vec[1] * multiplier
    velocity
[2] = vec[2] * multiplier

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 04-21-2017 at 08:13.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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 17:59.


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