AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Attacking a user's back? (https://forums.alliedmods.net/showthread.php?t=76061)

Drak 08-17-2008 15:08

Attacking a user's back?
 
Is there anyway, via traceline, or anything else. To find out if the attacker, attacked somebody in the back?

Howdy! 08-17-2008 15:12

Re: Attacking a user's back?
 
I think there was thread about this somewhere. :)

Exolent[jNr] 08-17-2008 15:49

Re: Attacking a user's back?
 
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 }

Alka 08-18-2008 15:25

Re: Attacking a user's back?
 
1 Attachment(s)
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.

Drak 08-19-2008 01:55

Re: Attacking a user's back?
 
Thank you so much, both of you.

RedRobster 06-07-2010 15:19

Re: Attacking a user's back?
 
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 06-08-2010 05:06

Re: Attacking a user's back?
 
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.

Brreaker 06-08-2010 06:42

Re: Attacking a user's back?
 
\addons\amxmodx\scripting

patro 06-08-2010 16:41

Re: Attacking a user's back?
 
Hi there, is possible to block back and sides (and left and right side), or only back?

Alka 06-09-2010 05:36

Re: Attacking a user's back?
 
Quote:

Originally Posted by patro (Post 1203529)
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.


All times are GMT -4. The time now is 03:16.

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