Skip to content

Instantly share code, notes, and snippets.

View jameslkingsley's full-sized avatar

James Kingsley jameslkingsley

View GitHub Profile
#include "basicdefines_A3.hpp"
#include "config_macros_glass.hpp"
#include "cfgPatches.hpp"
class CfgVehicles
{
class House;
class House_F: House
{
class DestructionEffects;
{
_pos = ["Center", true] call CBA_fnc_randPosArea;
while {surfaceIsWater _pos} do {
_pos = ["Center", true] call CBA_fnc_randPosArea;
};
_x setMarkerPos _pos;
} forEach ["marker_1", "marker_2", "marker_3","marker_4", "marker_5", "marker_6"];
private _bestPlaces = selectBestPlaces [
getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition"),
worldSize,
"houses",
25,
1
];
private _startCenter = (_bestPlaces param [0, [[0,0,0]]]) param [0];
"Center" setMarkerPos _startCenter;
_handle = [
{
[getmarkerPos _x, EAST, 5] call BIS_fnc_spawnGroup;
} forEach ["mark1", "mark2", "mark3"];
},
0,
["some","params",1,2,3]
] call CBA_fnc_addPerFrameHandler;
if (!isServer) exitWith {};
[{
[] spawn {
{
private _unit = _x;
[[_unit], {
params ["_unit"];
[
"arifle_Katiba_F",
"arifle_MX_F",
"arifle_MX_Black_F",
"srifle_DMR_05_tan_f",
"srifle_DMR_06_camo_F",
"srifle_DMR_02_F",
"SMG_05_F",
"arifle_CTAR_blk_F",
"arifle_ARX_blk_F",
class CfgPatches {
class arc_insignia {
ammo[] = {};
units[] = {};
weapons[] = {};
requiredVersion = 1.60;
author[] = {"Brap"};
authorUrl = "http://arcomm.co";
requiredAddons[] = {"ace_common"};
};
<?php
namespace App;
use Log;
use \stdClass;
class ArmaLexer
{
protected static $terminals = [
public static function ext($file)
{
$object = [];
$str = file_get_contents($file);
$isClass = false;
$dest = -1;
$className = '';
[{!isNil "arc_param_theme"}, {
private _unit = _this select 0;
if (!local _unit) exitWith {};
if (isPlayer _unit) exitWith {};
if (_unit getVariable ["ARC_assignedAIGear", false]) exitWith {};
private _isMan = _unit isKindOf "CAManBase";
private _side = side _unit;