1
This commit is contained in:
parent
780a22c734
commit
e93f8c9bfc
@ -398,7 +398,6 @@ void Bullet::ProcC4Bomb(int delay_time)
|
|||||||
|
|
||||||
void Bullet::ProcSignalGunBomb(int delay_time)
|
void Bullet::ProcSignalGunBomb(int delay_time)
|
||||||
{
|
{
|
||||||
printf("%d xxxxxx\n",this);
|
|
||||||
if (sender.Get()) {
|
if (sender.Get()) {
|
||||||
a8::Vec2 old_buff_vec2_param1 = sender.Get()->buff_vec2_param1;
|
a8::Vec2 old_buff_vec2_param1 = sender.Get()->buff_vec2_param1;
|
||||||
sender.Get()->buff_vec2_param1 = GetPos();
|
sender.Get()->buff_vec2_param1 = GetPos();
|
||||||
|
@ -89,6 +89,7 @@ enum InventorySlot_e
|
|||||||
IS_SMOKE = 6,
|
IS_SMOKE = 6,
|
||||||
IS_HEALTHKIT = 7, //医疗包
|
IS_HEALTHKIT = 7, //医疗包
|
||||||
IS_PAIN_KILLER = 8, //止痛药
|
IS_PAIN_KILLER = 8, //止痛药
|
||||||
|
IS_SHEN_BAO = 9, //肾上腺速
|
||||||
|
|
||||||
IS_1XSCOPE = 12,
|
IS_1XSCOPE = 12,
|
||||||
IS_2XSCOPE = 13,
|
IS_2XSCOPE = 13,
|
||||||
@ -104,8 +105,7 @@ enum InventorySlot_e
|
|||||||
IS_C4 = 21, //c3
|
IS_C4 = 21, //c3
|
||||||
IS_SHIELD_WALL = 22, //盾墙
|
IS_SHIELD_WALL = 22, //盾墙
|
||||||
IS_SINGAL_GUN = 23, //信号枪
|
IS_SINGAL_GUN = 23, //信号枪
|
||||||
IS_SHEN_BAO = 24, //肾上腺速
|
IS_OIL_BUCKET = 24, //汽油桶
|
||||||
IS_OIL_BUCKET = 25, //汽油桶
|
|
||||||
|
|
||||||
IS_MAX = 30,
|
IS_MAX = 30,
|
||||||
IS_END
|
IS_END
|
||||||
|
@ -731,3 +731,8 @@ void Obstacle::ClearObstacleBuff(Creature* c)
|
|||||||
c->RemoveBuffById(buff_id);
|
c->RemoveBuffById(buff_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Obstacle::IsTouchInteraction()
|
||||||
|
{
|
||||||
|
return meta->i->interaction_mode() == 1;
|
||||||
|
}
|
||||||
|
@ -67,6 +67,7 @@ class Obstacle : public Entity
|
|||||||
bool IsPermanent();
|
bool IsPermanent();
|
||||||
bool Attackable();
|
bool Attackable();
|
||||||
bool Throughable();
|
bool Throughable();
|
||||||
|
bool IsTouchInteraction();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Obstacle();
|
Obstacle();
|
||||||
|
@ -452,6 +452,8 @@ message MFCarFull
|
|||||||
optional float max_health = 13; //最大血量
|
optional float max_health = 13; //最大血量
|
||||||
optional int32 oil = 14; //当前油量
|
optional int32 oil = 14; //当前油量
|
||||||
optional int32 max_oil = 15; //最大油量
|
optional int32 max_oil = 15; //最大油量
|
||||||
|
optional int32 bullet_num = 16; //子弹数量
|
||||||
|
|
||||||
/*
|
/*
|
||||||
乘客列表(包含驾驶员)
|
乘客列表(包含驾驶员)
|
||||||
!!!注意这里只返回客户端必要的用于显示玩家外观的信息而不是全量信息
|
!!!注意这里只返回客户端必要的用于显示玩家外观的信息而不是全量信息
|
||||||
|
@ -67,6 +67,7 @@ message MapThing
|
|||||||
optional string receive_special_damage_type = 23;
|
optional string receive_special_damage_type = 23;
|
||||||
optional string param1 = 24;
|
optional string param1 = 24;
|
||||||
optional string param2 = 25;
|
optional string param2 = 25;
|
||||||
|
optional int32 interaction_mode = 26;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SafeArea
|
message SafeArea
|
||||||
|
Loading…
x
Reference in New Issue
Block a user