MantisBT - Zandronum
View Issue Details
0001674Zandronum[All Projects] Suggestionpublic2014-01-19 01:022014-06-15 15:07
t3hdoom 
 
normalminorN/A
closedfixed 
 
 
0001674: Suggestion: Add ability to check player score, not just frags, via ACS
Right now, it's possible to check how many frags a player has via ACS using the PlayerFrags() function. However, in non-PvP games (coop, survival, etc), this always returns 0.

I think it'd be useful for there to be some function like a PlayerScore() function, which will return the number displayed on the scoreboard for a particular player in any game mode, including accounting for DMFLAGS. For example, if the DMFLAG "award damage dealt not kills" is enabled, it returns the appropriate number.

There's a brief discussion about this on the forums at
'http://zandronum.com/forum/showthread.php?tid=3993 [^]'

As AEnima mentioned there, a way to get the number of captures in CTF would be great as well.

Thanks guys
No tags attached.
Issue History
2014-01-19 01:02t3hdoomNew Issue
2014-01-19 02:20CatastropheNote Added: 0008080
2014-01-19 02:20CatastropheNote Edited: 0008080bug_revision_view_page.php?bugnote_id=8080#r4436
2014-01-19 05:40ZzZomboNote Added: 0008081
2014-01-19 09:05Torr SamahoNote Added: 0008082
2014-01-19 18:53KlofkacNote Added: 0008105
2014-06-15 15:06WatermelonNote Added: 0009411
2014-06-15 15:06WatermelonStatusnew => closed
2014-06-15 15:07WatermelonResolutionopen => fixed

Notes
(0008080)
Catastrophe   
2014-01-19 02:20   
It would be nice if checking player damage dealt would also work on pvp modes. since the code for monster damage is already there would it be problematic if it were converted for player damage as well?

(0008081)
ZzZombo   
2014-01-19 05:40   
I think ZDoom already has score system. We should await for backporting.
(0008082)
Torr Samaho   
2014-01-19 09:05   
ZDoom 2.5.0 added a score variable that can be checked through ACS and DECORATE, so this is already in Zandronum 2.0. We should discuss how to combine this new ZDoom feature with Zandronum's existing scoring mechanisms.
(0008105)
Klofkac   
2014-01-19 18:53   
I guess we could just synchronize whatever is under player's score in scoreboard with the variable. And possibly connect GetFrags with the ZDoom function.
(0009411)
Watermelon   
2014-06-15 15:06   
This should be fixed and in 2.0, if not... it SHOULD be in very soon.