Skip to content

Instantly share code, notes, and snippets.

View IlyaShastin's full-sized avatar

Ilya Shastin IlyaShastin

View GitHub Profile
@IlyaShastin
IlyaShastin / 3DPaintablePanel.lua
Last active December 16, 2020 06:36
Paint 2D in 3D on 2D screen!
if SERVER then return end
vgui.Paint3D = {} -- Table in global vgui table to hold our stuff
vgui.Paint3D.Panels = {} -- Table containing panels to be 3D painted
vgui.Paint3D.Movement = {} -- Table containing panels to be affected by movement
vgui.Paint3D.Cache = {}
--
-- Grab a few important variables for view calc and save them in the global vgui table.
@IlyaShastin
IlyaShastin / default.lua
Created October 12, 2017 20:50
Default config file and default theme file for Voice Chat Graphs v1.3.0. https://www.gmodstore.com/scripts/view/2644
--[[---------------------------------------------------------------
Default Voice Chat Box Theme
- Please avoid directly editting this file, instead you
should create a new file in this directory (voicethemes) and
copy the contents of this file into the new one, then
make your edits in there. After you are finished with your
theme, make sure to set it in the config file.
-------------------------------------------------------------------]]
@IlyaShastin
IlyaShastin / server_down_config.lua
Created October 12, 2017 20:43
Default config file for Server Crash Screen v1.1.0. https://www.gmodstore.com/scripts/view/2691
-- Time in seconds before the screen should atempt to
-- reconnect to the server.
-- Default: after 60 seconds.
ServerDown[ 'ReconnectTime' ] = 60
-- The time interval at which the server should ping the client.
-- Default: every 2 seconds.
ServerDown[ 'PingTime' ] = 2
@IlyaShastin
IlyaShastin / scoreboard_config.lua
Created October 12, 2017 20:41
Default config file for Simple DarkRP Scoreboard v1.0.2. https://www.gmodstore.com/scripts/view/2939
-- This option will allow you to hide what players have what amount of money
-- on the graphs page.
SimpleScoreboard[ 'HidePlayerMoney' ] = false
-- Return true to allow access to the player options when clicking
-- on a players name on the scoreboard.
SimpleScoreboard[ 'CanAccessAdimOptions' ] = function( ply )
-- Only players that are admins will be able to open the options.
return ply:IsAdmin()
@IlyaShastin
IlyaShastin / mapvote_config.lua
Last active October 12, 2017 20:36
Default config file for Solid Map Vote v1.1.5A. https://www.gmodstore.com/scripts/view/3861
-- Time in seconds until the mapvote is over from
-- when it starts.
SolidMapVote[ 'Config' ][ 'Length' ] = 30
-- The time in seconds that the vote will stay on the screen
-- after the winning map has been chosen.
SolidMapVote[ 'Config' ][ 'Post Vote Length' ] = 5
-- This option controls the size of the map vote buttons.
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->