From 6ff5e0e6f4b6df247f64506aa02f40bd1f13ce23 Mon Sep 17 00:00:00 2001 From: Remy Marquis Date: Sat, 18 May 2019 14:48:44 +0200 Subject: [PATCH] added spawn-invul-fair --- spawn-invul-fair/spawn-invul-fair.lua | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 spawn-invul-fair/spawn-invul-fair.lua diff --git a/spawn-invul-fair/spawn-invul-fair.lua b/spawn-invul-fair/spawn-invul-fair.lua new file mode 100644 index 0000000..cf60baf --- /dev/null +++ b/spawn-invul-fair/spawn-invul-fair.lua @@ -0,0 +1,30 @@ +--[[ + ET: Legacy + Copyright (C) 2012-2019 ET:Legacy team + + This file is part of ET: Legacy - http://www.etlegacy.com + + ET: Legacy is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + ET: Legacy is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with ET: Legacy. If not, see . +]]-- + +local modname = "spawn-invul-fair" +local version = "0.1" + +function et_WeaponFire(clientNum, weapNum) + et.gentity_set(clientNum, "ps.powerups", et.PW_INVULNERABLE, 0 ) +end + +function et_InitGame() + et.RegisterModname(modname .. " " .. version) +end