OnPlayerShootPlayer (90% Accurate) v1 - [S]trong - 04.09.2011
Download:
http://solidfiles.com/d/cfb1c/download/ (for loop players)
http://solidfiles.com/d/7e541/download/ (foreach fast)
Pastebin:
http://pastebin.com/Y3PhJ0B2
Video
Wait ..
Plug and Play:
Use:
pawn Код:
#include playershoot
public OnPlayerShootPlayer(shootid, playerid, Float:health, wep)
{
return true;
}
- Note:
The pos
z being arranged
Credits
Created by Bruno da Silva (yes, he is drakins)
Thanks to [S]trong (Robson, me) and CyNiC (Allan Jader)
Thanks
Re: OnPlayerShootPlayer (90% Accurate) v1 - [S]trong - 04.09.2011
Version with bForeach (fasthest):
-
http://solidfiles.com/d/7e541/download/
(From
BSI, Sorry Double-Post)
- [S]trong
Re: OnPlayerShootPlayer (90% Accurate) v1 - Double-O-Seven - 04.09.2011
Why the bloody devil are you IPS guys always claiming that your scripts are the fastest?
And this without real evidence?
Re: OnPlayerShootPlayer (90% Accurate) v1 -
FireCat - 04.09.2011
Quote:
Originally Posted by Double-O-Seven
Why the bloody devil are you IPS guys always claiming that your scripts are the fastest?
And this without real evidence?
|
+1
Re: OnPlayerShootPlayer (90% Accurate) v1 - [S]trong - 04.09.2011
If the project is fast, put when is fast
(In this topic, did not talk about speed)
__
Quote:
And this without real evidence?
|
If you are talking about foreach, admit. Not It is better than the foreach ****** (few functions), BUT has the SAME speed to while
Re: OnPlayerShootPlayer (90% Accurate) v1 - Double-O-Seven - 04.09.2011
Another comment:
Have you ever heard of GetPlayerCameraFrontVector function? This would make the whole thing much more accurate instead of just checking angles and position.
Take a look at
wups' OnPlayerShootPlayer which is a very good and efficient implementation of this.
Re: OnPlayerShootPlayer (90% Accurate) v1 - [S]trong - 04.09.2011
The accurate of include OnPlayerShootPlayer from wups was around 30% (yes CyNiC and DraKiNs tests with me)
Therefore it is not as efficient GetPlayerFromCameraVector (only efficient if correct best use)
Re: OnPlayerShootPlayer (90% Accurate) v1 -
Bakr - 04.09.2011
Quote:
Originally Posted by [S]trong
The accurate of include OnPlayerShootPlayer from wups was around 30% (yes CyNiC and DraKiNs tests with me)
Therefore it is not as efficient GetPlayerFromCameraVector (only efficient if correct best use)
|
Then I strongly consider you getting more reliable "tests" (that goes for the speed tests as well).
Re: OnPlayerShootPlayer (90% Accurate) v1 - [S]trong - 04.09.2011
I've done tests, it is faster than the include wups. (wups calculations are more accurate, but the lag messed up)
Note the code it is uses small snippet of code and few loops
Re: OnPlayerShootPlayer (90% Accurate) v1 -
wups - 04.09.2011
Quote:
Originally Posted by [S]trong
I've done tests, it is faster than the include wups. (wups calculations are more accurate, but the lag messed up)
Note the code it is uses small snippet of code and few loops
|
It's not the includes' problem, that your server is lagging.
Re: OnPlayerShootPlayer (90% Accurate) v1 - [S]trong - 04.09.2011
Quote:
Originally Posted by wups
It's not the includes' problem, that your server is lagging.
|
the others servers too?
Look
http://forum.sa-mp.com/showpost.php?...0&postcount=12
http://forum.sa-mp.com/showpost.php?...9&postcount=10
Re: OnPlayerShootPlayer (90% Accurate) v1 -
steki. - 04.09.2011
To be honest, I haven't ever had problem with wups' OPSP. I'll try to make one and let's test it all
Re: OnPlayerShootPlayer (90% Accurate) v1 -
Bakr - 04.09.2011
Quote:
Originally Posted by [S]trong
|
No way! The possibility of two servers having lag issues in SA:MP?! That's out of this world!
Also, at least translate it if you're going to be posting that "proof".
Re: OnPlayerShootPlayer (90% Accurate) v1 - [S]trong - 04.09.2011
StrondA:
Quote:
No No, nothing to see, the include is great, because a LAG OnPlayerUpdate of hell!
|
Strong:
Quote:
I tested include the wups, gave a lot of lag and because of this we OnPlayerShootPlayer fumbled, leading to an accuracy of 30%.
All in all, I admire the calculations made by wups, must have given work, he just needed to be implemented correctly.
|
Re: OnPlayerShootPlayer (90% Accurate) v1 - Double-O-Seven - 04.09.2011
Quote:
Originally Posted by Bakr
No way! The possibility of two servers having lag issues in SA:MP?! That's out of this world!
Also, at least translate it if you're going to be posting that "proof".
|
His only showing a post he posted himself. Where is the "proof"?
Re: OnPlayerShootPlayer (90% Accurate) v1 -
Scenario - 04.09.2011
I don't understand why kiddo's come here and claim they have made better and faster scripts than what is already out there. Especially here, claiming they have written a faster version of foreach- how the hell is that possible? I think ****** would know more than some idiot who just wants to seem cool. Yet... people argue that ****** is wrong all the time, and, from what I've seen, he isn't.
Now seriously kid, get a life.
Re: OnPlayerShootPlayer (90% Accurate) v1 - [S]trong - 04.09.2011
Test yourself, I did not get
particularly good results using that include wups, the include of Bruno's was perfect, except the possible exceptions of Z ..
No one here spoke of foreach is faster than the *****,
creature,
foreach of ****** is best better foreach of bruno, but the velocity of execution is
SAME
They did not like the job? I do not see any error
RealCop228: What? Stupid, learn to have respect before heading to me this way
Re: OnPlayerShootPlayer (90% Accurate) v1 -
CyNiC - 04.09.2011
Only participated in some testing helps the developer to find fault, it is faster than previously done, I can not say. Only say it is effective.
Re: OnPlayerShootPlayer (90% Accurate) v1 -
playbox12 - 04.09.2011
For the love of god, stop using a translator, it annoys the fuck out of me and I don't understand half of what you're saying.
Now I'm not particulary a fan of wup's include, but this is certainly not going to be more accurate. I never really jumped into wup's include but I can see why it might cause lagg, because of the constant calculation under OPU, that might be wrong, but I haven't really checked it. This version might, if my assumption is right, give less server sided lagg, but I atleast want to see proof first, also your calculations are less accurate from a mathmatical point of view.
Re: OnPlayerShootPlayer (90% Accurate) v1 - [S]trong - 04.09.2011
Playerboy: sorry, i do not speak English
Look this for lag/speed tests
http://forum.sa-mp.com/showpost.php?...9&postcount=19
80 playuers, 1000 shoots, 100 ms +-
And i not a iPs guy dude.