diff options
author | Teravus Ovares | 2008-05-05 00:03:30 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-05 00:03:30 +0000 |
commit | 1130c3067cb1d54c5a96ace2bc3f2519cf3916c1 (patch) | |
tree | 7d714dc93a76a1cdcdd65035558039633db87a1e /OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |
parent | * Implemented DIE_AT_EDGE and Temporary objects don't save to the database. (diff) | |
download | opensim-SC_OLD-1130c3067cb1d54c5a96ace2bc3f2519cf3916c1.zip opensim-SC_OLD-1130c3067cb1d54c5a96ace2bc3f2519cf3916c1.tar.gz opensim-SC_OLD-1130c3067cb1d54c5a96ace2bc3f2519cf3916c1.tar.bz2 opensim-SC_OLD-1130c3067cb1d54c5a96ace2bc3f2519cf3916c1.tar.xz |
* A bit of spice from here, a pinch of salt from there, some brains that attracts zombies.. a recipe for llRezObject
* Original patch by YZh Thanks YZH!!!!
* object_rez event patch by Melanie, Thanks Melanie!!!
* Some fixups, some missing things(velocity,rotation)
* script delay
* Recoil
* Standard error messages
* Standard silent failures
* Easter egg management
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 5d39790..9ed5990 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -2526,5 +2526,17 @@ namespace OpenSim.Region.Environment.Scenes | |||
2526 | } | 2526 | } |
2527 | } | 2527 | } |
2528 | } | 2528 | } |
2529 | public float GetMass() | ||
2530 | { | ||
2531 | float retmass = 0f; | ||
2532 | lock (m_parts) | ||
2533 | { | ||
2534 | foreach (SceneObjectPart part in m_parts.Values) | ||
2535 | { | ||
2536 | retmass += part.GetMass(); | ||
2537 | } | ||
2538 | } | ||
2539 | return retmass; | ||
2540 | } | ||
2529 | } | 2541 | } |
2530 | } | 2542 | } |