Lua scripts for the Legacy mod
Find a file
2024-03-19 16:23:00 +01:00
announcehp modname and version added 2016-02-06 16:58:13 +01:00
banners fix banners should not be printed during intermission 2020-03-29 13:56:07 +03:00
dynamite dynatimer: quick and dirty fix for lua 5.2.3, refs #609 2014-12-05 22:29:45 +01:00
irc fixed wording 2017-04-02 19:59:13 +02:00
killing-spree Announcing end of killing spree 2018-02-11 17:33:42 +01:00
medic-syringe-heal fix updated 4th arg of G_AddSkillPoints function 2024-03-19 16:23:00 +01:00
spawn-invul-fair expanded spawn-invul-fair script 2019-05-18 17:03:50 +02:00
TESTS renamed CS_LEGACYINFO config string to CS_MODINFO 2020-05-17 00:27:38 +02:00
README.md fix banners should not be printed during intermission 2020-03-29 13:56:07 +03:00

Lua scripts

banners

Banner management system for legacy mod.

Reserves next cvars to configure banners:

  • g_bannerTime sets banner change interval (default 5000)
  • g_bannerLocation sets banner print location (default top)
    Possible values:
    • top top of the screen, banner print spot (bp)
    • left popup messages (cpm)
    • center center print (cp)
    • chat chat print (chat)
  • g_bannerN (where N is a number in range of 1 to 10) sets banner messages

All cvars should be filled before lua module gets initialized.

  • This script is intended for legacy 2.77+ mod.

dynamite

  • Clients can toggle dynatimer with setu v_dynatimer 1/0

announcehp

  • Killer's HP is displayed to their victims.

medic-syringe-heal

Allows medics to heal nearly dead players using syringe.

If player has less than 25% of the health, medic can use syringe to heal the teammates either to full or half health, depending on medic healing skill level (eg. medic level 3 or more, heals teammate to the full health).

  • This script is intended for legacy 2.77+ mod.

spawn-invul-fair

Remove spawn shield protection when firing.

  • This script is intended for legacy 2.77+ mod.

Notes

  • Please always add modname and version to your lua script
modname="NameofLua"
version="1.0"

function et_InitGame()
        et.RegisterModname(modname.." "..version)
end