1
This commit is contained in:
parent
c9b06f80b2
commit
e11a776f01
@ -42,7 +42,9 @@ void SprintBuff::SprintMove()
|
|||||||
owner->SetAttackDir(owner->context_dir);
|
owner->SetAttackDir(owner->context_dir);
|
||||||
owner->SetDisableMoveDirTimes(old_times);
|
owner->SetDisableMoveDirTimes(old_times);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
owner->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d",
|
a8::XPrintf("%f\n",
|
||||||
|
{
|
||||||
|
a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d",
|
||||||
{
|
{
|
||||||
owner->GetMoveDir().x,
|
owner->GetMoveDir().x,
|
||||||
owner->GetMoveDir().y,
|
owner->GetMoveDir().y,
|
||||||
@ -51,7 +53,8 @@ void SprintBuff::SprintMove()
|
|||||||
owner->GetAttackDir().y,
|
owner->GetAttackDir().y,
|
||||||
owner->GetAttackDir().z,
|
owner->GetAttackDir().z,
|
||||||
owner->GetSpeed()
|
owner->GetSpeed()
|
||||||
}));
|
})
|
||||||
|
});
|
||||||
owner->room->xtimer.SetIntervalEx
|
owner->room->xtimer.SetIntervalEx
|
||||||
(
|
(
|
||||||
2,
|
2,
|
||||||
@ -59,7 +62,9 @@ void SprintBuff::SprintMove()
|
|||||||
{
|
{
|
||||||
if (a8::TIMER_EXEC_EVENT == event) {
|
if (a8::TIMER_EXEC_EVENT == event) {
|
||||||
Human* hum = owner->AsHuman();
|
Human* hum = owner->AsHuman();
|
||||||
hum->SendDebugMsg(a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d",
|
a8::XPrintf("%s\n",
|
||||||
|
{
|
||||||
|
a8::Format("xxxxxxxx move_dir:%f,%f,%f attack_dir:%f,%f,%f speed:%d",
|
||||||
{
|
{
|
||||||
hum->GetMoveDir().x,
|
hum->GetMoveDir().x,
|
||||||
hum->GetMoveDir().y,
|
hum->GetMoveDir().y,
|
||||||
@ -68,7 +73,8 @@ void SprintBuff::SprintMove()
|
|||||||
hum->GetAttackDir().y,
|
hum->GetAttackDir().y,
|
||||||
hum->GetAttackDir().z,
|
hum->GetAttackDir().z,
|
||||||
hum->GetSpeed()
|
hum->GetSpeed()
|
||||||
}));
|
})
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
&xtimer_attacher
|
&xtimer_attacher
|
||||||
|
Loading…
x
Reference in New Issue
Block a user