Page 1 of 1

give extra lives through ACS

Posted: Mon Apr 07, 2014 2:26 pm
by Thomas
Is it possible to give a player additional lives in survival by an ACS command? I found an old thread on google about this and wonder if this has ever been implemented.

RE: give extra lives through ACS

Posted: Mon Apr 07, 2014 2:44 pm
by Ænima
GetPlayerLives and SetPlayerLives are in Zan 2.0, I think. I remember suggesting them like a year ago.

RE: give extra lives through ACS

Posted: Mon Apr 07, 2014 7:21 pm
by Torr Samaho
Ænima wrote: GetPlayerLives and SetPlayerLives are in Zan 2.0, I think. I remember suggesting them like a year ago.
I already added these functions in 1.1:
1.1 changelog wrote: + - Added new ACS commands GetPlayerLivesLeft and SetPlayerLivesLeft. In game modes using sv_maxlives, these commands allow to access and change how many times the specified player is still allowed to respawn. [Torr Samaho]

RE: give extra lives through ACS

Posted: Mon Apr 07, 2014 8:13 pm
by Ænima
Oh! My bad, sorry I was too lazy to actually check. :p

RE: give extra lives through ACS

Posted: Mon Apr 07, 2014 8:27 pm
by Torr Samaho
Ænima wrote: GetPlayerLives and SetPlayerLives are in Zan 2.0, I think. I remember suggesting them like a year ago.
Ænima wrote: Oh! My bad, sorry I was too lazy to actually check. :p
Hmm, combining these quotes it almost sounds as if you are requesting features, but then don't even bother to check whether they are implemented... I'll have to keep this in mind :P

RE: give extra lives through ACS

Posted: Mon Apr 07, 2014 8:46 pm
by Ænima
Torr Samaho wrote:
Ænima wrote: GetPlayerLives and SetPlayerLives are in Zan 2.0, I think. I remember suggesting them like a year ago.
Ænima wrote: Oh! My bad, sorry I was too lazy to actually check. :p
Hmm, combining these quotes it almost sounds as if you are requesting features, but then don't even bother to check whether they are implemented... I'll have to keep this in mind :P
Yep, that's typical Aenima. Image


Actually it was because I had wanted to use it for a mod that I was working on, but then I stopped working on that mod and so I didn't have much motivation to look into testing the Get/SetPlayerLives implementation.

Should I continue working on it just for the sake of testing this feature? It was basically an arcade-style survival mod in which getting enough points would give you an "1-Up" (in addition to an invul sphere replacement which also gives you an extra life).

RE: give extra lives through ACS

Posted: Mon Apr 07, 2014 9:50 pm
by AkumaKing
Ænima wrote:
Torr Samaho wrote:
Ænima wrote: GetPlayerLives and SetPlayerLives are in Zan 2.0, I think. I remember suggesting them like a year ago.
Ænima wrote: Oh! My bad, sorry I was too lazy to actually check. :p
Hmm, combining these quotes it almost sounds as if you are requesting features, but then don't even bother to check whether they are implemented... I'll have to keep this in mind :P
Yep, that's typical Aenima. Image


Actually it was because I had wanted to use it for a mod that I was working on, but then I stopped working on that mod and so I didn't have much motivation to look into testing the Get/SetPlayerLives implementation.

Should I continue working on it just for the sake of testing this feature? It was basically an arcade-style survival mod in which getting enough points would give you an "1-Up" (in addition to an invul sphere replacement which also gives you an extra life).

Didn't Laggy Blazko do something like this? I think I even remember you posting in the thread here.

RE: give extra lives through ACS

Posted: Mon Apr 07, 2014 10:25 pm
by Laggy Blazko
Oh god, I wish I had time to update that thing. ;_;
EDIT: There's documentation in the Zandronum wiki.
http://wiki.zandronum.com/GetPlayerLivesLeft
http://wiki.zandronum.com/SetPlayerLivesLeft

RE: give extra lives through ACS

Posted: Tue Apr 08, 2014 6:27 am
by Torr Samaho
Ænima wrote: Should I continue working on it just for the sake of testing this feature? It was basically an arcade-style survival mod in which getting enough points would give you an "1-Up" (in addition to an invul sphere replacement which also gives you an extra life).
No, it's fine. Qent confirmed that the implementation works back then.

RE: give extra lives through ACS

Posted: Wed Apr 09, 2014 8:50 pm
by Thomas
Oh, hehe, I'm just now looking @ the wiki. I'm so hooked to the ZDoom wiki that sometimes I forget that Zandronum also has one to look in before posting :P. Anyway, thanks!