Detect if player faces a wall & player
#1

I am working on an anti ammo hack, which will also detect if a player is facing and standing against a wall or player, to prevent false ammo hack warnings. But I have no idea how.

So my question is:
How can I detect if a player faces the wall (if he presses the fire key. You know if you face the wall and you try to shoot it won't shoot ofcourse), and how can I detect if a player faces another player (You know if you face a player and you try to shoot, it will punch him/her).

Thanks
Reply
#2

There's no way to do that (Except getting all wall coordinate).
That's why I make a suggestion about OnPlayerLOSPLayer but it's being ignored and unsupported.
Reply
#3

Quote:
Originally Posted by =WoR=Varth
Посмотреть сообщение
There's no way to do that (Except getting all wall coordinate).
That's why I make a suggestion about OnPlayerLOSPLayer but it's being ignored and unsupported.
That sucks..
If the HOLDING key worked, then I wouldn't even need this.
Reply
#4

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
That sucks..
If the HOLDING key worked, then I wouldn't even need this.
pawn Код:
#define HOLDING(%0) \
    ((newkeys & (%0)) == (%0))
Doesn't works?
Reply
#5

Quote:
Originally Posted by =WoR=Varth
Посмотреть сообщение
pawn Код:
#define HOLDING(%0) \
    ((newkeys & (%0)) == (%0))
Doesn't works?
I meant, if players press FIRE it will say they are hacking immediately, because it's detecting it before they even shoot. But when I use timers, there's a chance they realised the FIRE Key already and will give another false warning.
Reply
#6

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
I meant, if players press FIRE it will say they are hacking immediately, because it's detecting it before they even shoot. But when I use timers, there's a chance they realised the FIRE Key already and will give another false warning.
Take a look at OPSP include, maybe that can help you.
Reply
#7

Or better, just start using 0.3d, which contains the function itself. Also, 0.3d will replace 0.3c soon, so I don't see a point in making a 0.3c script.
Reply
#8

Quote:
Originally Posted by [MWR]Blood
Посмотреть сообщение
Or better, just start using 0.3d, which contains the function itself. Also, 0.3d will replace 0.3c soon, so I don't see a point in making a 0.3c script.
Certainly you are right, but I do wish to have a bugless version for my players.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)