Page 1 of 1

Checking lives count in ACS?

Posted: Thu Dec 27, 2012 7:01 am
by Cutman
Is there any functionality to check how many lives a player has via ACS (using sv_maxlives in survival)?

RE: Checking lives count in ACS?

Posted: Thu Dec 27, 2012 7:04 am
by Watermelon
Sadly none that I know of, there's two ways you could do this:
- Monitor it with a death script
- Edit the binary to allow you access to the number

I figure you'd index the player lives at the beginning for everyone with a serverside GetCvar("sv_maxlives"); and deaths subtract from this. If someone leaves they would be set to 0 with a disconnect script.

There may be an ACS function for it

RE: Checking lives count in ACS?

Posted: Thu Dec 27, 2012 12:38 pm
by Torr Samaho
Watermelon wrote: - Monitor it with a death script
That's pretty difficult since not all deaths cost a life. For instance you don't lose a life if you are spawn telefragged.
Watermelon wrote: There may be an ACS function for it
Currently there is no such function, but feel free to request it (if there is no request for it yet).

RE: Checking lives count in ACS?

Posted: Thu Dec 27, 2012 12:49 pm
by Ivan
Torr Samaho wrote:
Watermelon wrote: - Monitor it with a death script
That's pretty difficult since not all deaths cost a life. For instance you don't lose a life if you are spawn telefragged.
Watermelon wrote: There may be an ACS function for it
Currently there is no such function, but feel free to request it (if there is no request for it yet).
Spawn telefrags have a different damagetype AFAIK, you can give an item on death to the player when that happens and check for that in ACS, if so, terminate. I've done a similar thing before.

RE: Checking lives count in ACS?

Posted: Thu Dec 27, 2012 6:07 pm
by Catastrophe
You could force unbock players and stop telefragging at the spawn altogether. Then watermelon's getcvar suggestion would work.

RE: Checking lives count in ACS?

Posted: Thu Dec 27, 2012 7:18 pm
by Ivan
Catastrophe wrote: You could force unbock players...
BOCK BOCK BOCK!

RE: Checking lives count in ACS?

Posted: Thu Dec 27, 2012 11:04 pm
by Catastrophe
Ok, maybe temporarily enable unblock players, and teleport all the players based on tid to a new spawn and then disable unblock players.