1
This commit is contained in:
commit
cb711bea74
@ -66,6 +66,14 @@ float Human::GetSpeed()
|
|||||||
} if (downed) {
|
} if (downed) {
|
||||||
return meta->i->move_speed3() + buff.speed;
|
return meta->i->move_speed3() + buff.speed;
|
||||||
} else {
|
} else {
|
||||||
|
if (shot_hold) {
|
||||||
|
if (curr_weapon->weapon_idx == GUN_SLOT1 ||
|
||||||
|
curr_weapon->weapon_idx == GUN_SLOT2) {
|
||||||
|
if (action_type != AT_Reload) {
|
||||||
|
return meta->i->shot_speed();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return meta->i->move_speed() + buff.speed;
|
return meta->i->move_speed() + buff.speed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -96,6 +96,11 @@ class Human : public Entity
|
|||||||
std::set<Human*>* team_members = nullptr;
|
std::set<Human*>* team_members = nullptr;
|
||||||
std::set<Human*> kill_humans;
|
std::set<Human*> kill_humans;
|
||||||
|
|
||||||
|
bool shot_start = false;
|
||||||
|
bool shot_hold = false;
|
||||||
|
int series_shot_frames = 0;
|
||||||
|
float fly_distance = 0.0f;
|
||||||
|
|
||||||
long long jump_frameno = 0;
|
long long jump_frameno = 0;
|
||||||
|
|
||||||
long long send_msg_times = 0;
|
long long send_msg_times = 0;
|
||||||
|
@ -30,11 +30,6 @@ class Player : public Human
|
|||||||
bool moving = false;
|
bool moving = false;
|
||||||
int moved_frames = 0;
|
int moved_frames = 0;
|
||||||
|
|
||||||
bool shot_start = false;
|
|
||||||
bool shot_hold = false;
|
|
||||||
int series_shot_frames = 0;
|
|
||||||
float fly_distance = 0.0f;
|
|
||||||
|
|
||||||
bool select_weapon = false;
|
bool select_weapon = false;
|
||||||
int selected_weapon_idx = 0;
|
int selected_weapon_idx = 0;
|
||||||
|
|
||||||
|
@ -37,6 +37,12 @@ aux_source_directory(../../third_party/framework/cpp
|
|||||||
SRC_LIST
|
SRC_LIST
|
||||||
)
|
)
|
||||||
|
|
||||||
|
execute_process(
|
||||||
|
COMMAND touch -a ss_proto.pb.h
|
||||||
|
COMMAND touch -a ss_proto.pb.cc
|
||||||
|
COMMAND touch -a ss_msgid.pb.h
|
||||||
|
COMMAND touch -a ss_msgid.pb.cc
|
||||||
|
)
|
||||||
aux_source_directory(.
|
aux_source_directory(.
|
||||||
SRC_LIST
|
SRC_LIST
|
||||||
)
|
)
|
||||||
|
@ -98,6 +98,7 @@ message Player
|
|||||||
optional int32 move_speed = 4; //移动速度
|
optional int32 move_speed = 4; //移动速度
|
||||||
optional int32 jump_speed = 5; //跳伞速度
|
optional int32 jump_speed = 5; //跳伞速度
|
||||||
optional int32 move_speed3 = 6;
|
optional int32 move_speed3 = 6;
|
||||||
|
optional int32 shot_speed = 7;
|
||||||
optional int32 move_speed4 = 10; //移动速度4
|
optional int32 move_speed4 = 10; //移动速度4
|
||||||
optional float def = 11; //防御
|
optional float def = 11; //防御
|
||||||
optional string volume = 12; //初始库存
|
optional string volume = 12; //初始库存
|
||||||
|
@ -34,7 +34,7 @@ def stop(instance_id, node_id):
|
|||||||
for pid in pids:
|
for pid in pids:
|
||||||
exepath = getExePath(pid)
|
exepath = getExePath(pid)
|
||||||
cmdline = getExeCmdLine(pid)
|
cmdline = getExeCmdLine(pid)
|
||||||
if cmdline == ("./gameserver\0-i\0%d\0-i\0%d\0" % (instance_id, node_id)):
|
if cmdline == ("./gameserver\0-i\0%d\0-n\0%d\0" % (instance_id, node_id)):
|
||||||
os.popen('kill -9 %d' % int(pid))
|
os.popen('kill -9 %d' % int(pid))
|
||||||
|
|
||||||
def listServer():
|
def listServer():
|
||||||
|
@ -34,7 +34,7 @@ def stop(instance_id, node_id):
|
|||||||
for pid in pids:
|
for pid in pids:
|
||||||
exepath = getExePath(pid)
|
exepath = getExePath(pid)
|
||||||
cmdline = getExeCmdLine(pid)
|
cmdline = getExeCmdLine(pid)
|
||||||
if cmdline == ("./masterserver\0-i\0%d\0-i\0%d\0" % (instance_id, node_id)):
|
if cmdline == ("./masterserver\0-i\0%d\0-n\0%d\0" % (instance_id, node_id)):
|
||||||
os.popen('kill -9 %d' % int(pid))
|
os.popen('kill -9 %d' % int(pid))
|
||||||
|
|
||||||
def listServer():
|
def listServer():
|
||||||
|
2
third_party/a8engine
vendored
2
third_party/a8engine
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 8cee06b52896b0573eeff482a4c9fa1adac2a7fc
|
Subproject commit 9c2a3520f5459f6260ac4b9b34958ef4c8776a80
|
Loading…
x
Reference in New Issue
Block a user