This file contains hidden or 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
/* Arma3 SQF syntax - FizzBuzz examples */ | |
// Example 1a | |
for "_i" from 1 to 100 /* step 1 */ do | |
{ | |
private _string = ""; | |
if ( _i%3 isEqualTo 0 ) then { _string = "Fizz" }; | |
if ( _i%5 isEqualTo 0 ) then { _string = _string + "Buzz" }; | |
if ( _string isEqualTo "" ) then { _string = str _i }; | |
diag_log _string; |
This file contains hidden or 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
// How to use when in a vehicle: | |
// [vehicle player, "PoliceHorn"] call KS_fnc_swapCarHorn; | |
// | |
// Possible Horns to select from (Note: "BikeHorn" doesn't make any sound): | |
// ["BikeHorn","CarHorn","TruckHorn","TruckHorn2","TruckHorn3","SportCarHorn","MiniCarHorn","AmbulanceHorn","PoliceHorn"] | |
// | |
// Returns "true" or "false". | |
KS_fnc_swapCarHorn = | |
{ |
This file contains hidden or 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
// CS:GO autoexec.cfg by KiloSwiss - Last Update: July/31/2020 | |
// Download from Github: https://gist.github.com/KiloSwiss/a015b0620284ce74b5ed849ec599e51e | |
// This config is not meant to be used "out of the box", but to look up commands, ConVars and binds and to help you create your own personalized config. | |
// If you look for an easier way to create your own config or want to copy pro players settings, check out this Map by crashz' and MisterIO: | |
// https://steamcommunity.com/workshop/filedetails/?id=1325659427 | |
// Feel free to edit this file, share the link with your friends, copy parts of it into your own config or even make your own config based on it. | |
// I recommend that you use a text editor like "Notepad++" or "Sublime" to edit this file. | |
// https://notepad-plus-plus.org/ | |
// https://www.sublimetext.com/ |