Files
wnsrc/gamemodes/ixhl2rp/schema/classes/sh_overwatch_scanner.lua

30 lines
791 B
Lua
Raw Normal View History

2024-08-04 23:12:27 +03:00
--[[
| 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/
--]]
CLASS.name = "Overwatch Scanner"
CLASS.description = "An Overwatch scanner, it utilises Combine technology."
CLASS.faction = FACTION_OVERWATCH
function CLASS:CanSwitchTo(client)
return Schema:IsCombineRank(client:Name(), "SCN") or Schema:IsCombineRank(client:Name(), "Disp:AI")
end
function CLASS:OnSpawn(client)
local scanners = ix.plugin.list["scannerplugin"]
if (scanners) then
timer.Simple(0.1, function()
scanners:CreateScanner(client, nil)
end)
end
end
CLASS_OW_SCANNER = CLASS.index