Skip to content

Instantly share code, notes, and snippets.

View sigsegv-mvm's full-sized avatar

sigsegv sigsegv-mvm

View GitHub Profile
@sigsegv-mvm
sigsegv-mvm / paintkit_perf2.pop
Created July 31, 2015 02:16
MvM performance destroyer popfile
#base robot_giant.pop
#base robot_standard.pop
WaveSchedule
{
StartingCurrency 10000
RespawnWaveTime 2
CanBotsAttackWhileInSpawnRoom no
AddSentryBusterWhenDamageDealtExceeds 1000000
AddSentryBusterWhenKillCountExceeds 10000
@sigsegv-mvm
sigsegv-mvm / conddetector.sp
Created August 2, 2015 07:10
SourceMod plugin for detecting when players have conditions added/removed
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <tf2>
public OnPluginStart()
{
PrintToServer("sigsegv's addcond/removecond detector");
}
@sigsegv-mvm
sigsegv-mvm / DT_MannVsMachineStats.txt
Last active August 29, 2015 14:26
CMannVsMachineStats data table
-- [ CMannVsMachineStats | [8] ]
-- > baseclass [0x0000]
-- SUB [ DT_BaseEntity | [27] ]
-- -- > AnimTimeMustBeFirst [0x0000]
-- SUB [ DT_AnimTimeMustBeFirst | [1] ]
-- -- > m_flAnimTime [0x0064]
-- END SUB [ DT_AnimTimeMustBeFirst | [1] ]
-- -- > m_flSimulationTime [0x006C]
-- -- > m_ubInterpolationFrame [0x0078]
-- -- > m_vecOrigin [0x0364]
@sigsegv-mvm
sigsegv-mvm / DT_PlayerResource.txt
Created August 7, 2015 22:30
CTFPlayerResource data table
-- [ CTFPlayerResource | [20] ]
-- > baseclass [0x0000]
-- SUB [ DT_PlayerResource | [7] ]
-- -- > m_iPing [0x05DC]
-- SUB [ m_iPing | [34] ]
-- -- > 000 [0x0000]
-- -- > 001 [0x0004]
-- -- > 002 [0x0008]
-- -- > 003 [0x000C]
-- -- > 004 [0x0010]
@sigsegv-mvm
sigsegv-mvm / DT_ObjectiveResource_excerpt.txt
Created August 9, 2015 04:15
CTFObjectiveResource excerpt showing that wave status has an upper limit of 24
-- > m_nMannVsMachineWaveClassCounts [0x1A48]
-- SUB [ m_nMannVsMachineWaveClassCounts | [12] ]
-- -- > 000 [0x0000]
-- -- > 001 [0x0004]
-- -- > 002 [0x0008]
-- -- > 003 [0x000C]
-- -- > 004 [0x0010]
-- -- > 005 [0x0014]
-- -- > 006 [0x0018]
-- -- > 007 [0x001C]
@sigsegv-mvm
sigsegv-mvm / wavecount_setup.txt
Created August 9, 2015 04:16
Debug output from hooking various CTFObjectiveResource functions during the loading of mvm_ghost_town_test.pop from SP458
[WaveCount] ClearFlags
[WaveCount] SetName [idx:0] = "scout"
[WaveCount] SetCount [idx:0] = 20
[WaveCount] AddFlags [idx:0] = 0001
[WaveCount] SetName [idx:1] = "soldier"
[WaveCount] SetCount [idx:1] = 20
[WaveCount] AddFlags [idx:1] = 0001
[WaveCount] SetName [idx:2] = "pyro"
[WaveCount] SetCount [idx:2] = 20
[WaveCount] AddFlags [idx:2] = 0001
@sigsegv-mvm
sigsegv-mvm / red2robot.sp
Created August 21, 2015 22:40
red2robot
#include <sourcemod>
#include <sdktools>
#include <tf2_stocks>
public Plugin:myinfo =
{
name = "[TF2] Red2Robot",
author = "Bitl",
description = "Change your team to robot!",
version = "1.5.1",
@sigsegv-mvm
sigsegv-mvm / banana.sp
Last active May 16, 2017 13:49
Automatic Bananaifier
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <tf2>
#include <tf2_stocks>
#include <tf2items>
#include <tf2wearables>
#include <equipwearable>
@sigsegv-mvm
sigsegv-mvm / gist:7e76c0fa4b526d73c371
Created September 7, 2015 06:06
Bison CTakeDamageInfo
CTFPlayer::OnTakeDamage
player entindex: 10
m_vecDamageForce: 0.00e+00 0.00e+00 0.00e+00
m_vecDamagePosition: 0.00e+00 0.00e+00 0.00e+00
m_vecReportedPosition: -7.29e+02 4.75e+03 1.55e+02
m_hInflictor: 00000056
m_hAttacker: 00000001
m_hWeapon: 00000056 (ID: 78 RAYGUN)
m_flDamage: 12.0
m_flMaxDamage: 12.0
@sigsegv-mvm
sigsegv-mvm / dumpclientcmdkv.sp
Created September 7, 2015 20:54
ClientCommandKeyValues dumper
#include <sourcemod>
#include <tf2>
#include <clients>
#include <keyvalues>
#include <tf2>
#include <tf2_stocks>
#include <sdktools>
#include <sdkhooks>