Skip to content

Instantly share code, notes, and snippets.

@ZingBallyhoo
ZingBallyhoo / import_objectives.py
Last active August 23, 2024 20:26
datatool area importer
import bpy
import bpy_extras
import json
import mathutils
with open('D:\\ow\\dump\\2.12\\MapObjectives\\Areas.json', 'r') as file:
data = json.load(file)
target_map_name = "Temple of Anubis - A03A - Deathmatch"
string[] sprayNames = new[]
{
"red", "orange", "yellow", "green", "cyan", "purple", "pink", "blue"
};
string[] decorationNames = new[]
{
"snowman", "bauble", "bow", "holly"
};
char[] charMap = new []{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
@ZingBallyhoo
ZingBallyhoo / util-dynamic-choices.cs
Last active February 9, 2020 15:18
DataTool Util Modes JSON format
// root = DynamicChoicesContainer
public class DynamicChoicesContainer {
public Dictionary<string, DynamicChoiceType> Types = new Dictionary<string, DynamicChoiceType>();
}
public class DynamicChoiceType {
public List<DynamicChoice> Choices = new List<DynamicChoice>();
}
// structgen
// generates simple vtable structures for directx objects
// run in a linqpad query or whatever
class VTableInfo {
public readonly string Name;
public readonly List<string> Methods;
public VTableInfo(string name) {
Name = name;
@ZingBallyhoo
ZingBallyhoo / keybase.md
Created August 6, 2017 19:33
keybase.md

Keybase proof

I hereby claim:

  • I am zingballyhoo on github.
  • I am zingballyhoo (https://keybase.io/zingballyhoo) on keybase.
  • I have a public key ASDYl0Hco-MsCL2ubXuoB4-DYO7qujKYUkaDnLWjQ7b2Bgo

To claim this, I am signing this object: