2) Yes, with Ply's Mod you can. This would be done with setting variables to the player's current angle and the entity's current angle, checking them against each other and displaying a HUD when necessary.
Example:
If the player is looking in the direction of 67 degrees and gets shot by an entity looking in 97 degrees (These are Y Angles, btw), then we can do some simple calculations like so to find out where the entity is from the player:
67 - 97 = -30 degrees difference
Now, keep in mind that if the entity is looking in the SAME DIRECTION as the player and were still ABLE to hit the player, then they MUST be directly behind the player.
For this, I would do the following:
Find PlayerAngle-EntityAngle (Like we did in the example above)
- If the difference is -45 to 45, then show the down arrow.
- If the difference is -45 to -135, then show the left arrow.
- If the difference is 45 to 135, then show the right arrow.
- If the difference is greater than 135 OR less than -135, then show the up arrow.
You'll run into some problems with angle wrapping and whatnot, so you may decide to use the "wrapvalue" command in Ply's Mod to accomodate for it somewhat.
Just don't expect to get off scotch-free on this one, it's going to require a bit of thinking.
The one and only,