This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
versioninfo | |
{ | |
"editorversion" "400" | |
"editorbuild" "6440" | |
"mapversion" "1" | |
"formatversion" "100" | |
"prefab" "0" | |
} | |
visgroups | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( CLIENT_DLL ) | |
{ | |
m_panel <- null; | |
function DisplayPanels() | |
{ | |
if ( m_panel && m_panel.IsValid() ) | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// bind g drop | |
// | |
if ( SERVER_DLL ) | |
{ | |
Convars.RegisterCommand( "drop", function(...) | |
{ | |
local player = Convars.GetCommandClient(); | |
local weapon = player.GetActiveWeapon(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// flashlight | |
// sethealth <amount> [time] | |
// setarmor <amount> | |
// setfov <fov> [rate] | |
// givehealth <amount> | |
// givearmor <amount> | |
// givesuit | |
// giveall | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------- | |
// github.com/samisalreadytaken | |
//----------------------------------------------------------------------- | |
// | |
// Melee attack regardless of weapons player is wielding | |
// | |
// +attack3 to swing | |
// | |
const ATTACK_DELAY = 0.1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SaveIconDisplayTime = 1.25; | |
const SaveIconFadeTime = 0.75; | |
if ( CLIENT_DLL ) | |
{ | |
local Time = Time; | |
local panel, dieTime = 0.0; | |
local ThinkFadeOut = function(w) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for addon in Convars:GetStr("default_enabled_addons_list"):gmatch("[^,]+") do | |
pcall(require, addon) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------- | |
// | |
// 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |