Blindfold

This commit is contained in:
Benjamin Kyd
2019-05-21 17:44:50 +01:00
parent 5ced778700
commit 9b7d7ca43b
7 changed files with 1499 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
/**
* Copyright© Benjamin Kyd 2019
* fn_applyBlindfold.sqf
*
* Applies blindfold to player
*/
params [
["_unit",Objnull,[Objnull]]
];
if (RR_Blindfolded) exitWith {};
if (!(player getVariable ["RR_restrained",false])) exitWith {};
cutText["You are blindfolded and can not see.","BLACK FADED"];
0 cutFadeOut 9999999;
_goggles = Goggles player;
player unassignItem _goggles;
player linkItem "G_Balaclava_lowprofile";
RR_Blindfolded = true;

View File

@@ -0,0 +1,13 @@
/**
* Copyright© Benjamin Kyd 2019
* fn_removeBlindfold.sqf
*
* Removes blindfold from player
*/
if (!RR_Blindfolded) exitWith {};
player unlinkItem "G_Balaclava_lowprofile";
0 cutFadeOut 1;
RR_Blindfolded = false;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,7 @@
disableAI = 1;
#include "defines.hpp"
class cfgFunctions {
#include "functions.hpp"
};

View File

@@ -0,0 +1,8 @@
class RR {
tag = "RR";
class functions {
file = "RR_functions";
class applyBlindfold {};
class removeBlindfold {};
};
};

View File

@@ -0,0 +1 @@
RR_Blindfolded = false;

Binary file not shown.