Skip to content

Instantly share code, notes, and snippets.

View ChadyG's full-sized avatar

Chad Godsey ChadyG

View GitHub Profile
#-------------------------------------------------
# Generate version based on Git describe
#
# On Windows, assumes tag format is x.y
# Format is [last tag].[commits since tag].[dirty]
# Currently, we throw away the hash because Windows versions do not support non-integer versions.
# The hash would be useful to determine the exact branch/commit from which the executable was built.
# Makes available the version string in C++ define VERSION_STRING
#-------------------------------------------------
bind "ctrl" "+attack1"
bind "alt" "+attack2"
bind "a" "+jump"
bind "z" "+duck"
bind "w" "+moveleft"
bind "q" "+moveright"
bind "shift" "+showscores"
bind "space" "+voicerecord"
bind "mouse1" "+forward"
bind "mouse2" "+back"
//if NS6
if (window.sidebar) {
document.onmousedown = disableselect
document.onclick = reEnable
}
require 'sys/proctable'
include Sys
def parse_opts(options)
val = {}
options.each_slice(2) { |opt|
val[opt.first.downcase] = opt[1]
}
val
options.collect {|opt| opt.downcase}
@ChadyG
ChadyG / PriFromFolder.rb
Last active December 19, 2015 16:59
Qt Pri file generator, pass in a folder and this will generate a pri file including all c(pp) and h files. Other options left to the user to fill in.
#!/usr/bin/ruby
# lol a ruby Pri generator
#
# Because who has time to add all these files?
#
module QTPriGenerator
def writePri(filename, headers, sources)
-nosplash -cpucount=4 -mod=@dayz -beta=Expansion\beta;ca;Expansion\beta\Expansion
@ChadyG
ChadyG / offline.cfg
Created September 14, 2011 03:41
tf2 jump config
sv_cheats 1
cl_showpos 1 //show position in upper right, shows height so you can practice higher jumps
bind b "impulse 101" // replenish ammo
bind n "mp_restartgame 1" //restart round
alias "+speed" "noclip"
alias "-speed" "noclip"
bind "shift" "+speed" //hold shift to noclip (CHANGE IF YOU USE SHIFT FOR SOMETHING ELSE)
@ChadyG
ChadyG / spy.cfg
Created August 24, 2011 17:18
TF2 spy disguise
// Enemy disguises
alias enemy_scout "disguise 1 -1"
alias enemy_soldier "disguise 3 -1"
alias enemy_pyro "disguise 7 -1"
alias enemy_demo "disguise 4 -1"
alias enemy_heavy "disguise 6 -1"
alias enemy_engie "disguise 9 -1"
alias enemy_medic "disguise 5 -1"
alias enemy_sniper "disguise 2 -1"
alias enemy_spy "disguise 8 -1"
@ChadyG
ChadyG / TheBall.txt
Created April 12, 2011 23:42
characters at password prompt in Portal level in The Ball
eeyxr[b*w2m]tlp_5b)(
n}ak%er9n$rcoql!vq
c0%[nc0dyeaulof*o34%
&j4hgu$8v7og}$%@3s#_
!#9v#ge9ek9|[q8z(w(#
1lop_.r"6c%gk[{%t#sw
j&](;_mb,3@1/)*1m/$-
6%&nujm:9#[t:d:_%%m9
ngoei!>+`"^j&+c)r#zh
8mg'no_0@z"6$w#'wto(
@ChadyG
ChadyG / autoexec.cfg
Created October 30, 2010 18:10
TF2 cpu reduction config stuff
//Test networking reduction on CPU
cl_updaterate "40"
cl_cmdrate "40"
cl_interp "0.1"
cl_interp_ratio "1"
cl_lagcompensation "1"
cl_pred_optimize "0"
cl_smooth "0"
cl_smoothtime "0"