Doesn't take damage from the front
Is it possible to make a plugin that block damage from the front which means. when player shoot his enemy the enemy doesn't take damage from the front it take damage only at the back. ?
|
Re: Doesn't take damage from the front
http://forums.alliedmods.net/showthr...ight=back+shot
This can help you. Don't forget you are in scripting help and not in suggest or request section :D |
Re: Doesn't take damage from the front
I don't understand how to do it
|
Re: Doesn't take damage from the front
Sorry for the double posting, I really need help from this
|
Re: Doesn't take damage from the front
Thanks el.nino, I need this too :)
|
Re: Doesn't take damage from the front
Quote:
Here is how I would do it. (NOT TESTED! It may be needed to add more lines) PHP Code:
|
Re: Doesn't take damage from the front
Quote:
Thanks so much :up: If it can ignored the knockback it will be cool. Problem 1 : Could you set it will take damage from any other Grenade. |
Re: Doesn't take damage from the front
PHP Code:
|
Re: Doesn't take damage from the front
You have to be careful with the word inflictor. Also if you want to improve little, first check if inflictor is attacker and after that get origin and viewcone. ;)
|
Re: Doesn't take damage from the front
I would not use inflictor at all in this case.
PHP Code:
|
| All times are GMT -4. The time now is 01:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.