Checking lives count in ACS?
Checking lives count in ACS?
Is there any functionality to check how many lives a player has via ACS (using sv_maxlives in survival)?
-
- Zandrone
- Posts: 1244
- Joined: Thu Jun 28, 2012 9:07 pm
- Location: Rwanda
RE: Checking lives count in ACS?
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
- 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
Last edited by Watermelon on Thu Dec 27, 2012 7:04 am, edited 1 time in total.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: Checking lives count in ACS?
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: - Monitor it with a death script
Currently there is no such function, but feel free to request it (if there is no request for it yet).Watermelon wrote: There may be an ACS function for it
RE: Checking lives count in ACS?
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.Torr Samaho wrote: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: - Monitor it with a death script
Currently there is no such function, but feel free to request it (if there is no request for it yet).Watermelon wrote: There may be an ACS function for it
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
-
- Retired Staff / Community Team Member
- Posts: 2568
- Joined: Sat Jun 02, 2012 2:44 am
RE: Checking lives count in ACS?
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?
BOCK BOCK BOCK!Catastrophe wrote: You could force unbock players...
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
-
- Retired Staff / Community Team Member
- Posts: 2568
- Joined: Sat Jun 02, 2012 2:44 am
RE: Checking lives count in ACS?
Ok, maybe temporarily enable unblock players, and teleport all the players based on tid to a new spawn and then disable unblock players.