Distance
Alright.. for get_user_aiming(), what is the distance measured in?
Also, what would be the approximate distance between you and another player side by side? EDIT: Actually, I want to get the distance between 2 players. So I assume I'd use get_user_origin() and get_distance(). |
Yeah.. I was wondering this as well. I give out a bonus 1 exp for a "long range" hit, which is >= 1500 units. But then, apparently I got a long range hit (according to debug chat) with a knife. But then.. my server I think is completely screwed up
|
maybe
Code:
new userorigin[3]Offcourse you need to change the secondpersonorigin. It's only a example or more what you would like Code:
new userorigin[3]I'm not quite sure whats the distance side by side. Maybe try somethim around 100. Hope this helped :) |
Hmm, I was gonna use get_entity_distance().. Anywho, thanks.. This plugin will be interesting when I'm done. :D
|
Maybe someone could help me with this...
I need to make a heal function for my Mod. The users calls a command when pointing at a teammate, and it should heal him if the distance isn't very far. get_user_aiming() // Does this return the id of the user its pointing at? And how do i set the function only to be run if the distance is like a max of 2 meters? |
basicaly
you can just use the code i gave v3x.
Code:
new target , bodyif person a looks at person b, it gives person b +10 hp |
Could I use http://amxmodx.org/funcwiki.php?go=func&id=379 ?
|
yes
yes that would work to
|
Alright .. Would that work if a knife hit somebody? Like, id hit id2.
|
well
don't know foir sure.
its two ents touching so if people touch dont know for sure if knife. maybe make it like on ent touching if id has knife equipeed and attack button? but don't know for sure. |
| All times are GMT -4. The time now is 09:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.