Force Push
I am trying to make a push that will shove everyone away from you, but what is a good way to determine which direction is "away" from someone?
this is what I was doing: Code:
|
Re: Force Push
1 Attachment(s)
There is a hero (sh_blop from AssKicR) for the superHero MOD with which you can push people outher your way...
Maybe this helps you!? :) here you go: Attachment 15737 greetz regalis |
Re: Force Push
I would give this a shot:
Code:
|
Re: Force Push
I will look into it thanks, when I get internet I will test it.
|
Re: Force Push
sry for bump but how about this:
Code:
|
Re: Force Push
not good.
get_playersnum() returns the number of players but you have no indication that the player index starts from 0 and ends with that number-1. Also there is no indication of WHEN that piece of code is executed. I think you should hook FM_Touch for this. |
Re: Force Push
Mh... something is not good at your code.
Because your code will: - Push people less harder the closer they are to you. - Push them antiproportional, so no matter what the distance is you are handling a distance of for example (2*100²)^0.5 with twice the power you use for a distance of 100, although (2*100²)^0.5=141.421. |
Re: Force Push
For use in FM_Touch:
PHP Code:
PHP Code:
|
Re: Force Push
Quote:
Quote:
Quote:
|
Re: Force Push
If yor code is in FM_Touch then it's not an issue as FM_Touch will be called when the players actually "touch" each-other. The distance between them is irrelevant in this case and will always be constant.
BTW I didn't say you're an idiot, I've just failed to undestand your code and where it should be placed. And if you already knew this then what's the point of this thread ?!? |
| All times are GMT -4. The time now is 06:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.