This commit is contained in:
aozhiwei 2021-06-18 11:25:59 +08:00
parent 780a22c734
commit e93f8c9bfc
6 changed files with 11 additions and 3 deletions

View File

@ -398,7 +398,6 @@ void Bullet::ProcC4Bomb(int delay_time)
void Bullet::ProcSignalGunBomb(int delay_time)
{
printf("%d xxxxxx\n",this);
if (sender.Get()) {
a8::Vec2 old_buff_vec2_param1 = sender.Get()->buff_vec2_param1;
sender.Get()->buff_vec2_param1 = GetPos();

View File

@ -89,6 +89,7 @@ enum InventorySlot_e
IS_SMOKE = 6,
IS_HEALTHKIT = 7, //医疗包
IS_PAIN_KILLER = 8, //止痛药
IS_SHEN_BAO = 9, //肾上腺速
IS_1XSCOPE = 12,
IS_2XSCOPE = 13,
@ -104,8 +105,7 @@ enum InventorySlot_e
IS_C4 = 21, //c3
IS_SHIELD_WALL = 22, //盾墙
IS_SINGAL_GUN = 23, //信号枪
IS_SHEN_BAO = 24, //肾上腺速
IS_OIL_BUCKET = 25, //汽油桶
IS_OIL_BUCKET = 24, //汽油桶
IS_MAX = 30,
IS_END

View File

@ -731,3 +731,8 @@ void Obstacle::ClearObstacleBuff(Creature* c)
c->RemoveBuffById(buff_id);
}
}
bool Obstacle::IsTouchInteraction()
{
return meta->i->interaction_mode() == 1;
}

View File

@ -67,6 +67,7 @@ class Obstacle : public Entity
bool IsPermanent();
bool Attackable();
bool Throughable();
bool IsTouchInteraction();
protected:
Obstacle();

View File

@ -452,6 +452,8 @@ message MFCarFull
optional float max_health = 13; //
optional int32 oil = 14; //
optional int32 max_oil = 15; //
optional int32 bullet_num = 16; //
/*
!!!

View File

@ -67,6 +67,7 @@ message MapThing
optional string receive_special_damage_type = 23;
optional string param1 = 24;
optional string param2 = 25;
optional int32 interaction_mode = 26;
}
message SafeArea