Dragonji Posted September 8, 2015 Share Posted September 8, 2015 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. Quote Link to comment Share on other sites More sharing options...
Purple Posted September 8, 2015 Share Posted September 8, 2015 (edited) 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 September 8, 2015 by Purple Quote Link to comment Share on other sites More sharing options...
Purple Posted September 9, 2015 Share Posted September 9, 2015 Zelly made this a year or so ago, just stores all player stats via json. https://github.com/Zelly/ZellyLuas/blob/master/ZInfo.lua Quote Link to comment Share on other sites More sharing options...
Zelly Posted September 9, 2015 Share Posted September 9, 2015 Zelly made this a year or so ago, just stores all player stats via json. https://github.com/Zelly/ZellyLuas/blob/master/ZInfo.luaYeah that isn't really completed and it doesn't do damage.I am pretty sure there are a bunch of errors xDIts something to go off of at least Quote Link to comment Share on other sites More sharing options...
Dragonji Posted September 9, 2015 Author Share Posted September 9, 2015 (edited) Found this for ETPub. Does it also apply to silEnT or it's modified some way (weapon indexes of course)? Edited September 9, 2015 by Dragonji Quote Link to comment Share on other sites More sharing options...
Purple Posted September 9, 2015 Share Posted September 9, 2015 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) Quote Link to comment Share on other sites More sharing options...
Dragonji Posted September 10, 2015 Author Share Posted September 10, 2015 (edited) only difference would be MOD/Weapons tableYeah, I thought someone will paste here a proper table for silEnT mod Edited September 10, 2015 by Dragonji Quote Link to comment Share on other sites More sharing options...
Purple Posted September 10, 2015 Share Posted September 10, 2015 Yeah, I thought someone will paste here a proper table for silEnT mod Look LESM for both x) Quote Link to comment Share on other sites More sharing options...
Dragonji Posted September 10, 2015 Author Share Posted September 10, 2015 Could you point me to the line of interest? Quote Link to comment Share on other sites More sharing options...
Purple Posted September 10, 2015 Share Posted September 10, 2015 https://bitbucket.org/zelly/lua-enhanced-server-mod/src/24d70c2c15fe825c0a08bba06cd8f4e98271a4cd/LESM/util/defaults.lua?at=master&fileviewer=file-view-default Quote Link to comment Share on other sites More sharing options...
Dragonji Posted September 10, 2015 Author Share Posted September 10, 2015 It's different than the ones from ETPub Lua docs. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.