This file contains hidden or 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
bool PerformStep( | |
QAngle src, | |
QAngle dst, | |
float maxStep, | |
SourceSDK::QAngle &res) | |
{ | |
Vector delta = dst - src; | |
res = src; | |
if(delta.Length() > maxStep) { | |
res += (delta.Normalized() * maxStep); |
This file contains hidden or 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
static int times = 0; | |
if(g_Options.MiscHideName) { | |
static SourceSDK::ConVar* name = SourceSDK::Interfaces::CVar()->FindVar("name"); | |
*reinterpret_cast<int*>(reinterpret_cast<DWORD>(&name->m_fnChangeCallbacks) + 0xC) = 0; | |
if(times < 50) { | |
static string szName = "\n"; | |
if(szName[0] == '\n') { | |
for(int i = 1; i < SourceSDK::Interfaces::EngineClient()->GetMaxClients(); i++) { | |
auto pEntity = static_cast<C_CSPlayer*>(SourceSDK::Interfaces::EntityList()->GetClientEntity(i)); | |
SourceSDK::player_info_t info; |
This file contains hidden or 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
static int times = 0; | |
if(g_Options.MiscHideName) { | |
static SourceSDK::ConVar* name = SourceSDK::Interfaces::CVar()->FindVar("name"); | |
*reinterpret_cast<int*>(reinterpret_cast<DWORD>(&name->m_fnChangeCallbacks) + 0xC) = 0; | |
if(times < 50) { | |
static string szName = "\n"; | |
if(szName[0] == '\n') { | |
for(int i = 1; i < SourceSDK::Interfaces::EngineClient()->GetMaxClients(); i++) { | |
auto pEntity = static_cast<C_CSPlayer*>(SourceSDK::Interfaces::EntityList()->GetClientEntity(i)); | |
SourceSDK::player_info_t info; |
This file contains hidden or 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
UCHAR pCodeBuffer[] = | |
{ | |
0x55, //push ebp // 0x00 | |
0x89, 0xE5, //mov ebp,esp // 0x01 | |
0x68, 0x00, 0x00, 0x00, 0x00, //push pModuleHandle // 0x03 | |
0x68, 0x00, 0x00, 0x00, 0x00, //push pszModulePath // 0x08 | |
0x6A, 0x00, //push 0 // 0x0D | |
0x6A, 0x00, //push 0 // 0x0F | |
0xE8, 0x00, 0x00, 0x00, 0x00, //call LdrLoadDll // 0x11 | |
0x5D, //pop ebp // 0x16 |
This file contains hidden or 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
NTSTATUS RDrvInjectModule( | |
IN PINJECT_MODULE pInput, | |
OUT PINJECT_MODULE_RESULT pOutput | |
) { | |
NTSTATUS status = STATUS_SUCCESS; | |
PEPROCESS pProcess = NULL; | |
KAPC_STATE apc; | |
status = PsLookupProcessByProcessId((HANDLE)pInput->TargetProcessId, &pProcess); | |
if(NT_SUCCESS(status)) { |
This file contains hidden or 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
#include "SpoofedConvar.hpp" | |
using namespace SourceEngine; | |
SpoofedConvar::SpoofedConvar(const char* szCVar) { | |
m_pOriginalCVar = SourceEngine::Interfaces::CVar()->FindVar(szCVar); | |
Spoof(); | |
} | |
SpoofedConvar::SpoofedConvar(SourceEngine::ConVar* pCVar) { | |
m_pOriginalCVar = pCVar; |
This file contains hidden or 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
"use strict"; | |
var irc = require("tmi.js"); | |
var mysql = require('mysql'); | |
var database_options = { | |
host : 'localhost', | |
user : 'root', | |
password : 'password', | |
database : 'irc_logger' | |
}; |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import praw | |
import time | |
import datetime | |
#default value | |
COUNTER = 2276 |
NewerOlder