Skip to content

Instantly share code, notes, and snippets.

@wrdg
wrdg / DayZGame.c
Created January 11, 2024 02:58
Simple script to output published id's of mods loaded from within the DayZ root directory. Useful for checking for repacks, needs a small adpation for that though :)
modded class DayZGame
{
void DayZGame()
{
array<string> mods = {};
string param;
if (CommandlineGetParam("mod", param))
{
param.Split(";", mods);
@wrdg
wrdg / DayZGame.c
Last active October 25, 2024 01:57
Client script for DayZ Standalone to attempt to prevent the use of Survivor default name. This is a 3_Game script. Packaged PBO for drop in your server’s client mod: https://wrdg.net/dl/SteamNameSupport.zip
/*
*
* Name: Steam Name Support
* Description: Attempts to rid of default use of Survivor name
by using the player's Steam name.
*
* Author: Wardog, wrdg
* Site: https://wrdg.net/
*
*/
@wrdg
wrdg / BashScriptExecutor.c
Last active February 6, 2024 21:11
DayZ SA Enforce runtime script execution
class BashExecutor
{
// fire and forget, method style execution
static void ExecuteEnf(string code)
{
FileHandle file;
MakeDirectory("$profile:Bash/"); // create directory for logging and execution purposes
string script_path = string.Format("$profile:Bash/script_%1.c", GetDate());
file = OpenFile(script_path, FileMode.WRITE);
@wrdg
wrdg / init.c
Last active May 7, 2024 22:12
Customizable spawn loadouts for regular and donator players; changes/additions to init.c
//* Script: Customizable spawn loadouts for regular and donator players
//* Author: Wardog
//* Donate: https://wrdg.net/donate
//*
//* Notes: Creates a directory in the Server Profile folder called SpawnLoadout. You can change these files in
//* in real time, without restarting the server to take effect.
//*
//* ./SpawnLoadout/CommonItems.txt = items spawned between both donators and regulars
//* ./SpawnLoadout/Regular.txt = loadout for regular players
//* ./SpawnLoadout/Donators/STEAMIDHERE.txt = directory where steam id files go for donators; loadouts for donators