mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
A Plot For Life also includes Precise Base Building by Mikeeeyy. Precise base building has no variable to switch it on or off, I don't think it should. Seems to work well enough, this may conflict with the duplicate object uid fix, it appears to spam my server rpt.
27 lines
576 B
Plaintext
27 lines
576 B
Plaintext
// KK_Functions
|
|
//
|
|
// All functions inside created by KillZoneKid (http://killzonekid.com/)
|
|
//
|
|
//
|
|
|
|
// Precise positioning functions.
|
|
|
|
KK_fnc_floatToString = {
|
|
private "_arr";
|
|
if (abs (_this - _this % 1) == 0) exitWith { str _this };
|
|
_arr = toArray str abs (_this % 1);
|
|
_arr set [0, 32];
|
|
toString (toArray str (
|
|
abs (_this - _this % 1) * _this / abs _this
|
|
) + _arr - [32])
|
|
};
|
|
|
|
KK_fnc_positionToString = {
|
|
format [
|
|
"[%1,%2,%3]",
|
|
_this select 0 call KK_fnc_floatToString,
|
|
_this select 1 call KK_fnc_floatToString,
|
|
_this select 2 call KK_fnc_floatToString
|
|
]
|
|
};
|