添加吃藥速度
This commit is contained in:
parent
1eb516c700
commit
25aecdf0e5
@ -119,8 +119,10 @@ float Human::GetSpeed()
|
||||
}
|
||||
} else if (aiming) {
|
||||
return std::max(1, meta->i->aiming_speed());
|
||||
} else if (action_type != AT_None) {
|
||||
} else if (action_type == AT_Reload) {
|
||||
return std::max(1, meta->i->reload_speed());
|
||||
} else if (action_type == AT_UseItem) {
|
||||
return std::max(1, meta->i->useitem_speed());
|
||||
}
|
||||
speed = meta->i->move_speed();
|
||||
}
|
||||
|
@ -204,6 +204,7 @@ message Player
|
||||
optional int32 aiming_speed = 8;
|
||||
optional int32 move_speed4 = 10; //移动速度4
|
||||
optional int32 reload_speed = 9;
|
||||
optional int32 useitem_speed = 49;
|
||||
optional float def = 11; //防御
|
||||
optional string volume = 12; //初始库存
|
||||
optional int32 level = 13;
|
||||
|
Loading…
x
Reference in New Issue
Block a user