Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define TIME_FACTOR 1.5 + random 4
- setViewDistance 2500;
- if (isServer) then {
- [{ [false] call potato_safeStart_fnc_toggleSafeStart }, [], 23] call CBA_fnc_waitAndExecute;
- waitUntil { !potato_safeStart_safeStartEnabled };
- {
- deleteVehicle _x;
- } forEach [wall_1,wall_2,wall_3,wall_4,wall_5,wall_6,wall_7,wall_8];
- private _vrObjects = [
- "Land_VR_Shape_01_cube_1m_F", "Land_VR_Block_04_F", "Land_VR_Block_05_F", "Land_VR_Block_02_F",
- "Land_VR_Block_03_F", "Land_VR_Block_01_F", "Land_VR_Slope_01_F", "Land_VR_CoverObject_01_kneelHigh_F",
- "Land_VR_CoverObject_01_standHigh_F", "Land_VR_CoverObject_01_kneel_F", "Land_VR_CoverObject_01_kneelLow_F", "Land_VR_CoverObject_01_stand_F"
- ];
- private _blocks = [];
- {
- if ((typeOf _x) in _vrObjects) then {
- _blocks pushBack _x;
- };
- } forEach allMissionObjects "House_F";
- [{
- params ["_args"];
- _args params ["_blocks", "_startTime", ["_currentBlock", 0]];
- private _cOnTwo = (COLOUR_NUMBER) / 2;
- private _timeElapsed = (1.5 * cos deg ((CBA_missiontime - _startTime) * (TIME_FACTOR))) + 1.5;
- (_blocks select _currentBlock) setObjectTextureGlobal [1, format["#(argb,8,8,3)color(%1,%2,%3,%4)", parseNumber (_timeElapsed <= 1), parseNumber ((_timeElapsed <= 2) && (_timeElapsed > 1)), parseNumber (_timeElapsed > 2), 1]];
- (_blocks select _currentBlock) setObjectMaterialGlobal [1, "a3\characters_f_bootcamp\common\data\vrarmoremmisive.rvmat"];
- _currentBlock = _currentBlock + 1;
- if (_currentBlock >= (count _blocks)) then { _currentBlock = 0 };
- _args set [2, _currentBlock];
- }, 0, [_blocks, CBA_missiontime]] call CBA_fnc_addPerFrameHandler;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement