* For your fragging desire, damage enabled land works, but watch out!, life does not regenerate until you're dead!

This commit is contained in:
Teravus Ovares
2008-05-03 15:39:40 +00:00
parent 07167c9a3f
commit e8acb49fef
9 changed files with 173 additions and 5 deletions

View File

@@ -151,6 +151,10 @@ namespace OpenSim.Region.Environment.Scenes
public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete;
public delegate void AvatarKillData(uint KillerLocalID, ScenePresence avatar);
public event AvatarKillData OnAvatarKilled;
/// <summary>
/// RegisterCapsEvent is called by Scene after the Caps object
/// has been instantiated and before it is return to the
@@ -267,6 +271,7 @@ namespace OpenSim.Region.Environment.Scenes
private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null;
private LandBuy handlerLandBuy = null;
private LandBuy handlerValidateLandBuy = null;
private AvatarKillData handlerAvatarKill = null;
public void TriggerOnScriptChangedEvent(uint localID, uint change)
{
@@ -574,5 +579,13 @@ namespace OpenSim.Region.Environment.Scenes
handlerScriptNotAtTargetEvent(localID);
}
}
public void TriggerAvatarKill(uint KillerObjectLocalID, ScenePresence DeadAvatar)
{
handlerAvatarKill = OnAvatarKilled;
if (handlerAvatarKill != null)
{
handlerAvatarKill(KillerObjectLocalID, DeadAvatar);
}
}
}
}