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

[CSGO] Find velocity of weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 08-21-2018 , 07:47   [CSGO] Find velocity of weapon
Reply With Quote #1

I cannot seem to find the velocity of a dropped weapon. I take the weapon ID from the cstrike forward of dropped weapon and create a timer to check every 0.1 seconds its speed. The result is a random constant velocity always being taken when I use GetEntPropVector(weapon, Prop_Data, "m_vecVelocity", Velocity);

What function, netprop or else am I looking for in such a situation?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 08-21-2018 , 10:26   Re: [CSGO] Find velocity of weapon
Reply With Quote #2

Are you sure that speed is very different each 0.1 sec?
because for now i dont see your problem, vecVelocity should changes every timer check
this is normal
I use this for cluster grenades for hegrenade, i check vecVelocity with nextframe after throwing

Last edited by Indarello; 08-21-2018 at 10:46.
Indarello is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 08-21-2018 , 11:08   Re: [CSGO] Find velocity of weapon
Reply With Quote #3

Quote:
Originally Posted by Indarello View Post
Are you sure that speed is very different each 0.1 sec?
because for now i dont see your problem, vecVelocity should changes every timer check
this is normal
I use this for cluster grenades for hegrenade, i check vecVelocity with nextframe after throwing
Velocity changes every frame if not zero. It's a constant. Meaning that as I said once thrown. The timer no matter how much times it repeats will give like 249.6, 23.1, 84.0. And these values repeat.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 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 03:11.


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