mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
38 lines
1.0 KiB
Lua
38 lines
1.0 KiB
Lua
|
|
--[[
|
||
|
|
| This file was obtained through the combined efforts
|
||
|
|
| of Madbluntz & Plymouth Antiquarian Society.
|
||
|
|
|
|
||
|
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||
|
|
| Maloy, DrPepper10 @ RIP, Atle!
|
||
|
|
|
|
||
|
|
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||
|
|
--]]
|
||
|
|
|
||
|
|
ITEM.name = "Placeur de tourelle"
|
||
|
|
ITEM.description = "Un kit de placement de tourelle."
|
||
|
|
ITEM.model = Model("models/combine_turrets/floor_turret.mdl")
|
||
|
|
ITEM.category = "Combine"
|
||
|
|
ITEM.noBusiness = true
|
||
|
|
ITEM.width = 2
|
||
|
|
ITEM.height = 3
|
||
|
|
|
||
|
|
ITEM.functions.place = {
|
||
|
|
name = "Placer",
|
||
|
|
tip = "Placer une tourelle",
|
||
|
|
icon = "icon16/brick_add.png",
|
||
|
|
OnRun = function(item)
|
||
|
|
local client = item.player
|
||
|
|
|
||
|
|
if (!client:Alive()) then return false end
|
||
|
|
client:EmitSound("physics/cardboard/cardboard_box_break3.wav")
|
||
|
|
|
||
|
|
client.previousWep = client:GetActiveWeapon():GetClass()
|
||
|
|
client:Give("weapon_turret_placer")
|
||
|
|
client:SelectWeapon("weapon_turret_placer")
|
||
|
|
|
||
|
|
return true
|
||
|
|
end,
|
||
|
|
OnCanRun = function(item)
|
||
|
|
return (!IsValid(item.entity))
|
||
|
|
end
|
||
|
|
}
|