From 70732b62c9fcdb57b36492945dd63ee072fbb7ab Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Sat, 28 Jun 2025 20:31:50 +0800 Subject: Minimal @sit:=force command implementation --- indra/newview/rlvhelper.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/newview/rlvhelper.cpp') diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp index 7cb1473c8c..cfbac6bc8d 100644 --- a/indra/newview/rlvhelper.cpp +++ b/indra/newview/rlvhelper.cpp @@ -54,6 +54,9 @@ BehaviourDictionary::BehaviourDictionary() addEntry(new ReplyProcessor("versionnew")); addEntry(new ReplyProcessor("versionnum")); + // Force + addEntry(new ForceProcessor("sit")); + // Populate mString2InfoMap (the tuple should be unique) for (const BehaviourInfo* bhvr_info_p : mBhvrInfoList) { -- cgit v1.2.3 From e87685aacfd2873f6b41b8036ee63a9ed67e2be2 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Sun, 29 Jun 2025 09:43:05 +0800 Subject: Minimal @unsit=force command implementation --- indra/newview/rlvhelper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/rlvhelper.cpp') diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp index cfbac6bc8d..a0a98d796e 100644 --- a/indra/newview/rlvhelper.cpp +++ b/indra/newview/rlvhelper.cpp @@ -56,6 +56,7 @@ BehaviourDictionary::BehaviourDictionary() // Force addEntry(new ForceProcessor("sit")); + addEntry(new ForceProcessor("unsit")); // Populate mString2InfoMap (the tuple should be unique) for (const BehaviourInfo* bhvr_info_p : mBhvrInfoList) -- cgit v1.2.3 From 6ad39e2c3b3df0ebc54f1056f4659b1a51b62f1e Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Mon, 30 Jun 2025 09:32:20 +0800 Subject: Basic scaffolding to support add/remove commands plus reorder header inclusions alphabetically. --- indra/newview/rlvhelper.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra/newview/rlvhelper.cpp') diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp index a0a98d796e..01a0b84eb5 100644 --- a/indra/newview/rlvhelper.cpp +++ b/indra/newview/rlvhelper.cpp @@ -58,6 +58,8 @@ BehaviourDictionary::BehaviourDictionary() addEntry(new ForceProcessor("sit")); addEntry(new ForceProcessor("unsit")); + // AddRem + // Populate mString2InfoMap (the tuple should be unique) for (const BehaviourInfo* bhvr_info_p : mBhvrInfoList) { -- cgit v1.2.3 From d6e7979612be80b24441fa84678adb476fda8405 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Mon, 30 Jun 2025 14:20:07 +0800 Subject: Minimal @sitground=force command implementation Untested cause I couldn't find any force ground sit command on the attachment I got access to. --- indra/newview/rlvhelper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/rlvhelper.cpp') diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp index 01a0b84eb5..c0658f8f8a 100644 --- a/indra/newview/rlvhelper.cpp +++ b/indra/newview/rlvhelper.cpp @@ -56,6 +56,7 @@ BehaviourDictionary::BehaviourDictionary() // Force addEntry(new ForceProcessor("sit")); + addEntry(new ForceProcessor("sitground")); addEntry(new ForceProcessor("unsit")); // AddRem -- cgit v1.2.3 From d0e3c7a40395ea5ad7f7a9982ce4dbf464e24caa Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Mon, 30 Jun 2025 18:09:32 +0800 Subject: Minimal @unsit= command implementation Hides the Stand up button too, but doesn't prevent teleporting yet. --- indra/newview/rlvhelper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/rlvhelper.cpp') diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp index c0658f8f8a..7c5f939d31 100644 --- a/indra/newview/rlvhelper.cpp +++ b/indra/newview/rlvhelper.cpp @@ -60,6 +60,7 @@ BehaviourDictionary::BehaviourDictionary() addEntry(new ForceProcessor("unsit")); // AddRem + addEntry(new BehaviourProcessor("unsit")); // Populate mString2InfoMap (the tuple should be unique) for (const BehaviourInfo* bhvr_info_p : mBhvrInfoList) -- cgit v1.2.3 From 2ed42e44bd6bc78b93c0a38abc2c073a10263c9b Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Mon, 30 Jun 2025 19:34:07 +0800 Subject: Minimal @sit= command implementation --- indra/newview/rlvhelper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/rlvhelper.cpp') diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp index 7c5f939d31..f26b5a115f 100644 --- a/indra/newview/rlvhelper.cpp +++ b/indra/newview/rlvhelper.cpp @@ -60,6 +60,7 @@ BehaviourDictionary::BehaviourDictionary() addEntry(new ForceProcessor("unsit")); // AddRem + addEntry(new BehaviourProcessor("sit")); addEntry(new BehaviourProcessor("unsit")); // Populate mString2InfoMap (the tuple should be unique) -- cgit v1.2.3 From 90117b89f6eef8785a1701ed79527f8175c55752 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Mon, 30 Jun 2025 22:33:00 +0800 Subject: Minimal @getsitid= implementation --- indra/newview/rlvhelper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/rlvhelper.cpp') diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp index f26b5a115f..ccb4675cbb 100644 --- a/indra/newview/rlvhelper.cpp +++ b/indra/newview/rlvhelper.cpp @@ -50,6 +50,7 @@ BehaviourDictionary::BehaviourDictionary() // Reply-only // addEntry(new ReplyProcessor("getcommand")); + addEntry(new ReplyProcessor("getsitid")); addEntry(new ReplyProcessor("version")); addEntry(new ReplyProcessor("versionnew")); addEntry(new ReplyProcessor("versionnum")); -- cgit v1.2.3 From 40de4208328bcac51782302e7028ec2dd057224e Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Thu, 3 Jul 2025 10:31:01 +0800 Subject: Partial @detach= command implementation Only greying out the detach option on the contextual menu popped up by right clicking the attachment in the 3D view/world, and not yet preventing detachment from the inventory/wearing panels. --- indra/newview/rlvhelper.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/rlvhelper.cpp') diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp index ccb4675cbb..b4abbc04f3 100644 --- a/indra/newview/rlvhelper.cpp +++ b/indra/newview/rlvhelper.cpp @@ -63,6 +63,7 @@ BehaviourDictionary::BehaviourDictionary() // AddRem addEntry(new BehaviourProcessor("sit")); addEntry(new BehaviourProcessor("unsit")); + addEntry(new BehaviourProcessor("detach")); // Populate mString2InfoMap (the tuple should be unique) for (const BehaviourInfo* bhvr_info_p : mBhvrInfoList) -- cgit v1.2.3