Skip to content

Instantly share code, notes, and snippets.

John-John Tedro udoprog

Block or report user

Report or block udoprog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Modern Warfare 2019 2.0.asl
state("ModernWarfare")
{
string64 map : 0xB0A1E08;
// Need to use this pointer instead of the address available in modules since
// this changes correctly regardless of how you save/load.
string64 checkpoint : 0xB297DB8, 0x20, 0x108;
// shit the bed on hometown and forward.
// bool missiontext : 0xB2E6B94;
bool missiontext : 0xE7A70DC;
bool prompts : 0xB2E5EA4;
View Modern Warfare 2019.asl
state("ModernWarfare")
{
string255 map : 0xAE9E980;
string255 checkpoint : 0x11821030;
bool cinematics : 0xD9D3110;
}
startup {
settings.Add("proxywar", true, "Fog Of War");
settings.Add("piccadilly", true, "Piccadilly");
View warp_test.rs
use futures::Future;
use warp::Filter;
#[tokio::main]
async fn main() {
let r1 = warp::path("index").and_then(route1);
let r2 = warp::path::param().and_then(route2);
let routes = r1.recover(recover).or(r2.recover(recover));
@udoprog
udoprog / varint.rs
Created Sep 22, 2019
Just a simple variable-length encoding for integers I threw together
View varint.rs
use std::io::{self, Read, Write};
trait Encoder: Sized {
fn encode<W>(self, writer: &mut W) -> io::Result<()>
where
W: Write;
fn decode<R>(reader: &mut R) -> io::Result<Self>
where
R: Read;
}
View DyingLight.asl
state("DyingLightGame")
{
string255 mission: "gamedll_x64_rwdi.dll", 0x01D6D488, 0x0, 0x90, 0x50, 0x18, 0x0;
int loading: "rd3d11_x64_rwdi.dll", 0x7D108;
}
startup
{
settings.Add("quests", true, "Quests");
View tcpproxy.rs
use async_std::{
net::{TcpListener, TcpStream},
task,
};
use failure::Error;
use futures::{future, prelude::*, stream::FuturesUnordered};
/// Handle incoming connections.
async fn handle(socket: TcpStream, remote: &str) -> Result<(), Error> {
let remote = TcpStream::connect(remote).await?;
@udoprog
udoprog / DowngradeUpgrade.ps1
Created Jun 14, 2019
Handle upgrading and downgrading GTA V
View DowngradeUpgrade.ps1
param([switch] $Downgrade=$false)
$Profile = "$env:USERPROFILE\Documents\Rockstar Games\GTA V"
$Game = "D:\Steam\steamapps\common\Grand Theft Auto V"
$SocialClub = "C:\Program Files\Rockstar Games\Social Club"
if (!(Test-Path -Path $Profile)) {
exit
}
@udoprog
udoprog / rtss_limiter.ahk
Last active Aug 18, 2019
AHK script to toggle between two different FPS limits in RTSS
View rtss_limiter.ahk
; Inputs two different FPS values into RivaTunerStatisticsServer when toggled.
#SingleInstance force
values := [144, 116]
stage := 1
focus_row := 1
FOCUS_TOP := 163
FOCUS_LEFT := 18
View fix-leaking-lifetimes.diff
diff --git a/bot/src/module/countdown.rs b/bot/src/module/countdown.rs
index 632d68d..b87f0ba 100644
--- a/bot/src/module/countdown.rs
+++ b/bot/src/module/countdown.rs
@@ -87,6 +87,8 @@ impl super::Module for Module {
handlers.insert("countdown", Handler { sender });
+ let path = self.path.clone();
+
View SlowDown.cs
using System;
using GTA;
using GTA.Native;
using System.Windows.Forms;
namespace Chaos
{
enum Speed
{
Normal,
You can’t perform that action at this time.