Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

How to access player stats through Lua?

- - - - -

  • Please log in to reply
10 replies to this topic

#1
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland
Is it possible to get statistics of kills, deaths, headshots and accuracy of certain players through Lua? I guess that the thing I need is sess.aWeaponStats but I don't know what it returns and the description isn't much helpful either.

#2
OFFLINE   Purple

Purple

    Advanced Member

  • Banned
  • PipPipPipPip
  • 157 posts
56
Getting Better

Yes you can obtain a lot of information, but call sess.aWeaponStats and see what it returns x)

 

edit: remember these stats and settings are going to reset each map so if you do, do it via lua make sure you export the stats how ever you'd like mysql/Json/ini/.cfg


Edited by Purple, 08 September 2015 - 11:40 PM.


#3
OFFLINE   Purple

Purple

    Advanced Member

  • Banned
  • PipPipPipPip
  • 157 posts
56
Getting Better

Zelly made this a year or so ago, just stores all player stats via json.

 

 

https://github.com/Z...aster/ZInfo.lua



#4
OFFLINE   Zelly

Zelly

    Regular Member

  • Coders
  • PipPipPip
  • 141 posts
73
Getting Better

Zelly made this a year or so ago, just stores all player stats via json.

 

 

https://github.com/Z...aster/ZInfo.lua

Yeah that isn't really completed :D and it doesn't do damage.

I am pretty sure there are a bunch of errors xD

Its something to go off of at least :D



#5
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland
Found this for ETPub. Does it also apply to silEnT or it's modified some way (weapon indexes of course)?

Edited by Dragonji, 09 September 2015 - 05:24 PM.


#6
OFFLINE   Purple

Purple

    Advanced Member

  • Banned
  • PipPipPipPip
  • 157 posts
56
Getting Better

Found this for ETPub. Does it also apply to silEnT or it's modified some way (weapon indexes of course)?

should be the same only difference would be MOD/Weapons table. Look LESM for both x)



#7
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland

only difference would be MOD/Weapons table

Yeah, I thought someone will paste here a proper table for silEnT mod :D

Edited by Dragonji, 10 September 2015 - 11:10 AM.


#8
OFFLINE   Purple

Purple

    Advanced Member

  • Banned
  • PipPipPipPip
  • 157 posts
56
Getting Better

Yeah, I thought someone will paste here a proper table for silEnT mod :D

Look LESM for both x)



#9
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland
Could you point me to the line of interest? ;)

#10
OFFLINE   Purple

Purple

    Advanced Member

  • Banned
  • PipPipPipPip
  • 157 posts
56
Getting Better

https://bitbucket.or...le-view-default



#11
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland
It's different than the ones from ETPub Lua docs.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users