Jump to content

TimOOn

Members
  • Posts

    7
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    TimOOn reacted to gaoesa in KR/PRW Lua   
    Sorry, I didn't realize the field names were missing. I added them now. They are sess.overall_killrating and sess.rating for PRW. If you want them in the same format as they are in the scoreboard, the formula for kill rating is:
     
    (1.0 / (1.0+exp(-(sess.overall_killrating*(1.0 / sqrt(1.0+sess.overall_killvariance*3.0/(M_PI*M_PI))))))) / (1.0 - (1.0 / (1.0+exp(-(sess.overall_killrating*(1.0 / sqrt(1.0+sess.overall_killvariance*3.0/(M_PI*M_PI))))))))
     
    ,where M_PI is 3.14159265358979323846
     
    Maybe a bit clearer in Lua
    function kill_probability(net, g_of_x_margin) return 1.0 / (1.0+math.exp(-(net*g_of_x_margin))) end function g_of_x(variance) local M_PI = 3.14159265358979323846 return 1.0 / math.sqrt(1.0+variance*3.0/(M_PI*M_PI)) end function GetKillRating local probability = kill_probability(rating,g_of_x(variance)) return probability / (1.0f - probability) end No guarantees that the script works.
  2. Like
    TimOOn reacted to gaoesa in LUA et_Obituary   
    Behaviour depends on the g_logOptions flag 1.
    http://mygamingtalk.com/wiki/index.php/Silent_Mod_Server_Cvar#g_logOptions
  3. Like
    TimOOn got a reaction from gaoesa in !rename bug   
    Yup, its just a single function.
    function et_ClientCommand(clientNum, cmd) cmd = string.lower(cmd) if string.find(et.trap_Argv(1), "!rename") or cmd == "!rename" then if string.find(et.ConcatArgs(1), "\\") then et.trap_SendServerCommand( clientNum, "print \"^orename: ^7can't use names with a \'\\\'\n\"" ) return 1 else return 0 end end end
×
×
  • Create New...