Skip to content

Instantly share code, notes, and snippets.

View uniboi's full-sized avatar
🌰
squirrel enthusiast

uniboi

🌰
squirrel enthusiast
View GitHub Profile
@uniboi
uniboi / vec.c
Created December 21, 2023 13:20
dynamic vector implementation
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
typedef int i32;
typedef unsigned int u32;
typedef long long i64;
typedef unsigned long long u64;
@uniboi
uniboi / create_diff_folder.py
Last active November 3, 2022 19:27
copy scripts to compare for diffs
# shit script I cobbled together in an hour
import os
import glob
import shutil
# vanilla files coop pr uploads
changed_files = [
"sp_crashsite_script.ent",
"sp_s2s_script.ent",
"_event.gnut",
@uniboi
uniboi / CreateWeaponTracer.nut
Last active July 28, 2022 17:48
Titanfall 2 script to create a weapon tracer with an invisible weapon or none at all
// thanks to The peepeepoopoo man#3301
// basically ripped out of _arc_cannon.nut
void function CreateWeaponTracer( vector startPos, vector endPos, float lifeDuration, asset tracerAsset = $"P_wpn_tracer" )
{
entity cpEnd = CreateEntity( "info_placement_helper" )
cpEnd.SetOrigin( endPos )
SetTargetName( cpEnd, UniqueString( "arc_cannon_beam_cpEnd" ) )
DispatchSpawn( cpEnd )
entity tracer = CreateEntity( "info_particle_system" )