Raised This Month: $ Target: $400
 0% 

Weapon Prestrafe


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ex3cuTioN
Member
Join Date: May 2010
Old 07-13-2010 , 07:21   Weapon Prestrafe
Reply With Quote #1

How can i calculate the max prestrafe for a weapon?

Knife's max prestrafe is 299.999 (usp,deagle) maxspeed 250.
Ex3cuTioN is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 07-13-2010 , 07:39   Re: Weapon Prestrafe
Reply With Quote #2

By prestrafe you mean when you keep the W key pressed and tap fast on the D or A key?
Or the velocity that a user can get when holding W with A or D keys pressed?
I do not think that there is a formula you just need to measure the speed and compare it with the maxspeed of that weapon.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Ex3cuTioN
Member
Join Date: May 2010
Old 07-13-2010 , 07:41   Re: Weapon Prestrafe
Reply With Quote #3

What can you understand from this...

if((pev( id, pev_maxspeed ) * 1.2)>prestrafe[id])

EDIT :

I know now :d

try this shit 300/250=1.2

scout: 260*1.2=312

Last edited by Ex3cuTioN; 07-13-2010 at 07:45.
Ex3cuTioN is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-13-2010 , 15:35   Re: Weapon Prestrafe
Reply With Quote #4

I think it's rather an engine limitation, that when you are >= 300 consider that your speed is 250 to calculate how you gonna jump.
Let xolent answer to this because he should be documented about it
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 07:06.


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