Detect if player faces a wall & player -
Biesmen - 25.10.2011
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
Re: Detect if player faces a wall & player -
=WoR=Varth - 25.10.2011
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.
Re: Detect if player faces a wall & player -
Biesmen - 25.10.2011
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.
Re: Detect if player faces a wall & player -
=WoR=Varth - 25.10.2011
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?
Re: Detect if player faces a wall & player -
Biesmen - 25.10.2011
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.
Re: Detect if player faces a wall & player -
=WoR=Varth - 25.10.2011
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.
Re: Detect if player faces a wall & player -
[MWR]Blood - 25.10.2011
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.
Re: Detect if player faces a wall & player -
Biesmen - 25.10.2011
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.