This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addUserActionEventHandler ["headlights", "Activate", { | |
private _vehicle = vehicle ACE_player; | |
if !(_vehicle isKindOf "gm_t55_base" && { ACE_player == gunner _vehicle }) exitWith {}; | |
private _light = _vehicle getVariable ["bb_irlight", objNull]; | |
if (!isNull _light) then { | |
_vehicle animate ["mainturret_searchlight_cover_unhide", 1, true]; | |
deleteVehicle _light; | |
} else { | |
_vehicle animate ["mainturret_searchlight_cover_unhide", 0, true]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mission_fnc_mapOverlayCache = [] call CBA_fnc_createNamespace; | |
mission_fnc_mapOverlay = { | |
params ["_map"]; | |
_map drawIcon [ | |
getMissionPath "map.paa", | |
[1, 1, 1, 1], | |
[worldSize / 2, worldSize / 2, 0], | |
640 / ctrlMapScale _map, | |
640 / ctrlMapScale _map, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private _vehicle = "B_MBT_01_cannon_F" createVehicle [0, 0, 0]; | |
_vehicle setPosASL ((getPosASL player) vectorAdd [0, 10, 3]); | |
[{ | |
params ["_args"]; | |
_args params ["_vehicle", "_lastRun"]; | |
private _delta = cba_missionTime - _lastRun; | |
private _force = [0, 0, getMass _vehicle * _delta * 9.8]; | |
_vehicle addForce [_force, getCenterOfMass _vehicle]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blue_footprints = []; | |
[{ | |
private _footprints = player nearObjects ["#mark", 2]; | |
{ | |
private _p3d = (getModelInfo _x) select 1; | |
private _dir = direction _x; | |
private _pos = getPosASL _x; | |
_pos set [2, 0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gm_fc_BU | |
gm_fc_BU_bgs | |
gm_fc_BU_civ | |
gm_fc_CS | |
gm_fc_CS_bgs | |
gm_fc_CS_civ | |
gm_fc_GC | |
gm_fc_GC_bgs | |
gm_fc_GC_civ | |
gm_fc_HU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.ObjectInputStream | |
import java.io.ObjectOutputStream | |
import java.io.Serializable | |
import java.net.ServerSocket | |
import java.net.Socket | |
import java.util.* | |
data class Question(val question: String, val answers: List<String>): Serializable | |
fun main(args: Array<String>) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
numberMapping = []; | |
// 0 - 9 -> 0 - 9 | |
for "_i" from 0 to 9 do { | |
numberMapping pushBack str _i; | |
}; | |
// 10 - 24 -> 33 - 47 | |
for "_i" from 33 to 47 do { | |
numberMapping pushBack (toString [_i]); | |
}; | |
// 24 - 92 -> 58 - 126 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private _lineCache = createLocation ["NameVillage", [-1000, -1000, 0], 0, 0]; | |
private _fn_renderVertex = { | |
private _vertex = "ace_fastroping_helper" createVehicle [0, 0, 0]; | |
_vertex hideObject true; | |
_vertex setPosWorld _this; | |
_vertex | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
player setPos [15, 15, 0]; | |
meme_history = []; | |
meme_indicators = []; | |
meme_ropes = []; | |
comment "x axis"; | |
for "_i" from 0 to 9 do { | |
private _b = "Sign_Sphere100cm_F" createVehicle [0, 0, 0]; | |
_b setPosATL [10, 10 + _i * 2, 0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Username and e-mail for commits | |
git config --global user.name "<username>" | |
git config --global user.email <username>@users.noreply.github.com | |
# Preferred text editor for small stuff like commit messages, default is vim | |
# I'd recommend nano since it's easier to use but also runs in the terminal | |
git config --global core.editor <command> | |
# Always push current branch, create on remote if not existing yet | |
git config --global push.default current |
NewerOlder