From bfd36e2e836f92539e68bba077104d5016c5bf8b Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 4 Sep 2007 13:43:56 +0000 Subject: Some work on Module loading/management. Some more modules templates classes (hoping that someone will pick some of these and work on implementing them). Early version of the "Dynamic Texture Module", although currently there are no render modules included (so not really functional without them). Added osSetDynamicTextureURL script function, for attaching a dynamic texture to a prim. Some work on the console command handling. Added "change-region " and "exit-region" so that after the use of change-region, the commands entered will apply to that region only. Then use exit-region to return to the top level (so commands then function as they did before and either apply to all regions or to the first region) (Note: this hasn't been tested very much) --- OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs') diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs index 003d3d4..4b05287 100644 --- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs @@ -98,12 +98,14 @@ namespace SimpleApp private LLUUID myID = LLUUID.Random(); public MyNpcCharacter( EventManager eventManager ) { + // startPos = new LLVector3(128, (float)(Util.RandomClass.NextDouble()*100), 2); eventManager.OnFrame += Update; } + private LLVector3 startPos = new LLVector3(128, 128,2); public virtual LLVector3 StartPos { - get { return new LLVector3(128, 100, 2); } + get { return startPos; } set { } } @@ -122,9 +124,10 @@ namespace SimpleApp get { return "Annoying"; } } + private string lastName = "NPC" + Util.RandomClass.Next(1, 1000); public virtual string LastName { - get { return "NPC"; } + get { return lastName; } } public virtual void OutPacket(Packet newPack) { } @@ -203,7 +206,7 @@ namespace SimpleApp flyState = 0; } - if (count >= 40) + if (count >= 200) { if (OnChatFromViewer != null) { -- cgit v1.1