2013-11-17 21:13:11 +00:00
# Lua scripts
2013-04-06 11:22:22 +00:00
2019-05-18 12:53:56 +00:00
* Lua scripts for the Legacy mod. They might or might not work with other mods.
* Lua API doc: see https://legacy-lua-api.readthedocs.io
2013-09-22 06:52:53 +00:00
2018-12-30 17:34:35 +00:00
## banners
2016-10-21 20:13:22 +00:00
2019-11-14 22:57:34 +00:00
Banner management system for `legacy` mod.
2019-11-14 22:52:17 +00:00
Reserves next cvars to configure banners:
* `g_bannerTime` sets banner change interval (default `5000` )
2019-11-14 22:57:34 +00:00
* `g_bannerLocation` sets banner print location (default `top` )
2019-11-14 22:52:17 +00:00
Possible values:
* `top` top of the screen, banner print spot (`bp`)
* `left` popup messages (`cpm`)
* `center` center print (`cp`)
* `chat` chat print (`chat`)
2020-03-29 10:56:07 +00:00
* `g_bannerN` (where N is a number in range of `1` to `10` ) sets banner messages
2019-11-14 22:52:17 +00:00
All cvars should be filled before lua module gets initialized.
* This script is intended for legacy `2.77+` mod.
2013-09-22 06:52:53 +00:00
## dynamite
2013-04-06 11:57:34 +00:00
2013-09-22 06:52:53 +00:00
* Clients can toggle dynatimer with `setu v_dynatimer 1/0`
2013-11-17 21:13:11 +00:00
2016-01-17 21:21:10 +00:00
## announcehp
* Killer's HP is displayed to their victims.
2017-03-04 19:01:56 +00:00
2019-04-13 08:30:24 +00:00
## 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.
2019-05-18 12:53:56 +00:00
## spawn-invul-fair
Remove spawn shield protection when firing.
* This script is intended for legacy `2.77+` mod.
2016-02-06 16:03:24 +00:00
# Notes
* Please always add modname and version to your lua script
```
modname="NameofLua"
version="1.0"
function et_InitGame()
et.RegisterModname(modname.." "..version)
end
```