1
This commit is contained in:
parent
a99793fac2
commit
5af52aa19a
@ -767,6 +767,11 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
|
||||
glm::vec3 old_move_dir;
|
||||
glm::vec3 new_move_dir;
|
||||
TypeConvert::FromPb(new_move_dir, &msg.move_dir());
|
||||
// 666
|
||||
#if 1
|
||||
new_move_dir.z = new_move_dir.y;
|
||||
new_move_dir.y = 0.0f;
|
||||
#endif
|
||||
if (!HasBuffEffect(kBET_Vertigo)) {
|
||||
if (!(HasBuffEffect(kBET_Jump) && follow_target.Get())) {
|
||||
if (GetDisableMoveDirTimes() <= 0) {
|
||||
@ -789,7 +794,8 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
|
||||
std::isfinite(msg.attack_dir().y()) &&
|
||||
(
|
||||
std::abs(msg.attack_dir().x()) > 0.00001f ||
|
||||
std::abs(msg.attack_dir().y()) > 0.00001f
|
||||
std::abs(msg.attack_dir().y()) > 0.00001f ||
|
||||
std::abs(msg.attack_dir().z()) > 0.00001f
|
||||
)
|
||||
){
|
||||
bool can_set = true;
|
||||
@ -812,7 +818,12 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
|
||||
if (can_set) {
|
||||
if (GetDisableMoveDirTimes() <= 0 &&
|
||||
GetDisableAttackDirTimes() <= 0) {
|
||||
// 666
|
||||
#if 1
|
||||
glm::vec3 attack_dir(msg.attack_dir().x(), msg.attack_dir().z(), msg.attack_dir().y());
|
||||
#else
|
||||
glm::vec3 attack_dir(msg.attack_dir().x(), msg.attack_dir().y(), msg.attack_dir().z());
|
||||
#endif
|
||||
GlmHelper::Normalize(attack_dir);
|
||||
SetAttackDir(attack_dir);
|
||||
if (GetCar() && GetCar()->IsDriver(this)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user