MantisBT - Zandronum
View Issue Details
0000941Zandronum[All Projects] Suggestionpublic2012-07-30 20:462014-05-12 15:20
Watermelon 
 
normalfeatureN/A
closedfixed 
 
 
0000941: Access player points (from CTF) with ACS
As seen in this thread:
'http://zandronum.com/forum/showthread.php?tid=716 [^]'

It would be nice to be able to grab the player points instead of other methods that are a bit more intensive than a simple command.

If there was a function to grab a player point that would be awesome -- or better yet, maybe use something like:

'http://zdoom.org/wiki/GetActorProperty [^]'
APROP_Score - A simple counter. Score items automatically increase it by their amount


Theres a function called PlayerFrags()
Could there be PlayerPoints() ?
No tags attached.
related to 0000927closed Dusk ZDaemon ACSF Functions 
Issue History
2012-07-30 20:46WatermelonNew Issue
2012-07-30 21:26DuskNote Added: 0004151
2012-07-30 22:09WatermelonNote Added: 0004152
2012-07-31 05:28Torr SamahoNote Added: 0004156
2012-07-31 14:48WatermelonNote Added: 0004159
2012-07-31 14:51WatermelonNote Edited: 0004159bug_revision_view_page.php?bugnote_id=4159#r2268
2012-07-31 19:09Torr SamahoNote Edited: 0004156bug_revision_view_page.php?bugnote_id=4156#r2276
2012-07-31 20:39Torr SamahoNote Added: 0004172
2012-08-03 00:48DuskRelationship addedrelated to 0000927
2012-08-03 00:50DuskNote Added: 0004219
2012-08-03 00:50DuskNote Edited: 0004219bug_revision_view_page.php?bugnote_id=4219#r2316
2012-08-03 05:36Torr SamahoNote Added: 0004226
2014-05-12 00:17WatermelonStatusnew => resolved
2014-05-12 00:17WatermelonResolutionopen => fixed
2014-05-12 00:17WatermelonAssigned To => Watermelon
2014-05-12 15:20DuskAssigned ToWatermelon =>
2014-05-12 15:20DuskStatusresolved => closed

Notes
(0004151)
Dusk   
2012-07-30 21:26   
I think this is something for GetPlayerInfo more than anything. I think it as well could be expanded with a few things like ping, time and possibly ignore status.
(0004152)
Watermelon   
2012-07-30 22:09   
That'd be so awesome to be able to get player ping, time...etc

This may be far-fetched, but can we get access to IP:Port? Or is that too far?
(0004156)
Torr Samaho   
2012-07-31 05:28   
(edited on: 2012-07-31 19:09)
Putting this stuff in GetPlayerInfo is surely possible, but breaks with the current design. So far GetPlayerInfo only returns stuff in stored in userinfo.

Quote from Watermelon
That'd be so awesome to be able to get player ping, time...etc

Once we decide how to access the score info, it won't be any problem to extend this to the other information. I'm not sure though if it would be a good idea to allow a mod to access IP:Port. Privacy issues aside, reliably identifying a player with it is not possible, so what would you need this for?

(0004159)
Watermelon   
2012-07-31 14:48   
(edited on: 2012-07-31 14:51)
Unless Zandronum features a login system where you can grab account names with ACS, there are programs out there that connect to the RCON utility and read/send data to the server. This could be used to store data based on IP, or record IP's that do suspicious activity into the logs. Port wouldn't really be essential though.

It could also be used possibly to get the server's host IP in game which can be used for lots of stuff.

EDIT: Does this coincide with:'http://zandronum.com/tracker/view.php?id=927 [^]' ?

(0004172)
Torr Samaho   
2012-07-31 20:39   
Your suggestions what to do with the IPs are still too vague to judge whether mods should get access to the IPs or not. Can you give a specific example?

Quote
EDIT: Does this coincide with:'http://zandronum.com/tracker/view.php?id=927 [^]' ?

It's related, but needs to be done by a different function. Given a team number, 0000927 provides access to properties of to the specified team, but here we need to access properties of given player, no matter if he is on a team or not.
(0004219)
Dusk   
2012-08-03 00:50   
Quote
Putting this stuff in GetPlayerInfo is surely possible, but breaks with the current design. So far GetPlayerInfo only returns stuff in stored in userinfo.

GetClientInfo then? But that might not be the proper place for the score value...

(0004226)
Torr Samaho   
2012-08-03 05:36   
I think the name GetPlayerProperty would be consistent with the just added GetTeamProperty and ZDoom's GetActorProperty, though we risk that ZDoom may use this name in the future.