From 8c812ece158e8159393577197762f7c916025069 Mon Sep 17 00:00:00 2001 From: Ben Saine Date: Wed, 20 Oct 2021 00:17:59 +0000 Subject: [PATCH] self kill command --- code/ryzom/client/src/commands.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/ryzom/client/src/commands.cpp b/code/ryzom/client/src/commands.cpp index fad157147..9377dfd0d 100644 --- a/code/ryzom/client/src/commands.cpp +++ b/code/ryzom/client/src/commands.cpp @@ -416,6 +416,18 @@ NLMISC_COMMAND(afk, "Set the player as 'away from keyboard'","[]") return true; } +NLMISC_COMMAND(selfkill, "Kill the player ","") +{ + CBitMemStream out; + if(!GenericMsgHeaderMngr.pushNameToStream("COMMAND:SELFKILL", out)) + { + nlwarning("Unknown message name COMMAND:SELFKILL"); + return false; + } + NetMngr.push(out); + return true; +} + bool randomCheckCharset(std::string const& str) { std::string::const_iterator it, itEnd = str.end();