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