diff --git a/server/gameserver/creature.h b/server/gameserver/creature.h index 7ec2a0eb..1a7ff7c7 100644 --- a/server/gameserver/creature.h +++ b/server/gameserver/creature.h @@ -128,6 +128,8 @@ class Creature : public MoveableEntity std::vector gemstone_hold_buffs; bool shot_start = false; bool shot_hold = false; + int skill_hold_skill_id = 0; + long long skill_hold_start_frameno = 0; a8::XTimerWp remove_shot_hold_timer; a8::XTimerWp craze_mode_timer; diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 29806279..0a24ed8a 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -1470,6 +1470,8 @@ message CMMove optional MFVec3 shot_target_pos = 46; //射击时目标位置(如果没目标则为子弹终点) optional MFVec3 shot_client_pos = 47; //射击时客户端位置 + + optional int32 skill_hold = 50; //一直按着技能键,松开时传0(技能id) } //立刻消息