Raised This Month: $ Target: $400
 0% 

AIMing detector .. ADVANCED FF


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KaOs
Senior Member
Join Date: Apr 2004
Old 04-02-2005 , 23:09   AIMing detector .. ADVANCED FF
Reply With Quote #1

I want to create a plugin that will NOT allow a user to shoot if he is aiming at a teammate..

The way I figured to do this, get_user_origin() and get_user_aiming() .. somehow..

But what message is user shot or something like that? Or even better, before a user shoots?
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-02-2005 , 23:46  
Reply With Quote #2

There is no such thing.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
amxxsean
Member
Join Date: Feb 2005
Old 04-03-2005 , 00:14  
Reply With Quote #3

Dunno, complete noob here but what about the HUD message, like FRIENDLY: or Friend: or whatever.
__________________
DID SOMEBODY DIAL TEH AWPERAT0RZ?
www.awpz.tk
NOW ACCEPTING MEMBERS!
amxxsean is offline
KaOs
Senior Member
Join Date: Apr 2004
Old 04-03-2005 , 00:35  
Reply With Quote #4

There's absolutely no way to call a function when a user shoots? That's pathetic
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 04-03-2005 , 03:01  
Reply With Quote #5

client_PreThink -> IN_ATTACK -> check reload state etc etc if you use get_user_button and not get_user_oldbutton it should call before the shot is fired. I think that's correct.
__________________
twistedeuphoria is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-03-2005 , 12:12  
Reply With Quote #6

No, that will be called when they are pressing FIRE button. They could be holding the button when its on semi, they could be between full auto firing sequences, etc etc.

There is no real good way to get when a bullet comes out of the players gun, because the FM trace_line doesnt work apparently.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 04-03-2005 , 13:02  
Reply With Quote #7

I believe if you are holding down the button it repeatedly sends the button throughout the time you hold it down. While that would be overkill if they are just holding down on a semi it would solve the automatic problem and overkill is better than not working completely.
__________________
twistedeuphoria is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-03-2005 , 13:38  
Reply With Quote #8

Not working properly is not working at all.

Also, in the HL SDK, things like the mp5, full auto so to speak, do NOT repeatedly send the button, they do something like this:

Code:
button_pressed_at = game_time() + 0.5
and then make it fire again as soon as button_pressed_at is below game_time();

So, your method is really really flawed.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 04-03-2005 , 14:43  
Reply With Quote #9

Ah, I see. It was worth a shot.
__________________
twistedeuphoria is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-03-2005 , 15:29  
Reply With Quote #10

Quote:
Originally Posted by Twilight Suzuka
FM trace_line doesnt work apparently.
Certainly works for me.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 10:01.


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