Skip to content

Instantly share code, notes, and snippets.

@phobos2077
phobos2077 / gl_car_travel.ssl
Created May 12, 2024 00:56
FO2 (sfall) car rebalancing script
#include "../sfall/sfall.h"
#include "../sfall/define_lite.h"
#include "../headers/global.h"
#define GAS_TANK_CAPACITY (80000)
/*
Runs continuously during worldmap travel on car.
@phobos2077
phobos2077 / game_fallout2.py
Last active June 13, 2024 23:15
MO2 Fallout 2 plugin
# -*- encoding: utf-8 -*-
from pathlib import Path
from typing import List
from PyQt5.QtCore import QDir
import mobase
from ..basic_features import BasicGameSaveGameInfo
@phobos2077
phobos2077 / Example.cs
Last active September 7, 2018 16:55
Interface-based object references in Unity
public class Example : MonoBehaviour
{
[SerializeField]
private MyInterfaceReference reference;
private void Awake()
{
reference.Value.Quack();
}
}
@phobos2077
phobos2077 / ProBuilderTools.cs
Last active April 14, 2019 16:29
ProBuilder fixed export
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
using UnityEngine.ProBuilder;
using UnityEditor;
using UnityEditor.ProBuilder;
/// <summary>
/// Custom tools for working with ProBuilder.