mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
29
gamemodes/ixhl2rp/schema/classes/sh_overwatch_scanner.lua
Normal file
29
gamemodes/ixhl2rp/schema/classes/sh_overwatch_scanner.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
--[[
|
||||
| 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
|
||||
Reference in New Issue
Block a user