From c0a6dac4b1676081859cc3c46ea82cc43d3a06c0 Mon Sep 17 00:00:00 2001 From: estorado Date: Sat, 6 Feb 2016 16:58:13 +0100 Subject: [PATCH 1/3] modname and version added Added modname and version to show it with /lua_status --- announcehp/announcehp.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/announcehp/announcehp.lua b/announcehp/announcehp.lua index c991286..f2174ca 100644 --- a/announcehp/announcehp.lua +++ b/announcehp/announcehp.lua @@ -1,4 +1,11 @@ --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) local victimteam = tonumber(et.gentity_get(victimnum, "sess.sessionTeam")) local killerteam = tonumber(et.gentity_get(killernum, "sess.sessionTeam")) From a3e8b86191342b5332cca4ae0e80e2b85bf9ad19 Mon Sep 17 00:00:00 2001 From: estorado Date: Sat, 6 Feb 2016 17:03:24 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fcbbd44..1d0c4b2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Lua scripts -Lua scripts for the Legacy mod +Lua scripts for the Legacy mod. ## CONSTANTS @@ -39,3 +39,15 @@ Lua scripts for the Legacy mod ## announcehp * Killer's HP is displayed to their victims. + +# Notes +* Please always add modname and version to your lua script +``` +modname="NameofLua" +version="1.0" + +function et_InitGame() + et.RegisterModname(modname.." "..version) +end +``` + From 6c438535f58cd8fa56ee757c57b1f89f9015ee3d Mon Sep 17 00:00:00 2001 From: estorado Date: Sat, 6 Feb 2016 17:03:43 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d0c4b2..7bca412 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Lua scripts -Lua scripts for the Legacy mod. +* Lua scripts for the Legacy mod. ## CONSTANTS