modname and version added

Added modname and version to show it with /lua_status
This commit is contained in:
estorado 2016-02-06 16:58:13 +01:00
parent 8b2bca2b20
commit c0a6dac4b1

View file

@ -1,4 +1,11 @@
--Source: http://lua.wolffiles.de/?fileid=32 --Source: http://lua.wolffiles.de/?fileid=32
modname="AnnounceHP"
version="1.0"
function et_InitGame()
et.RegisterModname(modname.." "..version)
end
function et_Obituary(victimnum, killernum, meansofdeath) function et_Obituary(victimnum, killernum, meansofdeath)
local victimteam = tonumber(et.gentity_get(victimnum, "sess.sessionTeam")) local victimteam = tonumber(et.gentity_get(victimnum, "sess.sessionTeam"))
local killerteam = tonumber(et.gentity_get(killernum, "sess.sessionTeam")) local killerteam = tonumber(et.gentity_get(killernum, "sess.sessionTeam"))