MantisBT - Zandronum
View Issue Details
0002930Zandronum[All Projects] Suggestionpublic2016-11-21 16:262016-11-23 17:02
masos 
 
normalfeatureN/A
newopen 
 
 
0002930: Some ACS functions as commands
I would be glad to see some ACS functions in form of console commands. For example, PlayerHealth() or GetPlayerLives(). There is a workaround: puke/pukename command and writing scripts containing only this function. But still, writing a simple GetPlayerLives() script took me 2 hours because I am unexpirienced in wadding at all. So build-in functions would be great.
No tags attached.
Issue History
2016-11-21 16:26masosNew Issue
2016-11-21 16:28masosNote Added: 0016254
2016-11-23 15:00CatastropheNote Added: 0016297
2016-11-23 15:17masosNote Added: 0016298
2016-11-23 15:18masosNote Edited: 0016298bug_revision_view_page.php?bugnote_id=16298#r9902
2016-11-23 15:49CatastropheNote Added: 0016299
2016-11-23 15:49CatastropheNote Edited: 0016299bug_revision_view_page.php?bugnote_id=16299#r9904
2016-11-23 15:59masosNote Added: 0016300
2016-11-23 16:08CatastropheNote Added: 0016301
2016-11-23 16:10CatastropheNote Edited: 0016301bug_revision_view_page.php?bugnote_id=16301#r9906
2016-11-23 16:14CatastropheNote Edited: 0016301bug_revision_view_page.php?bugnote_id=16301#r9907
2016-11-23 17:02masosNote Added: 0016302

Notes
(0016254)
masos   
2016-11-21 16:28   
built-in commands*
(0016297)
Catastrophe   
2016-11-23 15:00   
Sorry to break it to you, but Zandronum already has what you're looking for.
'https://wiki.zandronum.com/SetPlayerLivesLeft [^]'
'https://wiki.zandronum.com/GetPlayerLivesLeft [^]'

Player health already exists in the form of aprop_health, see:
'https://zdoom.org/wiki/GetActorProperty [^]'
(0016298)
masos   
2016-11-23 15:17   
(edited on: 2016-11-23 15:18)
So what? Can I actually write in server console "getplayerlivesleft 3" and it will display the third player's lives count?

(0016299)
Catastrophe   
2016-11-23 15:49   
Yeah pretty much. Use KEYCONF to define a pukeable-script that does it for you.

(0016300)
masos   
2016-11-23 15:59   
Here we are. I know it is possible to make myself, but I ask devs to make these built-in commands for Zandronum.
(0016301)
Catastrophe   
2016-11-23 16:08   
(edited on: 2016-11-23 16:14)
I don't see why Dev's would have to waste time on this when it's already VERY easy to accomplish.

I can even write it out here because that's how painfully easy it is.

in keyconf: alias getPlayerLives "puke 1000"
in ACS: script 1000 (void) net
{
 print(d:getplayerlivesleft(playernumber()));
}

(0016302)
masos   
2016-11-23 17:02   
I know, but still. If there was already a command, I wouldn't waste time figuring out how to make wads. Now I know how, but still, many others don't.