1
This commit is contained in:
parent
d29aa9f5bd
commit
cfc8789c70
@ -26,11 +26,13 @@ void BatchAddBuff::Activate()
|
|||||||
if (rnd < std::get<1>(items[0])){
|
if (rnd < std::get<1>(items[0])){
|
||||||
const mt::Buff* buff_meta = mt::Buff::GetById(std::get<0>(items[0]));
|
const mt::Buff* buff_meta = mt::Buff::GetById(std::get<0>(items[0]));
|
||||||
if (buff_meta) {
|
if (buff_meta) {
|
||||||
|
#if 0
|
||||||
a8::XPrintf("BatchAddBuff:%d %s\n",
|
a8::XPrintf("BatchAddBuff:%d %s\n",
|
||||||
{
|
{
|
||||||
buff_meta->buff_id(),
|
buff_meta->buff_id(),
|
||||||
buff_meta->name()
|
buff_meta->name()
|
||||||
});
|
});
|
||||||
|
#endif
|
||||||
owner->AddBuff(caster_.Get(), buff_meta, skill_meta);
|
owner->AddBuff(caster_.Get(), buff_meta, skill_meta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -324,7 +324,7 @@ int Creature::AddBuff(Creature* caster,
|
|||||||
if (!buff->meta->only_server()) {
|
if (!buff->meta->only_server()) {
|
||||||
room->frame_event.AddBuff(GetWeakPtrRef(), buff.get());
|
room->frame_event.AddBuff(GetWeakPtrRef(), buff.get());
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG1
|
||||||
{
|
{
|
||||||
SendDebugMsg(a8::Format("添加buff_id:%d effect:%d %s params:%d,%d,%d,%d,%d uniid:%d dur:%d",
|
SendDebugMsg(a8::Format("添加buff_id:%d effect:%d %s params:%d,%d,%d,%d,%d uniid:%d dur:%d",
|
||||||
{
|
{
|
||||||
|
@ -861,7 +861,7 @@ void Player::_CMMove(f8::MsgHdr& hdr, const cs::CMMove& msg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG1
|
||||||
a8::XPrintf("attack_dir:%f,%f,%f cli_dir:%f,%f,%f\n",
|
a8::XPrintf("attack_dir:%f,%f,%f cli_dir:%f,%f,%f\n",
|
||||||
{
|
{
|
||||||
GetAttackDir().x,
|
GetAttackDir().x,
|
||||||
|
@ -219,7 +219,7 @@ static void InternalCreateBullet(BulletInfo& bullet_info)
|
|||||||
#ifdef DEBUG1
|
#ifdef DEBUG1
|
||||||
a8::XPrintf("CreateBullet uniid:%d frameno:%d\n", {bullet_uniid, c->room->GetFrameNo()});
|
a8::XPrintf("CreateBullet uniid:%d frameno:%d\n", {bullet_uniid, c->room->GetFrameNo()});
|
||||||
#endif
|
#endif
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG1
|
||||||
if (c->IsPlayer()) {
|
if (c->IsPlayer()) {
|
||||||
a8::XPrintf("bullet_born_pos:%f,%f,%f bullet_dir:%f,%f,%f pos:%f,%f,%f\n",
|
a8::XPrintf("bullet_born_pos:%f,%f,%f bullet_dir:%f,%f,%f pos:%f,%f,%f\n",
|
||||||
{
|
{
|
||||||
@ -453,7 +453,7 @@ void InternalShot(Creature* c,
|
|||||||
bullet_born_offset = glm::vec3(v.z *10*1, v.y, v.x*10*-1);
|
bullet_born_offset = glm::vec3(v.z *10*1, v.y, v.x*10*-1);
|
||||||
bullet_born_pos = c->GetPos().ToGlmVec3() + bullet_born_offset;
|
bullet_born_pos = c->GetPos().ToGlmVec3() + bullet_born_offset;
|
||||||
if (c->IsPlayer() || c->IsCar()) {
|
if (c->IsPlayer() || c->IsCar()) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG1
|
||||||
a8::XPrintf("idx:%d offset:%f,%f,%f angle:%f old_angle:%f angle_xyz:%f,%f,%f %f %f gun_muzzle_position:%f,%f,%f pos:%f,%f,%f gun_id:%d t:%d\n",
|
a8::XPrintf("idx:%d offset:%f,%f,%f angle:%f old_angle:%f angle_xyz:%f,%f,%f %f %f gun_muzzle_position:%f,%f,%f pos:%f,%f,%f gun_id:%d t:%d\n",
|
||||||
{
|
{
|
||||||
bulletIdx,
|
bulletIdx,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user