2015-07-04 23:49:47 +00:00
|
|
|
/*
|
|
|
|
* Author: SilentSpike
|
2015-07-05 00:20:14 +00:00
|
|
|
* Cache necessary details and process unit for spectator on death
|
2015-07-04 23:49:47 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Corpse <OBJECT>
|
|
|
|
* 1: Killer <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None <NIL>
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-07-09 20:20:09 +00:00
|
|
|
private ["_unit","_killer"];
|
2015-07-04 23:49:47 +00:00
|
|
|
_unit = _this select 0;
|
|
|
|
_killer = _this select 1;
|
|
|
|
|
2015-07-05 00:20:14 +00:00
|
|
|
// Remove from group to prevent appearing on HUD upon respawn
|
2015-07-09 20:20:09 +00:00
|
|
|
[_unit, true, QGVAR(isSpectator), side group _unit] call EFUNC(common,switchToGroupSide);
|
2015-07-17 01:05:24 +00:00
|
|
|
|
|
|
|
GVAR(camUnit) = _killer;
|
|
|
|
GVAR(camMode) = 2;
|