Raised This Month: $ Target: $400
 0% 

Attacking a user's back?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 08-17-2008 , 15:08   Attacking a user's back?
Reply With Quote #1

Is there anyway, via traceline, or anything else. To find out if the attacker, attacked somebody in the back?
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Howdy!
Senior Member
Join Date: Feb 2007
Old 08-17-2008 , 15:12   Re: Attacking a user's back?
Reply With Quote #2

I think there was thread about this somewhere.
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]
Howdy! is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-17-2008 , 15:49   Re: Attacking a user's back?
Reply With Quote #3

Code:
new Float:origin[3]; pev(attacker, pev_origin, origin); if( fm_is_in_viewcone(victim, origin) ) {     // victim can see attacker } else {     // victim cannot see attacker }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-18-2008 , 15:25   Re: Attacking a user's back?
Reply With Quote #4

Yea Exolent, but that way will give false results some time, such as you shot from above, sides, under player, and so...i maked a plugin some time ago to fix backstab bug, where you make ~> 100 dmg with knife.Take a look and feel free to take what you need.

You can adjust the back angle
#define BACKSTAB_ANGLE 45.0 - max angle between target player aim origin and attacker player aim origin.
Attached Files
File Type: sma Get Plugin or Get Source (fix_backstab.sma - 985 views - 2.2 KB)
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 08-19-2008 , 01:55   Re: Attacking a user's back?
Reply With Quote #5

Thank you so much, both of you.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Old 06-07-2010, 14:12
Kuzman
This message has been deleted by Kuzman.
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-07-2010 , 15:19   Re: Attacking a user's back?
Reply With Quote #6

Quote:
Is there a knife plug-in that forbids a player to stab his opponent in the back? I saw that plugin on a russian server and i really need it so if anyone has or heard where you can get it plz say so :S
Take Alka's plugin and change this:
PHP Code:
#define BACKSTAB_MAX_DAMAGE 60.0 
to this:
PHP Code:
#define BACKSTAB_MAX_DAMAGE 0.0 
RedRobster is offline
Old 06-08-2010, 03:47
Kuzman
This message has been deleted by Kuzman.
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-08-2010 , 05:06   Re: Attacking a user's back?
Reply With Quote #7

Edit the .sma, and compile it. Then upload the .sma to the scripting folder, and the .amxx file to the plugins folder. Then add the name of the plugin, fix_backstab.amxx to your plugins.ini in the configs folder.
RedRobster is offline
Old 06-08-2010, 06:22
Kuzman
This message has been deleted by Kuzman.
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 06-08-2010 , 06:42   Re: Attacking a user's back?
Reply With Quote #8

\addons\amxmodx\scripting
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
patro
Junior Member
Join Date: Oct 2009
Old 06-08-2010 , 16:41   Re: Attacking a user's back?
Reply With Quote #9

Hi there, is possible to block back and sides (and left and right side), or only back?
patro is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-09-2010 , 05:36   Re: Attacking a user's back?
Reply With Quote #10

Quote:
Originally Posted by patro View Post
Hi there, is possible to block back and sides (and left and right side), or only back?
For sides damage you can try to adjust backstab angle ->
PHP Code:
#define BACKSTAB_ANGLE 90.0 //should work 
You can add a bit more like +5.0 for saftey, try it yourself.
__________________
Still...lovin' . Connor noob! Hello
Alka 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 03:16.


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