Skip to content

Instantly share code, notes, and snippets.

💭
I told you so.

commy2

💭
I told you so.
Block or report user

Report or block commy2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View item_ArmaWorld.cpp
class CfgWeapons {
class CBA_MiscItem;
class CBA_MiscItem_ItemInfo;
class tag_className: CBA_MiscItem {
class ItemInfo: CBA_MiscItem_ItemInfo {
mass = 10;
};
author = "me";
View idstr_ArmaWorld.sqf
// preInit
missionNamespace setVariable ["mission_idstrs", true call CBA_fnc_createNamespace, true];
if (isServer) then {
addMissionEventHandler ["PlayerConnected", {
params ["", "_playerUID", "_profileName", "", "_owner", "_idstr"];
mission_idstrs setVariable [_playerUID, _idstr, true];
}];
};
View oncePerPlayerAction.sqf
// init.sqf
if (hasInterface) then {
superobject addAction [
"Einmalaktion XYZ",
{
params ["_target", "_caller", "_actionId", "_arguments"];
_target setVariable ["mission_actionXYZEnabled", false];
systemChat str _arguments;
},
View oncePerMissionAction.sqf
// init.sqf
if (hasInterface) then {
superobject addAction [
"Einmalaktion XYZ",
{_this remoteExecCall ["mission_fnc_actionXYZ", 2]},
[],
1.5, true, true, "",
"_target getVariable ['mission_actionXYZEnabled', true];",
];
View rain_effect_ArmaWorld_trigger.sqf
// init.sqf
if (hasInterface) then {
mission_wetFX = "#particlesource" createVehicleLocal [0,0,0];
mission_wetFX setParticleClass "ACERainEffect";
["unit", {
params ["_unit"];
detach mission_wetFX;
mission_wetFX attachTo [_unit, [0,0,0]];
View rain_effect_ArmaWorld.sqf
// init.sqf
#define WET_EFFECT_INTESITY 1
["unit", {
params ["_unit"];
if (isNil "mission_wetFX") then {
mission_wetFX = "#particlesource" createVehicleLocal [0,0,0];
mission_wetFX setParticleClass "ACERainEffect";
mission_wetFX setDropInterval (0.07 * (1.1 - WET_EFFECT_INTESITY));
@commy2
commy2 / gist:3ac2e856f0520ac068f3d757fecd2b2e
Created Aug 23, 2019
\a3\language_f_enoch\stringtable.xml
View gist:3ac2e856f0520ac068f3d757fecd2b2e
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?><Project name="Contact">
<Package name="Language_Enoch">
<Container name="Characters_F">
<Key ID="str_a3_c_o_r_recon_gl_f0">
<Original>Recon Grenadier</Original>
<English>Recon Grenadier</English>
<Czech>Průzkumník - granátometčík</Czech>
<German>Aufklärungsgrenadier</German>
<Russian>Разведчик-гранатометчик</Russian>
View kickOutPilot_ArmaWorld.sqf
// init.sqf
private _fnc_kickOutPilot = {
params ["", "", "_vehicle"];
if !(_vehicle isKindOf "Air") exitWith {};
private _pilot = driver _vehicle;
if (!local _pilot) exitWith {};
if (rankId _pilot < 3) then {
_pilot action ["GetOut", _vehicle];
View RespawnAll_button_Zeus.md

Place marker and name it "respawn_west", and/or any of the other side's marker names accordingly

In mission folder, create file, name it "description.ext", open it and enter:

// description.ext
respawn = 3;
respawnDelay = 1e9;

class Extended_PreInit_EventHandlers {
    mission_ZeusRespawnAll = "call compile preprocessFile 'XEH_preInit.sqf'";
View centered_arma_world.sqf
[
[
["CAMP ROGAIN, ", "align = 'center' shadow = '1' size = '0.7' font='PuristaBold'"],
["RESUPPLY POINT", "align = 'center' shadow = '1' size = '0.7'", "#aaaaaa"],
["","<br/>"], // line break
["10 MINUTES LATER...","align = 'center' shadow = '1' size = '1.0'"]
],
safezoneX,
0.5
] spawn BIS_fnc_typeText2;
You can’t perform that action at this time.