Skip to content

Instantly share code, notes, and snippets.

View UAVXP's full-sized avatar

VXP UAVXP

View GitHub Profile
@wgetJane
wgetJane / bot_list.txt
Last active December 16, 2021 03:01
List of TF2 cheating bots
//list of "racist" bots
76561197997082461
76561198046091082
76561198071284149
76561198079044188
76561198100822183
76561198124177797
76561198129340377
76561198137601086
76561198143244281
# git clone https://github.com/NVlabs/stylegan2
import os
import numpy as np
from scipy.interpolate import interp1d
from scipy.io import wavfile
import matplotlib.pyplot as plt
import PIL.Image
import moviepy.editor
import dnnlib
@ntrf
ntrf / 1-QuickClipExplanation.md
Last active June 18, 2024 18:15
QuickClip explanation.

Each entity in source engine has two hitboxes - one in quake physics world, and another in havok (or vphys) physics world. This second hitbox is called "physics shadow".

Depending on type of the entity one of the hitboxes is dominant. Each frame results of havok physics simulation for barrels, rollermines, vehicles and etc will be copied over quake hitboxes of entities. For NPCs, rockets and elevators state is copied in reverse direction - quake to havok.

Player is special. Normally quake hitbox will overwrite havok shadow, but only if its movement is not blocked by any havok hitboxes. Player's hitbox will be copied in reverse - from havok to quake - if (a) havok hitbox is valid (not stuck in quake world), (b) player is touching a vphys object.

Quickclip works, because in vehicles havok hitbox has collisions masked out for everything except pickups (health, ammo). When you exit a vehicle, collision mask for havok physics should be changed to normal, but only if vehicle is present in the world. Barnacle fo

@MDFL64
MDFL64 / glua86.lua
Last active October 29, 2018 10:37
-- based on https://github.com/nanochess/fbird
return function(cpu)
local call=cpu.call
local int=cpu.int
local status=cpu.status
local r8=cpu.r8
local r16=cpu.r16
local data8=cpu.data8
local data16=cpu.data16
local stack8=cpu.stack8
// ==UserScript==
// @name Pixel Bot
// @namespace https://tampermonkey.net/
// @version 3.0
// @description try to take over the world!
// @author Flyink13, igoose
// @match https://pixel.vkforms.ru/*
// @grant none
// ==/UserScript==
@donno
donno / fetch_vcdist.py
Last active November 13, 2024 02:24
Downloads and extract the Visual C++ Redistributables.
"""Downloads and extract the Visual C++ Redistributables.
This is useful when working with minidump files as the user may be running
with a new different version of the runtime. This script aims to maintain
a copy of the various versions.
Versions are normally added once I encounter them, in November 2022, I added
a rather large back catalogue of versions.
This requires dark.exe from Wix (http://wixtoolset.org/releases/) and
@meepen
meepen / hook.lua
Last active January 2, 2022 13:55
NEW GMOD HOOKS 70,000% FASTER - new LINKED LIST version available now for purchase (FREE PRIORITIZATION INCLUDED)
hook = include "newhook.lua"
@xbeastguyx
xbeastguyx / ez_data.lua
Last active December 14, 2018 09:14
EZData - The PData Replacement
--[[
EZData - The PData Replacement
By Beast (STEAM_0:0:2316327)
This addon may be used as long as this notice isn't removed. Feel free to let me know what you use it in!
Copyright (C) 2017 Beast
]]
-- Optimizations for functions
local sql_Query = sql.Query
@meepen
meepen / non-powerof2-png-gmod.lua
Last active February 22, 2021 17:40
Loads non power of 2 PNG into a Garry's Mod texture without fucking over scaling.
local function wait_png(matstr)
local html = vgui.Create("DHTML")
html:AddFunction("console", "memeify", function()
html.done = true
end)
local mat = Material(matstr)
local rw, rh = mat:GetInt "$realwidth", mat:GetInt "$realheight"
local f = file.Open("materials/"..matstr, "rb", "GAME")
local cont = f:Read(f:Size())
local red = Color(255,0,0)
local green = Color(0,255,0)
local function log(color,s)
MsgC(color,s .. "\n")
end
function mdmp(out)
local files,_ = file.Find("*.mdmp","BASE_PATH")
if out then log(red,"Found " .. #files .. " files!") end