Raised This Month: $ Target: $400
 0% 

Finding if player is aiming @ teammate...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ThantiK
Senior Member
Join Date: Mar 2004
Location: Orlando, FL
Old 05-27-2004 , 00:49   Finding if player is aiming @ teammate...
Reply With Quote #1

How would I go about finding if a player is aiming at a teammate BEFORE he shoots?

Also, how would I block his shoot event from happening and deal the damage to him?

I'm having problems with a simple mirrordmg because AWP to the head, registers the death event pretty quickly and my spawn protect plugin, and mirrordmg plugin end up letting the user kill his teammate/opponent sometimes.

I'm looking for a way to combat this.

As of right now, I have a mirrordmg plugin that works...but I'd like a more refined one. Im taking dmg and healing the attacked player back and dealing damage to the attacker...

I'd like to be able to not even let the shot happen because AWPs seem to cause the deathevent to happen before dmg event.
__________________
AMXX -- You want control? You got it.
tkwired.com cs 1.6 -- tkwired.com:27016
ThantiK is offline
Send a message via AIM to ThantiK Send a message via MSN to ThantiK
ts2do
Senior Member
Join Date: Mar 2004
Old 05-27-2004 , 10:20  
Reply With Quote #2

of course u could get the damage event and the message arguments with the attacker and victim and use register_message like b4 and set_msg_block( get_user_msgid ( "Damage" ), BLOCK_ONCE )
and all this goes in a register_message ( which is a bit buggy coz it makes my server crash on map change )
ts2do is offline
Send a message via AIM to ts2do
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 05-27-2004 , 10:51  
Reply With Quote #3

get_user_aiming(id,personaimedat,whereheaims, distance)
__________________
My Plugins

Got ??
AssKicR is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 05-27-2004 , 11:00  
Reply With Quote #4

Quote:
Originally Posted by AssKicR
get_user_aiming(id,personaimedat,whereheaims, distance)
wouldn't you have to call that every single frame to do what hes trying to do? using the engine (vexd) native that says it causes lag, heh.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 05-27-2004 , 11:08  
Reply With Quote #5

server_frame or set_task
__________________
My Plugins

Got ??
AssKicR is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 05-27-2004 , 17:34  
Reply With Quote #6

Stay far away from server_frame, unless set_task wouldnt work
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
ThantiK
Senior Member
Join Date: Mar 2004
Location: Orlando, FL
Old 05-27-2004 , 18:29  
Reply With Quote #7

Actually, I think I can try blocking the event. Thats actually what I need.

How would I go about checking and blocking the event? I just want to block it if they're trying to shoot a teammate.

Also, I'm trying to block death so just in case it is teammate, it doesn't kill them.
__________________
AMXX -- You want control? You got it.
tkwired.com cs 1.6 -- tkwired.com:27016
ThantiK is offline
Send a message via AIM to ThantiK Send a message via MSN to ThantiK
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 05-27-2004 , 19:04  
Reply With Quote #8

u can't block death unless ur god
__________________
My Plugins

Got ??
AssKicR is offline
ThantiK
Senior Member
Join Date: Mar 2004
Location: Orlando, FL
Old 05-27-2004 , 20:07  
Reply With Quote #9

I could have sworn there was an old amx plugin that blocked the death event for clan practices.
__________________
AMXX -- You want control? You got it.
tkwired.com cs 1.6 -- tkwired.com:27016
ThantiK is offline
Send a message via AIM to ThantiK Send a message via MSN to ThantiK
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-27-2004 , 20:12  
Reply With Quote #10

Well maybe : If it checked if an admin put in some sort of a command that let the server/plugin know that they were practacing then it would give everyone godmode untill the round ended and then so on. Or maybe : I'm crazy.
Peli is offline
Send a message via MSN to Peli
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 15:16.


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