Skip to content

Instantly share code, notes, and snippets.

@LWSS
LWSS / bazinga.dota
Created February 19, 2019 20:40
dota netvar dump
This file has been truncated, but you can view the full file.
***************** Start of Log *****************
CAdditionalWearable - NumOfVars: 74
(1)m_flAnimTime -> float32 @ 0x210
(2)m_flSimulationTime -> float32 @ 0x214
(3)m_hOwnerEntity -> CHandle< C_BaseEntity > @ 0x2d8
(4)m_nMuzzleFlashParity -> uint8 @ 0x623
(5)m_CBodyComponent -> CBodyComponent* @ 0x48
(6)m_pEntity -> CEntityIdentity* @ 0x10
@LWSS
LWSS / gist:f3fe111a89fd7427bb37de5abe17d588
Last active September 30, 2023 17:15
csgo sounds 2019
physics/shield/bullet_hit_shield_07.wav
physics/shield/bullet_hit_shield_06.wav
physics/shield/bullet_hit_shield_05.wav
physics/shield/bullet_hit_shield_04.wav
physics/shield/bullet_hit_shield_03.wav
physics/shield/bullet_hit_shield_02.wav
physics/shield/bullet_hit_shield_01.wav
player/winter/snowball_throw_04.wav
player/winter/snowball_throw_03.wav
player/winter/snowball_throw_02.wav
@LWSS
LWSS / gcc.patch
Created April 23, 2020 09:04
patches for gcc 4.6.3. Tested and working
--- gcc/config/i386/linux-unwind_old.h 2020-04-23 01:24:02.340521262 -0700
+++ gcc/config/i386/linux-unwind.h 2020-04-23 01:25:27.189316948 -0700
@@ -47,7 +47,7 @@
if (*(unsigned char *)(pc+0) == 0x48
&& *(unsigned long *)(pc+1) == 0x050f0000000fc0c7)
{
- struct ucontext *uc_ = context->cfa;
+ ucontext_t *uc_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.
The aliasing warning is correct, but should not be a problem
@LWSS
LWSS / gist:9d2cd3205d197545d64fd27ee897fd53
Created April 29, 2020 18:37
wip cstrike building instructions
####################### INSTALLING GCC 4.6.3( OPTIONAL AND NOT RECOMMENDED! SKIP THIS ) #######################
mkdir -p /opt/gcc-4.6/
cd /opt/gcc-4.6/
wget http://ftp.gnu.org/gnu/gcc/gcc-4.6.3/gcc-4.6.3.tar.gz
tar -xvf gcc*
cd gcc-4.6.3/
# we need to make some changes to get this running on new linux
# I have conveniently made some patches for you
# https://gist.github.com/LWSS/fae2d3c34205dc0074ddd9ed767e7e99