give extra lives through ACS

Discuss all aspects related to modding Zandronum here.
Post Reply
Thomas
 
Posts: 51
Joined: Fri Jun 22, 2012 9:41 am

give extra lives through ACS

#1

Post by Thomas » Mon Apr 07, 2014 2:26 pm

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.

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: give extra lives through ACS

#2

Post by Ænima » Mon Apr 07, 2014 2:44 pm

GetPlayerLives and SetPlayerLives are in Zan 2.0, I think. I remember suggesting them like a year ago.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: give extra lives through ACS

#3

Post by Torr Samaho » Mon Apr 07, 2014 7:21 pm

Æ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]

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: give extra lives through ACS

#4

Post by Ænima » Mon Apr 07, 2014 8:13 pm

Oh! My bad, sorry I was too lazy to actually check. :p
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: give extra lives through ACS

#5

Post by Torr Samaho » Mon Apr 07, 2014 8:27 pm

Æ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

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: give extra lives through ACS

#6

Post by Ænima » Mon Apr 07, 2014 8:46 pm

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).
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

AkumaKing
Forum Regular
Posts: 128
Joined: Tue Dec 03, 2013 9:14 pm
Location: Over 2000 lines of Decorate
Contact:

RE: give extra lives through ACS

#7

Post by AkumaKing » Mon Apr 07, 2014 9:50 pm

Æ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.
Projects: Unbound, Zelda DXA
Image

Laggy Blazko
Forum Regular
Posts: 296
Joined: Tue Jun 05, 2012 3:00 pm
Location: Heck no

RE: give extra lives through ACS

#8

Post by Laggy Blazko » Mon Apr 07, 2014 10:25 pm

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
Last edited by Laggy Blazko on Mon Apr 07, 2014 10:37 pm, edited 1 time in total.
Why is finding the user CP so hard?

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: give extra lives through ACS

#9

Post by Torr Samaho » Tue Apr 08, 2014 6:27 am

Æ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.

Thomas
 
Posts: 51
Joined: Fri Jun 22, 2012 9:41 am

RE: give extra lives through ACS

#10

Post by Thomas » Wed Apr 09, 2014 8:50 pm

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!

Post Reply