MantisBT - Zandronum
View Issue Details
0002799Zandronum[All Projects] Suggestionpublic2016-07-31 00:512016-08-10 16:55
Visual Vincent 
 
normalminorhave not tried
closeddenied 
MicrosoftWindowsXP/Vista/7
2.2-beta 
 
0002799: Implement a way to reference your current Player Number in the console
I'd find it useful for certain commads if you could reference your current player number (0-63). Say we're executing a script via "puke" which takes a player number as an argument. Instead of looking up the player number manually you could just say for example "$pnum".
This could be useful if you want to bind it to keys too.

Example:
"puke 35 $pnum"
No tags attached.
Issue History
2016-07-31 00:51Visual VincentNew Issue
2016-08-07 20:56DuskNote Added: 0015422
2016-08-07 20:56DuskStatusnew => feedback
2016-08-10 10:14Visual VincentNote Added: 0015425
2016-08-10 10:14Visual VincentStatusfeedback => new
2016-08-10 12:53DuskNote Added: 0015429
2016-08-10 14:34Visual VincentNote Added: 0015431
2016-08-10 14:37Visual VincentNote Edited: 0015431bug_revision_view_page.php?bugnote_id=15431#r9383
2016-08-10 14:40Visual VincentNote Edited: 0015431bug_revision_view_page.php?bugnote_id=15431#r9384
2016-08-10 16:54DuskNote Added: 0015435
2016-08-10 16:54DuskStatusnew => closed
2016-08-10 16:54DuskResolutionopen => denied
2016-08-10 16:55DuskNote Edited: 0015435bug_revision_view_page.php?bugnote_id=15435#r9393

Notes
(0015422)
Dusk   
2016-08-07 20:56   
And what is stopping the player from passing some other player's number? ACS can just use PlayerNumber for NET scripts, and ConsolePlayerNumber for CLIENTSIDE scripts anyway.
(0015425)
Visual Vincent   
2016-08-10 10:14   
@Dusk I'm not sure what you mean... Nothing's stopping you from passing someone else's player number. The reason I'd like this is because I want to quickbind certain scripts (that are NET) in certain mods, and they require a player number to be passed. It is also faster than having to lookup your own player number, if it's that you're going to reference.
(0015429)
Dusk   
2016-08-10 12:53   
Then make another script which calls the original with the current player number. An overload if you may.
(0015431)
Visual Vincent   
2016-08-10 14:34   
(edited on: 2016-08-10 14:40)
Quote
Then make another script which calls the original with the current player number. An overload if you may.


The scripts aren't mine, though. They're baked into mods.
If you don't want to implement this that's fine, but if so then please close this. I just thought it would've been a little handy thing to have.

(0015435)
Dusk   
2016-08-10 16:54   
(edited on: 2016-08-10 16:55)
Quote

The scripts aren't mine, though. They're baked into mods.

With the modular nature of PWADs, I fail to see how this is a problem.

Anyway such a feature would be another thing on us adding delta to ZDoom for no real reason. You may ask ZDoom though.