ETWsk is an etpro lua script that tries to reduce spawnkilling on public funservers.
ETWsk aims to reduce spawnkilling (SK) on public funservers. An SK here is if someone kills an enemy near a fix spawn point. A fix spawn point means that it can not be cleared by the enemy. E.g. on radar map, the allied Side Gate spawn is not fix as the axis can destroy the command post. However, the Main Bunker spawn is fix after the Allies have destroyed the Main Gate. ETWsk does not prevent but it detects and counts SKs for every player. If a player has caused a certain number of SKs, he gets punished (putspec, kick, ban, ...). As the detection of fix spawns is difficult especially on custom maps, little configuration work has to be done.
set lua_modules "ETWsk.lua"
"ETWsk.lua otherscript.lua"
reset_match
is sufficient).
local c = {spawns = {}, actions = {}, defaults = true}
<spawn definitions>
<action definitions>
return c
where:
spawn definitions:
c.spawn[<spawn-num>] = {<spawn-fields>}
spawn-num: spawn index (see /etwsk_spawns command)
spawn-fields: - comma-separated list of "key = value"
- for existing spawns all fields are optional (they overwrite default values).
- fields:
name = <String> : name of spawn point
state = NO_PROTECT|PROTECT_ALLIES|PROTECT_AXIS
pos = {x,y,z} : map coordinates of spawn point
radius1 = <Int> : protection radius for normal weapons
radius2 = <Int> : protection radius for heavy weapons
action definitions: actions are definitions of transitions of one state of a spawn point into another one triggered by a message.
c.action[<ction-num>] = {<action-fields>}
action-num: just an increment number
action-fields: - comma-separated list of "key = value"
- all fields are mandatory
- fields:
spawn = <pawn-num>
newstate = NO_PROTECT|PROTECT_ALLIES|PROTECT_AXIS
trigger = <String>: part of a message that is displayed by the server on a specific event.
c.defaults = false
to the definitions for a map.