Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007952opensim[REGION] OpenSim Corepublic2016-07-02 22:012016-08-10 12:26
Assigned To 
Statuspatch includedResolutionopen 
PlatformPCOperating SystemWindowsOperating System VersionSeven
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0007952: [NPC] No teleported to the center of region when npc killed
DescriptionI found that if you kill an avatar is teleported to the center of the region and his health back to 100%.

This is not the same with a npc.

If you kill an NPC is not teleported to the center and its life returns to 100%.

The npc should also be teleported to the center of the region, as an avatar, without silk necessary to create a script for this.
Steps To ReproduceCause 100% damage to a npc to kill it.
Additional InformationPhysics Engine : ubODE
TagsNo tags attached.
Git Revision or version numberLast OSGrid Version
Run Mode Grid (Multiple Regions per Sim)
Physics EngineOther
Script Engine
Environment.NET / Windows32
Mono VersionNone
Attached Filespatch file icon 0001-Npc-should-be-deleted-when-it-is-killed-by-osCauseDa.patch [^] (1,864 bytes) 2016-08-09 08:14 [Show Content]

- Relationships

-  Notes
djphil (reporter)
2016-08-09 05:21

Re-tested today and no work.

I have 2 message in console:
14:18:25 - [ENTITY TRANSFER MODULE]: Request to teleport Vanessa Brown aa1f0965-cdc9-43bf-b9fd-552856e6bef7 home
14:18:25 - [HG ENTITY TRANSFER MODULE]: Unable to locate agent's gateway information

It seems therefore kindly teleport NPC but can not find it ...
Mandarinka Tasty (reporter)
2016-08-09 06:35

Killed avatar should be returned to its home location, not to the center of the region.

That is etablished here:

deadAvatar.Scene.TeleportClientHome(deadAvatar.UUID, deadAvatar.ControllingClient);

And Npc must be deleted, not teleported home, explanation is here:

INPCModule NPCmodule = deadAvatar.Scene.RequestModuleInterface<INPCModule>();
            if (NPCmodule != null && NPCmodule.DeleteNPC(deadAvatar.UUID, deadAvatar.Scene))
djphil (reporter)
2016-08-09 08:05

Anyway, there is neither one nor the other ...
Ty for clarification.
Mandarinka Tasty (reporter)
2016-08-09 08:15
edited on: 2016-08-09 08:16

That is my offer of the patch, that makes Npc bot deleted, when osCauseDamage

kills it.

I personally use llSetDamage with CombatModule. And there are slightly other logics in this module.


djphil (reporter)
2016-08-09 08:18

This is already an improvement, thank you!

- Issue History
Date Modified Username Field Change
2016-07-02 22:01 djphil New Issue
2016-08-09 05:21 djphil Note Added: 0030998
2016-08-09 06:35 Mandarinka Tasty Note Added: 0030999
2016-08-09 08:05 djphil Note Added: 0031000
2016-08-09 08:14 Mandarinka Tasty File Added: 0001-Npc-should-be-deleted-when-it-is-killed-by-osCauseDa.patch
2016-08-09 08:15 Mandarinka Tasty Note Added: 0031001
2016-08-09 08:15 Mandarinka Tasty Status new => patch included
2016-08-09 08:16 Mandarinka Tasty Note Edited: 0031001 View Revisions
2016-08-09 08:18 djphil Note Added: 0031002
2016-08-10 12:26 aiaustin Summary [NPC] No teleported to te center of region when he killed => [NPC] No teleported to the center of region when npc killed

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker