1
This commit is contained in:
parent
c5bb28dc12
commit
72f4bbe89c
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -24,6 +24,7 @@ enum CMMessageId_e
|
||||
_CMMatchBroadcastMsg = 223;
|
||||
_CMRequestBulletDmg = 230;
|
||||
_CMStowShield = 231;
|
||||
_CMImmediateMsg = 232;
|
||||
}
|
||||
|
||||
enum SMMessageId_e
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user