2015-09-10 22:48:56 +00:00
/*
DMS_fnc_SelectOffsetPos
Created by eraser1
Usage:
[
2016-03-01 06:34:55 +00:00
_origin, // OBJECT, or POSITION (2D or 3D): Center from which the offset position will be calculated.
_distance, // SCALAR: Distance from the origin (meters)
_direction // SCALAR: Direction from the origin (degrees)
2015-09-10 22:48:56 +00:00
] call DMS_fnc_SelectOffsetPos;
2016-03-01 06:34:55 +00:00
Returns a new position offset from the provided position with the provided distance and direction. Position provided is at ground level in AGL
2016-06-07 03:47:15 +00:00
This function has been deprecated by the new functionality of the "getPos" command (https://community.bistudio.com/wiki/getPos). This function has been updated for efficiency and retained for compatibility.
2015-09-10 22:48:56 +00:00
*/
2015-12-24 19:45:20 +00:00
if !(params
2015-09-10 22:48:56 +00:00
[
2016-06-07 03:47:15 +00:00
"_origin",
"_dis",
"_dir"
2015-12-24 19:45:20 +00:00
])
exitWith
2015-09-10 22:48:56 +00:00
{
diag_log format ["DMS ERROR :: Calling DMS_fnc_SelectOffsetPos with invalid parameters: %1",_this];
Major UI Improvements, Fixes, Improved readme
* **NEW CONFIG VALUES**:
|DMS_Show_Kill_Poptabs_Notification|
|DMS_Show_Kill_Respect_Notification|
|DMS_dynamicText_Duration|
|DMS_dynamicText_FadeTime|
|DMS_dynamicText_Title_Size|
|DMS_dynamicText_Title_Font|
|DMS_dynamicText_Message_Color|
|DMS_dynamicText_Message_Size|
|DMS_dynamicText_Message_Font|
|DMS_standardHint_Title_Size|
|DMS_standardHint_Title_Font|
|DMS_standardHint_Message_Color|
|DMS_standardHint_Message_Size|
|DMS_standardHint_Message_Font|
|DMS_textTiles_Duration|
|DMS_textTiles_FadeTime|
|DMS_textTiles_Title_Size|
|DMS_textTiles_Title_Font|
|DMS_textTiles_Message_Color|
|DMS_textTiles_Message_Size|
|DMS_textTiles_Message_Font|
* "DMS_PlayerNotificationTypes" has been adjusted to include
"systemChatRequest" and the brand new "textTilesRequest". **NOTE:** Due
to the way "text tiles" work, a player can only have one on his screen
at a time. As a result, if another text tile is created while the
mission message is up, the message will immediately disappear to display
the new text tile. Currently, the "Frag Messages" (the ones that say
"Player Kill +100") use text tiles. I don't think it should be a major
issue (especially if you use "systemChatRequest", so the player can just
scroll up), but if I get reports of it being stupid, I will default to
"dynamicTextRequest", which should also look pretty damn nice.
* These changes should make it much easier for people to use DMS
notification functions for other purposes.
* Fixed AI waypoints - the AI should now properly circle the objective
at the proper radius.
* Tweaked "DMS_AI_WP_Radius_moderate" and "DMS_AI_WP_Radius_difficult"
(reduced the radii). Due to the AI pathing fix.
* Fixed a couple typos in "DMS_fnc_SpawnAISoldier". "_customGearSet"
should work now (although I'm fairly certain nobody uses it since nobody
ever complained :P )
* Improved "DMS_fnc_SpawnNonPersistentVehicle"; Vehicles should no
longer spawn jumbled up in most cases (like cardealer). Also, it's
updated to the latest Exile methods to ensure that vehicles have no
nightvision/thermal if configured to do so in Exile configs. Also added
the "MPKilled" EH used by Exile for non-persistent (persistent vehicles
already had it).
* You can now choose whether or not you want to display the poptabs or
respect kill messages when killing an AI with
"DMS_Show_Kill_Poptabs_Notification" and
"DMS_Show_Kill_Respect_Notification". Both are enabled by default.
* Fixed typos in the "OnKilled" EH (didn't really affect anything)
* Fixed cases when "currentMuzzle" would return a number. Thanks to
[azmodii](https://github.com/azmodii) for the reminder.
* Optimized the "AI share info" function in "OnKilled"
2015-10-09 00:16:48 +00:00
[0,0,0]
2015-09-10 22:48:56 +00:00
};
2016-03-01 06:34:55 +00:00
/*
if ((count _origin) isEqualTo 2) then
2015-11-15 02:08:41 +00:00
{
2016-03-01 06:34:55 +00:00
_origin set [2,0];
2015-11-15 02:08:41 +00:00
};
2016-03-01 06:34:55 +00:00
*/
2015-09-10 22:48:56 +00:00
2016-03-01 06:34:55 +00:00
//_origin vectorAdd [sin(_dir)*_dis,cos(_dir)*_dis,0] <-- Old code
_origin getPos [_dis,_dir]