Added lsl functions from Second Life RC LeTigre 13.12.20.285035

This commit is contained in:
Inusaito Sayori
2014-01-23 21:19:40 -05:00
parent 8ea156d128
commit e3c91a3ba1
3 changed files with 27 additions and 0 deletions

View File

@@ -540,6 +540,11 @@ void LLScriptLibrary::init()
addFunction(0.f, 0.f, dummy_func, "llGetAnimationOverride", "s", "s");
addFunction(0.f, 0.f, dummy_func, "llResetAnimationOverride", NULL, "s");
// Server RC LeTigre 13.12.20.285035 new function
addFunction(10.f, 0.f, dummy_func, "llScaleByFactor" , "i", "f");
addFunction(10.f, 0.f, dummy_func, "llGetMinScaleFactor" , "f", NULL);
addFunction(10.f, 0.f, dummy_func, "llGetMaxScaleFactor" , "f", NULL);
// SL-LSL Functions to be added above this line
// ---------------------------------------------
// NOTE bytecode placement no longer applies, viewers do not compile scripts anymore (confirmed with LL, also noted by Phoenix/Firestorm team.)

View File

@@ -1039,5 +1039,12 @@
<!-- 13.06.21.277682 new function -->
<key>llXorBase64</key>
<map/>
<!-- Server RC LeTigre 13.12.20.285035 new function -->
<key>llScaleByFactor</key>
<map/>
<key>llGetMinScaleFactor</key>
<map/>
<key>llGetMaxScaleFactor</key>
<map/>
</map>
</llsd>

View File

@@ -2095,6 +2095,21 @@ Returns all objects of a particular owner in the given scope or an ERR_* flag.
string llXorBase64(string str1, string str2)
Returns a string that is a Base64 XOR of Base64-formatted input strings.
</string>
<string name="LSLTipText_llScaleByFactor" translate="false">
integer llScaleByFactor(float scaling_factor)
Returns a string that is a Base64 XOR of Base64-formatted input strings.
Uniformly resizes the linkset by the given multiplicative scale factor (e.g. 2.0 to double the scale in all dimensions)
Returns TRUE if rescaling was successful or FALSE otherwise
This function only succeeds in non-physical objects
</string>
<string name="LSLTipText_llGetMinScaleFactor" translate="false">
float llGetMinScaleFactor()
Returns the minimum multiplicative scale factor which can be used by llScaleByFactor(); i.e. such that every prim in the linkset is &gt;=1cm in scale
</string>
<string name="LSLTipText_llGetMaxScaleFactor" translate="false">
float llGetMaxScaleFactor()
Returns the maximum multiplicative scale factor which can be used by llScaleByFactor(); i.e. such that every prim in the linkset is &lt;=64m and the resulting linkset meets the linkability requirements
</string>
<!-- GOD FUNCTIONS -->
<string name="LSLTipText_llGodLikeRezObject">
llGodLikeRezObject( key inventory, vector pos )