Raised This Month: $51 Target: $400
 12% 

[SOLVED] Reverse KnockBack As Adrenaline Boost


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 10-31-2015 , 11:12   [SOLVED] Reverse KnockBack As Adrenaline Boost
Reply With Quote #1

As title says i am trying to use Knockback in the Reverse way and make it act like adrenaline boost..

Now the problem is how do i use it ? i havent worked on Entities before and have literally no idea.

Any help would be appreciated.


Update :

Easier Solution : Use pev_velocity !
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then

Last edited by devilicioux; 10-31-2015 at 11:38. Reason: Added solution.
devilicioux is offline
Old 10-31-2015, 11:35
devilicioux
This message has been deleted by devilicioux. Reason: Found solution and added to post itself
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 10-31-2015 , 22:00   Re: [SOLVED] Reverse KnockBack As Adrenaline Boost
Reply With Quote #2

Can you post the Code please?
Syturi0 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-01-2015 , 12:24   Re: [SOLVED] Reverse KnockBack As Adrenaline Boost
Reply With Quote #3

If I understood correctly, VelocityByAim should be what you need.
__________________

Last edited by HamletEagle; 11-01-2015 at 12:25.
HamletEagle is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 11-01-2015 , 12:26   Re: [SOLVED] Reverse KnockBack As Adrenaline Boost
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
If I understood correctly, VelocityByAim should be what you need.
Can you give me an example on how to use it?
Syturi0 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-01-2015 , 15:29   Re: [SOLVED] Reverse KnockBack As Adrenaline Boost
Reply With Quote #5

For others looking for the same:

Adjust the 1000 value to change the amount of velocity. This is using the engine module.
PHP Code:
new Float:fRetVal];
VelocityByAimid 1000 fRetVal );
entity_set_vectorid EV_VEC_velocity fRetVal ); 
__________________

Last edited by Bugsy; 11-01-2015 at 15:39.
Bugsy is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 11-01-2015 , 19:52   Re: [SOLVED] Reverse KnockBack As Adrenaline Boost
Reply With Quote #6

Quote:
Originally Posted by Bugsy View Post
For others looking for the same:

Adjust the 1000 value to change the amount of velocity. This is using the engine module.
PHP Code:
new Float:fRetVal];
VelocityByAimid 1000 fRetVal );
entity_set_vectorid EV_VEC_velocity fRetVal ); 
That way it resets and just puts the player on 1000 Velocity.
How can i make it so it ADD Velocity, for example

VelocityByAim(id, 1000, fRetVal)
Player is at 1300 Velocity, then he uses the thing he goes to 2300.
Syturi0 is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 11-05-2015 , 05:42   Re: [SOLVED] Reverse KnockBack As Adrenaline Boost
Reply With Quote #7

Quote:
Originally Posted by Syturi0 View Post
That way it resets and just puts the player on 1000 Velocity.
How can i make it so it ADD Velocity, for example

VelocityByAim(id, 1000, fRetVal)
Player is at 1300 Velocity, then he uses the thing he goes to 2300.
You can store players current speeds in array ..and keep track of current speed / increase or decrease .. however you want ..
You will end up something like

PHP Code:
VelocityByAim(idg_CurrSpeed[id], fRetVal
Store current speed or do the necessary manipulations on g_CurrSpeed[] array.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 01-05-2016 , 23:39   Re: [SOLVED] Reverse KnockBack As Adrenaline Boost
Reply With Quote #8

Yo devilicioux, can you post the full code of your plugin? Thank you.
Syturi0 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 04:17.


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