Skip to content

Instantly share code, notes, and snippets.

#include <chrono>
#include <thread>
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <Windows.h>
/**
* perf_timer_delay - High resolution CPU timer sleep
#include <chrono>
#include <thread>
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <Windows.h>
/**
* perf_timer_delay - High resolution CPU timer sleep
#include <chrono>
#include <thread>
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <Windows.h>
/**
* perf_timer_delay - High resolution CPU timer sleep
#include <chrono>
#include <thread>
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <Windows.h>
/**
* perf_timer_delay - High resolution CPU timer sleep
#include <chrono>
#include <thread>
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <Windows.h>
/**
* perf_sleep - High resolution CPU timer sleep
/*
* This plugin alters view punch to better reflect the recoil that's actually
* applied. The problem is that viewpunch is linearly proportionate to the
* increase in recoil velocity, but a higher velocity also means the recoil will
* increase for a longer time and take longer to decay. This plugin modifies
* viewpunch to increase exponentially with recoil velocity increase.
*/
#include "util.h"
#include "plugin.h"
#include <stdexcept>
#include <string.h>
#include <stdlib.h>
#define BEEPER_PIN 2
#define UNIT_MS 100
#define UNIT_US (1000L * UNIT_MS)
#define DOT 0
#define DASH 1
#include <string.h>
#include <stdlib.h>
#define BEEPER_PIN 2
#define UNIT_MS 50
#define UNIT_US (1000L * UNIT_MS)
#define DOT 0
#define DASH 1
#include <string.h>
#include <stdlib.h>
#define BEEPER_PIN 2
#define UNIT_MS 50
#define UNIT_US (1000L * UNIT_MS)
#define DOT 0
#define DASH 1
#include <string.h>
#include <stdlib.h>
#define BEEPER_PIN 2
#define UNIT_MS 50
#define UNIT_US (1000L * UNIT_MS)
#define DOT 0
#define DASH 1