Forum
CS2D Scripts [RELEASED] Achievements and Statistics ScriptPoll
Do you like the idea of the script?
Only registered users are allowed to vote
No, it is nothing new | 4.17% (3) | |
Yes | 95.83% (69) |
72 votes cast
edited 2×, last 26.10.15 08:33:59 am
Is that kind of thing confirmed to be released?
Some new statistics and graphics
Keep it going,so impatient to see it released.
As you can see that I am Player with the USGN 35744 (rank 4). Rank 3 has the exact statistics and the USGN as mine but a different name. This name is in every Top Players menu.
My Rewards scripts hosted last year has pretty much all of this including achievements, but no fancy GUI to show it off. Any chance Rewards may have been an influence in creating this?
I greatly prefer my OOP implementation over hooks though, as it's all integrated. Couple examples:
1
2
2
users[id]:stats():add_kill() users[id]:ach().flag_cap:increment()
Regarding adding hook functions, I find it more convenient to allow in-line functions. For example I use a custom system for CS2D hooks that allows me to do the following:
1
2
3
2
3
hook.add("second",priority,function() 	-- do something end)
As a side note, Rewards will be returning most likely early next year once I finish up the Shop script. I would love to add an interface like this, it would be epic.
Keep up the good work, looks great.
VaiN has written
Any chance Rewards may have been an influence in creating this?
I do not play CS2D that much, I looked though File Archive and haven't seen anything similar to that. Though I had idea for ages. This script will include Achievements, leaderboard and graph statistics as well. Those are more advanced features that I left for next week.
VaiN has written
I greatly prefer my OOP implementation over hooks though, as it's all integrated. Couple examples:
Code:
Regarding adding hook functions, I find it more convenient to allow in-line functions. For example I use a custom system for CS2D hooks that allows me to do the following:
Code:
1
2
2
users[id]:stats():add_kill() users[id]:ach().flag_cap:increment()
Regarding adding hook functions, I find it more convenient to allow in-line functions. For example I use a custom system for CS2D hooks that allows me to do the following:
1
2
3
2
3
hook.add("second",priority,function() -- do something end)
I have mentioned this kind of methods already in the thread before. My system already featuring this and even a little bit more.
So far I had enough of these functions to implement about 30 stats:
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
AddFunction(hook,func) - basically same as addHook func(id) AddGlobalFunction(hook,func) - func() AddRemove(hook,func) AddValue("value") IncreaseValue(id,"value") GetValue(id,"value") AddStats("Sniper Kills", path_of_Image, function_that_returns_value_in_menu, function_that_is_used_to_compare_values_in_top_lists)
Sniper kills statistics implementation for example:
This is the list of all statistics available so far.
I could also upload script that handles UI pretty well. Just I would need a list of features. And yet I don't know if people would use that.
and some improvements.
edited 6×, last 28.10.15 10:36:57 am
I'm photographer and I really hate yellow color to be honest.
Just a personal question. Weren't you really busy? How do you find time for that?
This bug occurred when the round has been finished. I didn't check though if if happens all the time as I see this bug occurred for the first time.
edited 4×, last 31.10.15 12:20:01 am