Revive a player in a certain radius
Hello everyone, I found this plugin that makes a player to revive a teammate by approaching the corpse and holding CTRL + E, a bar will appear and when you complete that bar the player revives where he died, the problem with this is that you have to get close to the exact point where he died and it is very difficult to find the exact point. Someone could make it possible to revive the partner over a certain radio and have a cvar of that (so it would be easier to revive it) please? ... ths in advance
PHP Code:
|
Re: Revive a player in a certain radius
Well, i know that this line is causing you the trouble.
PHP Code:
I would suggest using random_float() for this. |
Re: Revive a player in a certain radius
Can you give me an example pls
|
Re: Revive a player in a certain radius
Not thoroughly tested
Added cvars Code cleanup Made a little smarter
PHP Code:
|
Re: Revive a player in a certain radius
Thanks bugsy, what kind of work would the code need?
|
Re: Revive a player in a certain radius
I made edits, look above
|
Re: Revive a player in a certain radius
ok thanks i will test it later but i have a question if there are two or more corpses in the same radio it will revive everyone? oh they would be revive one by one
|
Re: Revive a player in a certain radius
Only one at a time, starting with the closest. The chances of them being at an exact distance away is slim.
|
Re: Revive a player in a certain radius
Why not drop the bar, and origin (unless there is a marker); then just trigger it off spectating bots like Global Offensive?
|
Re: Revive a player in a certain radius
At the moment it works fine thanks, I have a question is it possible to remove the corpse model after reviving the partner?
|
All times are GMT -4. The time now is 20:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.