From bec71977ab28770f3e635f40231b8b53d3c5a1cc Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 1 Feb 2008 04:22:20 +0000 Subject: * Added more supported feature to particlesystems. While this appears to have a libsl update... it's really a fix to the libsl version we're already using because of a bug in the particlesystem implementation * Added two new simstat counters in the simstat enum for the RCCS. (I'll find something cool to put in them) * fixed a time waster in ODEPlugin.cs --- .../ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 31 +++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Common') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index b11ad05..9167632 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -2162,7 +2162,7 @@ namespace OpenSim.Region.ScriptEngine.Common switch ((int)rules.Data[i]) { case (int)LSL_BaseClass.PSYS_PART_FLAGS: - prules.PartFlags = (uint)Convert.ToInt32(rules.Data[i + 1].ToString()); + prules.PartDataFlags = (Primitive.ParticleSystem.ParticleDataFlags)((uint)Convert.ToInt32(rules.Data[i + 1].ToString())); break; case (int)LSL_BaseClass.PSYS_PART_START_COLOR: @@ -2204,8 +2204,8 @@ namespace OpenSim.Region.ScriptEngine.Common break; case (int)LSL_BaseClass.PSYS_PART_MAX_AGE: - //tempf = (LSL_Types.LSLFloat)rules.Data[i + 1]; - prules.MaxAge = 7;//(float)tempf; + tempf = Convert.ToSingle(rules.Data[i + 1].ToString()); + prules.PartMaxAge = (float)tempf; break; case (int)LSL_BaseClass.PSYS_SRC_ACCEL: @@ -2279,6 +2279,31 @@ namespace OpenSim.Region.ScriptEngine.Common } prules.CRC = 1; + Console.WriteLine("----------ps----------\n"); + Console.WriteLine(" AngularVelocity:" + prules.AngularVelocity.ToString() + "\n" + + " BurstPartCount:" + prules.BurstPartCount.ToString() + "\n" + + " BurstRadius:" + prules.BurstRadius.ToString() + "\n" + + " BurstRate:" + prules.BurstRate.ToString() + "\n" + + " BurstSpeedMax:" + prules.BurstSpeedMax.ToString() + "\n" + + " BurstSpeedMin:" + prules.BurstSpeedMin.ToString() + "\n" + + " CRC:" + prules.CRC.ToString() + "\n" + + " InnerAngle:" + prules.InnerAngle.ToString() + "\n" + + " MaxAge:" + prules.MaxAge.ToString() + "\n" + + " OuterAngle:" + prules.OuterAngle.ToString() + "\n" + + " PartAcceleration:" + prules.PartAcceleration.ToString() + "\n" + + " PartDataFlags:" + prules.PartDataFlags.ToString() + "\n" + + " PartEndColor:" + prules.PartEndColor.ToString() + "\n" + + " PartEndScaleX:" + prules.PartEndScaleX.ToString() + "\n" + + " PartEndScaleY:" + prules.PartEndScaleY.ToString() + "\n" + + " PartFlags:" + prules.PartFlags.ToString() + "\n" + + " PartMaxAge:" + prules.PartMaxAge.ToString() + "\n" + + " PartStartColor:" + prules.PartStartColor.ToString() + "\n" + + " PartStartScaleX:" + prules.PartStartScaleX.ToString() + "\n" + + " PartStartScaleY:" + prules.PartStartScaleY.ToString() + "\n" + + " Pattern:" + prules.Pattern.ToString() + "\n" + + " StartAge:" + prules.StartAge.ToString() + "\n" + + " Target:" + prules.Target.ToString() + "\n" + + " Texture:" + prules.Texture.ToString() + ""); OpenSim.Framework.Console.MainLog.Instance.Verbose("PARTICLE", "PS: " + prules.ToString()); m_host.AddNewParticleSystem(prules); m_host.SendFullUpdateToAllClients(); -- cgit v1.1