Skip to content

Instantly share code, notes, and snippets.

@Seb105
Seb105 / partybus.sqf
Created September 28, 2023 17:19
party bus!
["UK3CB_Ikarus", "init", {
params ["_bus"];
if (isServer) then {
private _dudes = [
"C_man_1",
"C_Man_casual_1_F",
"C_Man_casual_3_F",
"C_Man_casual_2_F",
"C_Man_casual_6_v2_F",
"C_Man_formal_2_F",
@Seb105
Seb105 / fn_window.sqf
Last active October 26, 2022 20:18
Arma 3 window script
params ["_window1", "_window2"];
private _windowCam = "camera" camCreate [0,0,0];
private _texRef = hashValue _windowCam + "rtt";
private _texString = "#(argb,512,512,1)r2t(" + _texRef + ",1)";
_windowCam cameraEffect ["internal", "back", _texRef];
_windowCam camCommit 0;
_window1 setObjectTexture [0, _texString];
private _bbr = boundingBoxReal _window1;
private _p1 = _bbr select 0;
private _p2 = _bbr select 1;
@Seb105
Seb105 / spider.sqf
Created July 25, 2022 11:13
Giant Death Spider
params ["_core"];
if !(isServer) exitwith {};
// 1 = normal, 2 = 2x, 3 = 3x, 4 = 4x, 5 = 5x
spider_overall_speed = 1;
// per point, not per "leg"
spider_arm_length = 13;
spider_num_segments = 4;
spider_point_max_rot_speed = (360/90)*(spider_overall_speed/(spider_num_segments));
spider_total_leg_length = spider_arm_length * spider_num_segments;
@Seb105
Seb105 / camo_converter.py
Last active June 20, 2022 11:30
Converts 1 solid colour to another, handling transitions. Good for recoloring camos.
from concurrent.futures import ProcessPoolExecutor, as_completed
from math import sqrt
from multiprocessing import cpu_count
import numpy as np
from PIL import Image
COLOUR_SET = {
(60, 59, 55): np.asarray([28, 54, 99]),
(93, 98, 69): np.asarray([74, 106, 154]),
(151, 141, 122): np.asarray([169, 190, 168]),
@Seb105
Seb105 / EZ faction.sqf
Last active October 29, 2021 10:45
Fix, add loading screen
EZFaction_fnc_buildPrettyName = {
params [
"_thing",
["_config", "CfgWeapons"]
];
[
getText (configFile >> _config >> _thing >> "displayName"),
_thing,
getText (configFile >> _config >> _thing >> "picture")
]
@Seb105
Seb105 / fn_weaponSwapper.sqf
Last active July 5, 2021 16:43
Arma Weapon Swapper
isNil {
// Build list of all weapons and their compatible accessories
private _allWeapons = (([configFile >> "CfgWeapons", 0] call BIS_fnc_returnChildren) select {
getNumber (_x >> "scope") == 2
&& (configName _x) isKindOf ["RifleCore", configFile >> "CfgWeapons"];
}) apply {
_configName = configName _x;
[
_configName,
[_configName, true] call CBA_fnc_compatibleMagazines,
@Seb105
Seb105 / fn_modelVillage.sqf
Last active March 14, 2021 20:13
Instant model village script
No longer maintained.
Find the latest version here:
https://github.com/Seb105/Arma-Briefingtable/tree/main/example_mission/SebsBriefingTableStandaloneDemo.Altis