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
[]spawn{ | |
private ["_ServerName","_ChannelName","_TSPluginEnabled"]; | |
sleep 15; | |
while {true} do { | |
_Error = false; | |
_ServerName = call TFAR_fnc_getTeamSpeakServerName; | |
_ChannelName = call TFAR_fnc_getTeamSpeakChannelName; | |
_TSPluginEnabled = call TFAR_fnc_isTeamSpeakPluginEnabled;; | |
_AdminState = (life_adminlvl > 0); | |
_WhiteListedChannels = ["InGameA3"]; |
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
Sam_TPUpwards={ | |
//Sets you 3m above current height | |
player setPos(player modelToWorld[0, 0, 3]); | |
}; |
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
_dist = 10 | |
player setPosATL [(getPosATL player) select 0 + _dist * sin(getDir player),(getPosATL player) select 1 + _dist * cos(getDir player),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
/* | |
1ST var = Classname | |
Returns: "Uniform"||"Vest"||"Bag"||False | |
*/ | |
Life_Fnc_ClothingType = { | |
_t = false; | |
_configParents = [(configFile >> "CfgWeapons" >> (_this select 0),true ] call BIS_fnc_returnParents; | |
if ("Uniform_Base" in _configParents)then {_t = "Uniform"}; | |
if ("Vest_Camo_Base" in _configParents)then {_t = "Vest"}; | |
if ("Bag_Base" in _configParents)then {_t = "Bag"}; |
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
//Returns: True if behind or False if not directly behind an alive player with a weapon out | |
player distance (cursorObject modelToWorld [0,-3,0]) < 3 && !isNull cursorObject && cursorObject isKindOf "Man" && !isPlayer cursorObject && alive cursorObject && currentWeapon player != "" |
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
//Function to spawn on FIRE event handler | |
Sam_InCombat = { | |
//Sets player variable "In_Combat" to true for 15 seconds for every player and AI within 15Ms | |
_array = (nearestObjects [player, ["Man"], 15]) - [player]; | |
{_x setVariable ["In_Combat", true, true]}forEach _array; | |
uisleep 15; | |
{_x setVariable ["In_Combat", false, true]} forEach _array; | |
}; | |
//Add to condition statement |
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
/* | |
File: Tow.sqf | |
Author: Caiden | |
Description: | |
Main handler for attempting to tow/untow a vehicle | |
*/ | |
_veh = _this; | |
_isTowing = _veh getVariable "isTowing"; |
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
/* | |
Spawn Vehicle Script | |
PARAMETERS: | |
Vehicle(s): Classname | Single Array | Multi Dimentional Array | |
Total: Int | |
Row: Int | |
Return: None | |
["A3L_Towtruck",50,10]call sam_fnc_MassSpawn; | Spawn 5 rows of 10 tow trucks facing north totaling to 50 trucks |
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
{ | |
["ace_unconscious", { | |
_Unit = _this select 0; | |
_State = _this select 1; | |
if (_State){ | |
//Unconcious? | |
_marker = createMarker ["Unconcious Friendly", getPos _Unit]; | |
_marker setMarkerShape "ICON"; | |
_marker setMarkerType "hd_dot"; | |
}else{ |
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
<?php | |
/** | |
* Check how many times a password has been pwned | |
* according the the pwnedpasswords.com API | |
* without sending the password over the network | |
* | |
* @param String $password | |
* @return Int | |
*/ |
OlderNewer