Skip to content

Instantly share code, notes, and snippets.

versioninfo
{
"editorversion" "400"
"editorbuild" "6440"
"mapversion" "1"
"formatversion" "100"
"prefab" "0"
}
visgroups
{
if ( CLIENT_DLL )
{
m_panel <- null;
function DisplayPanels()
{
if ( m_panel && m_panel.IsValid() )
return;
//
// bind g drop
//
if ( SERVER_DLL )
{
Convars.RegisterCommand( "drop", function(...)
{
local player = Convars.GetCommandClient();
local weapon = player.GetActiveWeapon();
//
// flashlight
// sethealth <amount> [time]
// setarmor <amount>
// setfov <fov> [rate]
// givehealth <amount>
// givearmor <amount>
// givesuit
// giveall
//
//-----------------------------------------------------------------------
// github.com/samisalreadytaken
//-----------------------------------------------------------------------
//
// Melee attack regardless of weapons player is wielding
//
// +attack3 to swing
//
const ATTACK_DELAY = 0.1;
const SaveIconDisplayTime = 1.25;
const SaveIconFadeTime = 0.75;
if ( CLIENT_DLL )
{
local Time = Time;
local panel, dieTime = 0.0;
local ThinkFadeOut = function(w)
{
for addon in Convars:GetStr("default_enabled_addons_list"):gmatch("[^,]+") do
pcall(require, addon)
end
//-----------------------------------------------------------------------
//
// Load the script
// script_execute swapmodels
//
// Swap every player and bot models to 'MODEL'. Case insensitive
// ( all lowercase, all uppercase, or correct name )
// script s( MODEL )
//
// Example:
@samisalreadytaken
samisalreadytaken / Squirrel.xml
Last active September 6, 2024 05:28
Notepad++ Squirrel language highlighter and VS theme - includes CSGO and L4D2 keywords
<NotepadPlus>
<UserLang name="Squirrel" ext="nut" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1">0x</Keywords>
<Keywords name="Numbers, prefix2">0x</Keywords>