This commit is contained in:
aozhiwei 2022-10-13 13:10:15 +08:00
parent c5bb28dc12
commit 72f4bbe89c
6 changed files with 25 additions and 0 deletions

View File

@ -21,6 +21,7 @@ const int kInRescueBuffId = 7020;
const int kKeepShotAnimiBuffId = 7021;
const int kVertigoEffectBuffId = 7022;
const int kDispelEffectBuffId = 7023;
const int kImmuneEffectBuffId = 7024;
const int kPullToWalkableBuffId = 8003;
const int kDiveBuffId = 8054;
const int kInvincibleBuffId = 1005;

View File

@ -93,6 +93,7 @@ void HandlerMgr::RegisterNetMsgHandlers()
RegisterNetMsgHandler(&ggmsghandler, &MatchMgr::_CMMatchCancelStartGame);
RegisterNetMsgHandler(&ggmsghandler, &Player::_CMMove);
RegisterNetMsgHandler(&ggmsghandler, &Player::_CMImmediateMsg);
RegisterNetMsgHandler(&ggmsghandler, &Player::_CMExecCommand);
RegisterNetMsgHandler(&ggmsghandler, &Player::_CMEmote);
RegisterNetMsgHandler(&ggmsghandler, &Player::_CMVoice);

View File

@ -929,6 +929,18 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
#endif
}
void Player::_CMImmediateMsg(f8::MsgHdr& hdr, const cs::CMImmediateMsg& msg)
{
if (msg.stop_move()) {
moving = false;
}
if (msg.stop_shot()) {
shot_start = false;
shot_hold = false;
series_shot_frames = 0;
}
}
void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
{
std::vector<std::string> cmds;

View File

@ -10,6 +10,7 @@ namespace cs
class CMEmote;
class CMVoice;
class CMStowShield;
class CMImmediateMsg;
class MFActivePlayerData;
class MFGasData;
class MFPair;
@ -108,6 +109,7 @@ class Player : public Human
void _CMReconnect(f8::MsgHdr& hdr, const cs::CMReconnect& msg);
void _CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg);
void _CMImmediateMsg(f8::MsgHdr& hdr, const cs::CMImmediateMsg& msg);
void _CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg);
void _CMEmote(f8::MsgHdr& hdr, const cs::CMEmote& msg);
void _CMVoice(f8::MsgHdr& hdr, const cs::CMVoice& msg);

View File

@ -24,6 +24,7 @@ enum CMMessageId_e
_CMMatchBroadcastMsg = 223;
_CMRequestBulletDmg = 230;
_CMStowShield = 231;
_CMImmediateMsg = 232;
}
enum SMMessageId_e

View File

@ -977,6 +977,14 @@ message CMMove
optional int32 trace_target_uniid = 41; //uniid
}
//
message CMImmediateMsg
{
optional int32 stop_move = 1; //
optional int32 stop_shot = 2; //
}
//GM指令
message CMExecCommand
{