Spectator - Fix script error in ui_draw3d (#5722)

This commit is contained in:
PabstMirror 2017-11-04 11:03:51 -05:00 committed by GitHub
parent 96d978615e
commit c20ec6599d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,7 @@
#include "script_component.hpp"
params ["_init"];
TRACE_1("cam",_init);
// No change
if (_init isEqualTo !isNil QGVAR(camera)) exitWith {};

View File

@ -23,6 +23,7 @@
#include "script_component.hpp"
params [["_newCorpse",objNull,[objNull]], ["_oldKiller",objNull,[objNull]], ["_respawn",0,[0]], ["_respawnDelay",0,[0]]];
TRACE_4("respawnTemplate",_newCorpse,_oldKiller,_respawn,_respawnDelay);
// Compatibility handled via spectator display XEH
if (_respawn in [0,1,4,5]) exitWith {

View File

@ -101,6 +101,7 @@ if (_set) then {
// Hide/Unhide the player if enabled and alive
if (alive player) then {
private _hidden = (_hide && _set);
TRACE_1("",_hidden);
// Ignore damage (vanilla and ace_medical)
player allowDamage !_hidden;

View File

@ -17,6 +17,7 @@
#include "script_component.hpp"
params ["_init"];
TRACE_1("ui",_init);
// No change
if (_init isEqualTo !isNull SPEC_DISPLAY) exitWith {};

View File

@ -18,7 +18,7 @@
#define HEIGHT_OFFSET 1.5
BEGIN_COUNTER(updateCursor);
private _camTarget = GVAR(camFocus);
private _camTarget = missionNamespace getVariable [QGVAR(camFocus), objNull];
private _camTargetVeh = vehicle _camTarget;
private _cursorObject = objNull;