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

Block Wallhack v8 [CS & CZ]


Post New Thread Reply   
 
Thread Tools Display Modes
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 08-23-2009 , 06:19   Re: Block Wallhack v1.5
Reply With Quote #81

PHP Code:
if (ducking[ent])

{

for (new 
i=0;i<8;i++)

{

xs_vec_add(vec_points_crouching[i], originend)

if (
is_point_visible(startendhost))
return 
FMRES_IGNORED

}


for (
i=8;i<16;i++)

{
xs_vec_mul_scalar(vec_points_crouching[i-8], 0.5addict)
xs_vec_add(addictoriginend)

if (
is_point_visible(startendhost))
return 
FMRES_IGNORED
}

}  

else
{
for (new 
i=0;i<8;i++)
{

xs_vec_add(vec_points_standing[i], originend)
if (
is_point_visible(startendhost))
return 
FMRES_IGNORED
}


for (
i=8;i<16;i++)

{
xs_vec_mul_scalar(vec_points_standing[i-8], 0.5addict)
xs_vec_add(addictoriginend)
if (
is_point_visible(startendhost))
return 
FMRES_IGNORED
}


I am a C++ scripter so first i dind't read xs_vec_add ,etc ;)

Also , good job ;)
__________________
Http://pirvu.mybrute.com <- Try my BRUTE! If you dare!

Last edited by pirvu; 08-23-2009 at 06:21.
pirvu is offline
Send a message via Yahoo to pirvu Send a message via Skype™ to pirvu
Old 08-23-2009, 06:20
pirvu
This message has been deleted by pirvu. Reason: Server Internal Error :(
h010c
Member
Join Date: Aug 2009
Location: Mother Russia, Moscow
Old 08-23-2009 , 13:40   Re: Block Wallhack v1.5
Reply With Quote #82

Test with real players was not very optimistic.
24 players of 32 - ping raised from 20 to 80, from 50 to 150

But I must say that my server has some other "heavy" plugins. CSDM + itemmod + sentryguns + lasermines + monstermod + something else, and all are slightly modified to be more "heavy". Probably a default installation of amxmodx with this plugin would run fine.
h010c is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-23-2009 , 14:00   Re: Block Wallhack v1.5
Reply With Quote #83

Quote:
Originally Posted by h010c View Post
Test with real players was not very optimistic.
24 players of 32 - ping raised from 20 to 80, from 50 to 150

But I must say that my server has some other "heavy" plugins. CSDM + itemmod + sentryguns + lasermines + monstermod + something else, and all are slightly modified to be more "heavy". Probably a default installation of amxmodx with this plugin would run fine.
I am not surprised by this result.
I will try to improve the newer versions to work on less point checks.
Anyway the plugins that you have posted above are trully heavy. You really have a big server (as plugins I must say). You need a lot of CPU/memory to handle such a biggie.

Thanks for testing it!
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 08-23-2009 , 14:59   Re: Block Wallhack v1.5
Reply With Quote #84

ive never seen a c++ programmer who didnt indent his code :O
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 08-23-2009 , 15:08   Re: Block Wallhack v1.5
Reply With Quote #85

Quote:
Originally Posted by SchlumPF* View Post
ive never seen a c++ programmer who didnt indent his code :O

First of all i didn't look at that function so well
Second i was in a hurry
Third .. i often see that you Amxx Scripters don't try to optimize codes cuz you don't care about execution time ,etc

And i posted another one ... he didn't look at it ..

Also .. From 8 points can it be made to 4 ?

Like the parallelepiped ABCDEFGH.. to check just BDEG first diagonal up and second down
Cuz it's less probably to see Point A and not B or D or E

Just an idea ;)
__________________
Http://pirvu.mybrute.com <- Try my BRUTE! If you dare!

Last edited by pirvu; 08-23-2009 at 15:16.
pirvu is offline
Send a message via Yahoo to pirvu Send a message via Skype™ to pirvu
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-23-2009 , 15:44   Re: Block Wallhack v1.5
Reply With Quote #86

Quote:
Originally Posted by pirvu View Post
First of all i didn't look at that function so well
Second i was in a hurry
Third .. i often see that you Amxx Scripters don't try to optimize codes cuz you don't care about execution time ,etc

And i posted another one ... he didn't look at it ..

Also .. From 8 points can it be made to 4 ?

Like the parallelepiped ABCDEFGH.. to check just BDEG first diagonal up and second down
Cuz it's less probably to see Point A and not B or D or E

Just an idea ;)
The code you edited above, still not a good suggestion.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 08-23-2009 at 19:53.
ot_207 is offline
Pamaliska
Senior Member
Join Date: Apr 2006
Location: Edinburgh, UK
Old 08-23-2009 , 15:47   Re: Block Wallhack v1.5
Reply With Quote #87

Quote:
That is what the plugin is suposed to do when we talk about wallhacks.
You don't get it. Players disapper before they reach a cover. If that is what you want it to do, then fine. I think it is an unintended feature
Pamaliska is offline
h010c
Member
Join Date: Aug 2009
Location: Mother Russia, Moscow
Old 08-23-2009 , 16:43   Re: Block Wallhack v1.5
Reply With Quote #88

Quote:
Originally Posted by Pamaliska View Post
You don't get it. Players disapper before they reach a cover.
http://www.youtube.com/watch?v=r3gvnQ7qenY
May be this is your problem ?
h010c is offline
Pamaliska
Senior Member
Join Date: Apr 2006
Location: Edinburgh, UK
Old 08-24-2009 , 10:38   Re: Block Wallhack v1.5
Reply With Quote #89

Not it's not, because it's a default cvar value. I've noticed other players have the same problem when I was spectating them.
Pamaliska is offline
turshija
Member
Join Date: Jan 2009
Old 08-24-2009 , 17:10   Re: Block Wallhack v1.5
Reply With Quote #90

Can you check if player is moving forward or backward or strafing left - right ?
because you can optimize code by checking only half of the points ...

Dunno if it could work, but something like this (ill try to explain lol):



lets say this is player when we look from the top ...
(i've put only 4 points to make this simpler)

so here are few possible thigs:

lets say player is moving forward:
if player is visible, then we can just check for point 3 and 4, and when these 2 points become invisible, player went behind the wall ...
if player is not visible, then keep checking for points 1 and 2 until they become visible ... if they do, player just ran into our sight ...

and then you can separate that into 4 categories:
-player moving forward
-player moving backwards
-player strafing left
-player strafing right

for each category you check different points ...

I have no idea if anyone can understand what I wrote (lol) and I have no idea if that could work better than current calculations, but maybe it should work coz you are checking less points ...
turshija 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:13.


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