English [RELEASED] Achievements and Statistics Script

262 replies
Goto Page
To the start Previous 1 2 ... 13 14 Next To the start
Poll Poll
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
Up
SQ
Moderator
Offline Off
Greetings forum!

I'm Simonas a.k.a Blazing. I was responsible for contributions like Zombie Plague, Super Hero, Gun Game and CS2D Lighting & Shadows Engine. After being absent for a while I'm glad to say that for the last time I'm sharing with you my last CS2D contribution - Dynamic Achievements and Statistics Script

- - ==== Download ==== --
file cs2d Dynamic Achievements and Statistics Script (2.0) (80)

- - ==== Screenshots ==== --
IMG:http://s22.postimg.org/779y379yp/Screenshot1.png

IMG:http://s22.postimg.org/ixnvkl2r5/Screenshot2.png

IMG:http://s22.postimg.org/tn1kcuek1/Screenshot3.png

IMG:http://s22.postimg.org/glfvmzq5t/Screenshot4.png

IMG:http://s22.postimg.org/je9370qi9/Screenshot5.png

IMG:http://s22.postimg.org/5zw0azju9/Screenshot7.png


Regards,
Blazing
edited 12×, last 28.11.15 03:56:46 pm
24.10.15 10:30:58 am
Up
Sparty
Reviewer
Offline Off
FIRSTREPYPOST

At last someone took their time and knowledge of making that will be useful, I hope people will use this. Its gonna be useful again.
= Gud Idea

You could add lots of statistics or achievements. Maybe Meters walked? Assist etc.
user DC has written:
@user omg: Actually a pretty good idea...
24.10.15 10:38:09 am
Up
SQ
Moderator
Offline Off
Exactly, there could be many kind of statistics and for each game modes those statistics would matter in a different way.

I might add assists and time played in the server.
By the way what should be the max count of statistics?

I'll probably make 20 the max in the window, unless I will make more pages available.
24.10.15 10:47:07 am
Up
XoOt
Super User
Offline Off
I suggest to add a function that will display the selected statistic for every player on the server as hudtext like "playerxyz got 183849 kills in total"
This will bring a possibility to compete with each other and compare their stats whenever they want.
24.10.15 10:48:47 am
Up
SQ
Moderator
Offline Off
This is actually a great idea and not so easy to implement!
I might do that. So if you press on statistics it will show for example top 100.

I might also implement graph drawing for statistics. Though these might be separate statistics feature.
24.10.15 11:20:43 am
Up
Masea
Super User
Offline Off
Wow, something new. Sounds great, good luck. Probably I'll use that.

Make this script ASAP.
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast 2 Modification (27)
24.10.15 11:57:35 am
Up
SQ
Moderator
Offline Off
Great, so far I just need more ideas and feedback
I will also need someone to host this script for the testing.
24.10.15 12:03:28 pm
Up
Sparty
Reviewer
Offline Off
should add..Killing spree, Flags taken. Hostages saved/killed blahblahblah.. I'ma edit this post..later soon.
user DC has written:
@user omg: Actually a pretty good idea...
24.10.15 12:31:37 pm
Up
TheBosS_
User
Offline Off
That's actually pretty cool and great.

Anyways, you could get some ideas from CoD. For ex.:

Add a button that says Medals or maybe F3 or whatever:
-Bloodthirsty (5 kills in a row without dying)
-Doublekill (Kill 2 in 2 seconds)
-Longshot -- if possible (Kills from a long range)
-Unstoppable (Kill 30 in a row without dying)

You can get more information here.

Good luck
24.10.15 02:55:11 pm
Up
VADemon
User
Offline Off
I wondered yesterday because
user SQ has written:
Greetings, I'm working on achievements script for СS2D and I came up with simple file system script.[/code]

Damage per Kill or Damage per Death, dunno what makes more sense, as an additional statistic to KpD.
Money spent
24.10.15 03:02:59 pm
Up
Fraizeraust
Moderator
Offline Off
This is so great! One day, when you almost finished at developing this script, maybe you will upload it to F.A.?

Definitely, will gonna use this.
24.10.15 03:06:55 pm
Up
SQ
Moderator
Offline Off
user VADemon has written:
I wondered yesterday because
user SQ has written:
Greetings, I'm working on achievements script for СS2D and I came up with simple file system script.[/code]

Damage per Kill or Damage per Death, dunno what makes more sense, as an additional statistic to KpD.
Money spent

Déjà vu right? You still remembered it? This script was intended to be released 3 years ago

@user Fraizeraust: What is F.A.?
24.10.15 03:21:44 pm
Up
Fraizeraust
Moderator
Offline Off
user SQ has written:
@user Fraizeraust: What is F.A.?

File Archive of course what else? I just abbreviated these words into F.A.
24.10.15 03:25:40 pm
Up
SQ
Moderator
Offline Off
Oh sure, I though I missed something. Sure I will be adding it to File Archive. However before that I will ask someone to host the script to fix all the bugs.

For the people who are interested in customization. These are scripts for kills, deaths and kills/deaths ratio implementation. It's really easy and if you want to add or change statistics features.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--==== KILLS STATISTICS ====--
function stat_kills(killer,victim)
     if (killer ~= victim) then
          UserManager.incValue(id,"Kills",1)
     end
end
function stat_kills_variable(id)
     return(UserManager.getValue(id,"Kills"))
end

AddValue("Kills")
AddFunction("kill",stat_kills)
AddStats("Kills (total)", "gfx/stats/stat_kills.png",stat_kills_variable)

--==== DEATHS STATISTICS ====--
function stat_deaths(killer,victim)
     UserManager.incValue(victim,"Deaths",1)
end
function stat_deathsVariable(id)
     return(UserManager.getValue(id,"Deaths"))
end

AddValue("Deaths")
AddFunction("die",stat_deaths)
AddStats("Deaths", "gfx/stats/stat_deaths.png",stat_deathsVariable)

--==== KILLS/DEATHS RATIO STATISTICS ====--
function stat_kdratioVariable(id)
     local kills = UserManager.getValue(id,"Kills")
     local deaths = UserManager.getValue(id,"Deaths")
     if (kills == 0) then
          return("0.0")
     end
     local ratio = tonumber(tostring((kills / deaths)):sub(1, 5)) 
     return(ratio)
end
AddStats("K / D Ratio", "gfx/stats/stat_kd.png",stat_kdratioVariable)
edited 3×, last 24.10.15 03:48:11 pm
24.10.15 04:36:23 pm
Up
_Yank
User
Offline Off
Pretty neat!
You could add an overall score unit that would a reflect of all the statistics.
24.10.15 04:49:14 pm
Up
SQ
Moderator
Offline Off
Yeah, that's easily possible. By the way, should "Round Wins" count even when you're dead while your team wins? And also if should consider armor damage in damage statistics. Also instead I will do favorite rifle, because it is quite stupid to save that much of data for each player/weapon

Current updates (Green/Red shows changes from the last time you have looked at the menu):
IMG:http://s17.postimg.org/n1uen6si7/screen.png
edited 5×, last 24.10.15 08:04:16 pm
25.10.15 03:17:52 am
Up
Awesome, but it would be better if it was a scroll down menu, so we can add infinite achievements. Try to export and adapt the achievements of cs:go to cs:2d. When will be the release?
Brazilian Community - www.CS2DBR.tk
25.10.15 05:32:37 am
Up
SQ
Moderator
Offline Off
Depends on how many features I want to develop before uploading it into files archive. Also testing is needed before the release. I release I wouldn't want the case when everyone loses their data because some achievement script crashed lua interface.

Here is a short video how I'm planning menus to work: https://youtu.be/JeYdlUyvu8A
edited 1×, last 25.10.15 06:36:39 am
25.10.15 08:22:08 am
Up
Gaios
Security Supporter
Offline Off
Hey, we needn't green text. Just keep it normal. Don't make from this rainbow.
25.10.15 08:29:10 am
Up
Mora_rus
User
Offline Off
You can also make the stat:
Wins/Loses Ratio.
S.T.A.L.K.E.R. - The Lost Land dev. https://discord.gg/aABCkHQ
To the start Previous 1 2 ... 13 14 Next To the start