Forum

> > CS2D > Scripts > [RELEASED] Achievements and Statistics Script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch [RELEASED] Achievements and Statistics Script

262 Antworten
Seite
Zum Anfang Vorherige 1 213 14 Nächste Zum Anfang

Umfrage Umfrage

Do you like the idea of the script?

Nur registrierte Benutzer können abstimmen
No, it is nothing new
4,17% (3)
Yes
95,83% (69)
72 Stimmen abgegeben

alt Umfrage [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Zitieren
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)

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

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

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

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

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

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


Regards,
Blazing
12× editiert, zuletzt 28.11.15 15:56:46

alt Re: [RELEASED] Achievements and Statistics Script

Sparty
Reviewer Off Offline

Zitieren
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.

alt Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Zitieren
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.

alt Re: [RELEASED] Achievements and Statistics Script

XoOt
Super User Off Offline

Zitieren
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.

alt Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Zitieren
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.

alt Re: [RELEASED] Achievements and Statistics Script

TheBosS_
User Off Offline

Zitieren
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

alt Re: [RELEASED] Achievements and Statistics Script

VADemon
User Off Offline

Zitieren
I wondered yesterday because
user SQ hat geschrieben
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

alt Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Zitieren
user VADemon hat geschrieben
I wondered yesterday because
user SQ hat geschrieben
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 GeoB99: What is F.A.?

alt Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Zitieren
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.
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)
3× editiert, zuletzt 24.10.15 15:48:11

alt Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Zitieren
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:https://s17.postimg.org/n1uen6si7/screen.png
5× editiert, zuletzt 24.10.15 20:04:16

alt Re: [RELEASED] Achievements and Statistics Script

mrc
User Off Offline

Zitieren
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?

alt Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Zitieren
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
1× editiert, zuletzt 25.10.15 06:36:39
Zum Anfang Vorherige 1 213 14 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht