Skip to content

Commit

Permalink
V0.9.7 - Hotfix for Speaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Quailsnap committed Aug 22, 2017
1 parent 072cf4c commit 05df76e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
8 changes: 4 additions & 4 deletions wh_nametags.Stratis/mission.sqm
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ class EditorData
};
class Camera
{
pos[]={1631.9945,5.9235735,5692.8818};
dir[]={0.85452998,-0.45815653,-0.24475303};
up[]={0.44047847,0.88885689,-0.12616111};
aside[]={-0.27535161,2.2235326e-008,-0.96136028};
pos[]={1632.7549,8.6774864,5693.4834};
dir[]={0.66272742,-0.69629455,-0.27569473};
up[]={0.64290893,0.71773326,-0.26744995};
aside[]={-0.38409871,1.6111881e-007,-0.92331386};
};
};
binarizationWanted=0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//====================================================================================
//
// fn_isTalking.sqf - Detect whether player is talking with ACRE/TFAR/Vanilla.
// > _isTalking = _unit call wh_nt_fnc_isTalking <
// fn_isSpeaking.sqf - Detect whether player is speaking with ACRE/TFAR/Vanilla.
// > _isSpeaking = _unit call wh_nt_fnc_isSpeaking <
//
// Adapted from code by Killzone Kid, and from ACE3 code.
// - http://killzonekid.com/arma-scripting-tutorials-whos-talking/
Expand Down
7 changes: 5 additions & 2 deletions wh_nametags.Stratis/wh/nametags/functions/fn_nametagDraw.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
// Declare variables.
//------------------------------------------------------------------------------------

params ["_vehicle","_name","_nameColor","_locationData","_role","_groupName",
params ["_unit","_vehicle","_name","_nameColor","_locationData","_role","_groupName",
"_drawRoleAndGroup","_isPassenger","_isCommander","_cameraPositionAGL",
"_zoom","_time","_startTime"];

// _unit (CAManBase): Unit the tag is being rendered on.
// _vehicle (Entity): Vehicle the unit is in. Possibly the unit.
// _name (string): Friendly name of tag to be rendered.
// _nameColor (color array [[],[],[],]): Original color of center nametag.
// _locationData {code}: Code that will be used to find the location to draw the tag.
Expand Down Expand Up @@ -54,7 +56,8 @@ _distance = _player distance _targetPositionAGL;

// If the unit is speaking, apply little carets around their name.
// TODO: move up a few scopes. GetData? Will stick on cursor
if (_x call wh_nt_fnc_isTalking) then
// TODO: changes from mission we played
if (_unit call wh_nt_fnc_isSpeaking) then
{
_timeEven = ((round time) % 2 == 0);
_nameColor set [3,0.90];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ private _zoom = 1;

// Huck all this data into an array...
_unitData = [];
_unitData pushBack _x;
_unitData pushBack _entity; // Index 0
_unitData pushBack _name; // Index 1
_unitData pushBack _nameColor; // Index 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//------------------------------------------------------------------------------------
// Initializing variables.
//------------------------------------------------------------------------------------

// TODO: all of this only if there's something to draw
// Store the player and the player's group.
_player = WH_NT_PLAYER;
_playerGroup = group _player;
Expand Down Expand Up @@ -65,7 +65,7 @@ if !( isNull _cursorObject ) then
_unitData =+ ((_toDraw select 1) select _index);

// ...adjust it so it knows it's the cursor target...
_unitData set [6,true];
_unitData set [7,true];

// ...take it out of the copy of the global cache...
(_toDraw select 0) deleteAt _index;
Expand Down
2 changes: 1 addition & 1 deletion wh_nametags.Stratis/wh/nametags/readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
==========================================================================================

WHALE'S NAMETAGS (V0.9.6 Beta)
WHALE'S NAMETAGS (V0.9.7 Beta)
SCRIPT FOR ARMA 3

( https://github.com/Whalen207/WH-NT )
Expand Down

0 comments on commit 05df76e

Please sign in to comment.