diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-06-30 14:20:07 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-06-30 14:32:43 +0800 |
commit | d6e7979612be80b24441fa84678adb476fda8405 (patch) | |
tree | f795d5da3e66f179c818f4fece3a559184ccd6b2 | |
parent | 6ad39e2c3b3df0ebc54f1056f4659b1a51b62f1e (diff) |
Minimal @sitground=force command implementation
Untested cause I couldn't find any force ground sit command on the
attachment I got access to.
-rw-r--r-- | indra/newview/rlvdefines.h | 1 | ||||
-rw-r--r-- | indra/newview/rlvhandler.cpp | 7 | ||||
-rw-r--r-- | indra/newview/rlvhelper.cpp | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/rlvdefines.h b/indra/newview/rlvdefines.h index 71550ac63f..50e0c95f7b 100644 --- a/indra/newview/rlvdefines.h +++ b/indra/newview/rlvdefines.h @@ -94,6 +94,7 @@ namespace Rlv VersionNew, VersionNum, Sit, + SitGround, Unsit, GetCommand, diff --git a/indra/newview/rlvhandler.cpp b/indra/newview/rlvhandler.cpp index 869ada40ab..49b89c8cdf 100644 --- a/indra/newview/rlvhandler.cpp +++ b/indra/newview/rlvhandler.cpp @@ -241,6 +241,13 @@ ECmdRet ForceHandler<EBehaviour::Sit>::onCommand(const RlvCommand& rlvCmd) } template<> template<> +ECmdRet ForceHandler<EBehaviour::SitGround>::onCommand(const RlvCommand& rlvCmd) +{ + gAgent.sitDown(); + return ECmdRet::Succeeded; +} + +template<> template<> ECmdRet ForceHandler<EBehaviour::Unsit>::onCommand(const RlvCommand& rlvCmd) { gAgent.standUp(); 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<EBehaviour::Sit>("sit")); + addEntry(new ForceProcessor<EBehaviour::SitGround>("sitground")); addEntry(new ForceProcessor<EBehaviour::Unsit>("unsit")); // AddRem |