Find grenade in relation to player position?? -- help m3h!
Anyone have any idea if its possible to get the direction of DMG from a grenade? -- or would it be possible to write the coord of a grens position when it detonates?
I also need to find out how far away that point is (but I'm sure there is a distance function)...and at what angle its at... Anyone mind pointing me in a good direction? |
The Damage message sends the coords also for hegrens, at least in CS...
if my memory is right... Try this, dunno if it still works, I had it commented out in one of my plugins: Code:
Code:
Now you do the math. :-) Kind of like the feathersnsqueek function name. I think the coords are used in CS/HL to know where to make the red "hurt" icons you see on screen when you're being shot at. The coords are integers here, might be a bad thing. Maybe you can get them to be more precise using register_message and reading them as floats. |
TY JGHG, thats much more than I expected from anybody. -- time for me to get to work.
|
| All times are GMT -4. The time now is 17:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.