fix that HC throw a issue if PPEffect was used/applyed

This commit is contained in:
jokoho48 2015-09-09 17:05:48 +02:00
parent 6a31140f7d
commit defbdf1b1a
14 changed files with 23 additions and 5 deletions

View File

@ -10,6 +10,8 @@
#include "script_component.hpp"
if !(hasInterface) exitWith {};
private ["_show"];
PARAMS_1(_id);
_show = if (count _this > 1) then {_this select 1} else {false};

View File

@ -13,8 +13,10 @@
*/
#include "script_component.hpp"
if !(hasInterface) exitWith {};
private ["_interval", "_player", "_newVel", "_accel", "_currentGForce", "_average", "_sum", "_classCoef", "_suitCoef", "_gBlackOut", "_gRedOut", "_g", "_gBO", "_coef", "_strength"];
EXPLODE_2_PVT(_this,_params,_pfhId);
_interval = ACE_time - GVAR(lastUpdateTime);

View File

@ -15,7 +15,7 @@
* Public: No
*/
#include "script_component.hpp"
if (!hasInterface) exitWith {};
if !(hasInterface) exitWith {};
["ACE3 Common", QGVAR(wipeGlasses), localize LSTRING(WipeGlasses),
{

View File

@ -14,6 +14,8 @@
* Public: Yes
*/
#include "script_component.hpp"
if !(hasInterface) exitWith {};
if (call FUNC(ExternalCamera)) exitWith {};
if ([ace_player] call FUNC(isGogglesVisible)) exitWith {
100 cutRsc["RscACE_GogglesEffects", "PLAIN",2,false];

View File

@ -16,6 +16,8 @@
* Public: No
*/
#include "script_component.hpp"
if !(hasInterface) exitWith {};
private["_postProcessColour", "_postProcessTintAmount", "_glassesClassname", "_glassImagePath"];
_glassesClassname = _this select 0;

View File

@ -14,6 +14,7 @@
* Public: No
*/
#include "script_component.hpp"
if !(hasInterface) exitWith {};
if (isNull(ace_player)) exitWith {};
GVAR(FrameEvent) set [0, !(GVAR(FrameEvent) select 0)];
if (GVAR(FrameEvent) select 0) exitWith {

View File

@ -15,6 +15,7 @@
* Public: Yes
*/
#include "script_component.hpp"
if !(hasInterface) exitWith {};
GVAR(EffectsActive) = false;
GVAR(PostProcess) ppEffectEnable false;

View File

@ -94,7 +94,7 @@ _affected = _grenade nearEntities ["CAManBase", 20];
}, [_light], 0.1] call EFUNC(common,waitAndExecute);
// blind player
if (_strength > 0.1) then {
if (_strength > 0.1 && hasInterface) then {
GVAR(flashbangPPEffectCC) ppEffectEnable true;
GVAR(flashbangPPEffectCC) ppEffectAdjust [1,1,(0.8 + _strength) min 1,[1,1,1,0],[0,0,0,1],[0,0,0,0]];
GVAR(flashbangPPEffectCC) ppEffectCommit 0.01;

View File

@ -13,6 +13,7 @@
*/
#include "script_component.hpp"
if !(hasInterface) exitWith {};
params ["_huntIR"];
GVAR(huntIR) = _huntIR;

View File

@ -33,6 +33,8 @@ GVAR(heartBeatSounds_Slow) = ["ACE_heartbeat_slow_1", "ACE_heartbeat_slow_2"];
// Initialize all effects
if (hasInterface) then {
_fnc_createEffect = {
private "_effect";
params ["_type", "_layer", "_default"];
@ -241,7 +243,7 @@ GVAR(lastHeartBeatSound) = ACE_time;
};
}, 0, []] call CBA_fnc_addPerFrameHandler;
};
["SettingsInitialized", {
if (GVAR(level) == 2) exitwith {

View File

@ -1,7 +1,7 @@
// by commy2
#include "script_component.hpp"
if (!hasInterface) exitWith {};
if !(hasInterface) exitWith {};
GVAR(ppEffectBlur) = ppEffectCreate ["dynamicBlur", 1234];
GVAR(ppEffectBlur) ppEffectForceInNVG true;

View File

@ -21,6 +21,8 @@
*/
#include "script_component.hpp"
if !(hasInterface) exitWith {};
private ["_vehicle", "_weapon", "_ammo", "_magazine", "_player"];
_vehicle = _this select 0;

View File

@ -16,6 +16,7 @@
*/
#include "script_component.hpp"
if !(hasInterface) exitWith {};
private ["_brightness"];
PARAMS_2(_player,_changeInBrightness);

View File

@ -15,6 +15,8 @@
*/
#include "script_component.hpp"
if !(hasInterface) exitWith {};
private ["_currentVehicle", "_grainSetting", "_blurSetting", "_radBlurSetting", "_config", "_hmd", "_cameraView", "_turret"];
_currentVehicle = vehicle ACE_player;