--[[ This file is part of Ice Lua Components. Ice Lua Components is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Ice Lua Components 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Ice Lua Components. If not, see . ]] local thisid = ... if client then weapon_models[thisid] = model_load({ kv6 = { bdir = DIR_PKG_KV6, name = "rifle.kv6", scale = 1.0/128.0, }, pmf = { bdir = DIR_PKG_PMF, name = "rifle.pmf", }, }, {"kv6", "pmf"}) end weapon_names[thisid] = "Rifle" return function (plr) local this = tpl_gun(plr, { dmg = { head = 100, body = 49, legs = 33, }, block_damage = MODE_BLOCK_DAMAGE_RIFLE, ammo_clip = 10, ammo_reserve = 50, time_fire = 1/2, time_reload = 2.5, recoil_x = 0.0001, recoil_y = -0.05, model = client and (weapon_models[thisid] {}), name = "Rifle", }) return this end