mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
66 lines
2.4 KiB
Lua
66 lines
2.4 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/
|
||
|
|
--]]
|
||
|
|
|
||
|
|
/*--------------------------------------------------
|
||
|
|
=============== Autorun File ===============
|
||
|
|
*** Copyright (c) 2012-2018 by DrVrej, All rights reserved. ***
|
||
|
|
No parts of this code or any of its contents may be reproduced, copied, modified or adapted,
|
||
|
|
without the prior written consent of the author, unless otherwise indicated for stand-alone materials.
|
||
|
|
--------------------------------------------------*/
|
||
|
|
------------------ Addon Information ------------------
|
||
|
|
local PublicAddonName = "Zombies + Enemy Aliens"
|
||
|
|
local AddonName = "Zombies + Enemy Aliens"
|
||
|
|
local AddonType = "SNPC"
|
||
|
|
local AutorunFile = "autorun/schizo_antlion.lua"
|
||
|
|
-------------------------------------------------------
|
||
|
|
local VJExists = file.Exists("lua/autorun/vj_base_autorun.lua","GAME")
|
||
|
|
|
||
|
|
if VJExists == true then
|
||
|
|
include('autorun/vj_controls.lua')
|
||
|
|
|
||
|
|
local vCat = "WN:Antlion Arc"
|
||
|
|
|
||
|
|
VJ.AddNPC("Antlion Soldier","npc_antlion_schizo_soldier",vCat)
|
||
|
|
VJ.AddNPC("Antlion Drone","npc_antlion_schizo_drone",vCat)
|
||
|
|
VJ.AddNPC("Antlion Fireant","npc_antlion_schizo_fireant",vCat)
|
||
|
|
|
||
|
|
|
||
|
|
-- !!!!!! DON'T TOUCH ANYTHING BELOW THIS !!!!!! -------------------------------------------------------------------------------------------------------------------------
|
||
|
|
AddCSLuaFile(AutorunFile)
|
||
|
|
VJ.AddAddonProperty(AddonName,AddonType)
|
||
|
|
else
|
||
|
|
if (CLIENT) then
|
||
|
|
chat.AddText(Color(0,200,200),PublicAddonName,
|
||
|
|
Color(0,255,0)," was unable to install, you are missing ",
|
||
|
|
Color(255,100,0),"VJ Base!")
|
||
|
|
end
|
||
|
|
timer.Simple(1,function()
|
||
|
|
if not VJF then
|
||
|
|
if (CLIENT) then
|
||
|
|
VJF = vgui.Create("DFrame")
|
||
|
|
VJF:SetTitle("ERROR!")
|
||
|
|
VJF:SetSize(790,560)
|
||
|
|
VJF:SetPos((ScrW()-VJF:GetWide())/2,(ScrH()-VJF:GetTall())/2)
|
||
|
|
VJF:MakePopup()
|
||
|
|
VJF.Paint = function()
|
||
|
|
draw.RoundedBox(8,0,0,VJF:GetWide(),VJF:GetTall(),Color(200,0,0,150))
|
||
|
|
end
|
||
|
|
|
||
|
|
local VJURL = vgui.Create("DHTML",VJF)
|
||
|
|
VJURL:SetPos(VJF:GetWide()*0.005, VJF:GetTall()*0.03)
|
||
|
|
VJURL:Dock(FILL)
|
||
|
|
VJURL:SetAllowLua(true)
|
||
|
|
VJURL:OpenURL("https://sites.google.com/site/vrejgaming/vjbasemissing")
|
||
|
|
elseif (SERVER) then
|
||
|
|
timer.Create("VJBASEMissing",5,0,function() print("VJ Base is Missing! Download it from the workshop!") end)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end)
|
||
|
|
end
|