添加吃藥速度

This commit is contained in:
aozhiwei 2021-11-08 13:17:19 +08:00
parent 1eb516c700
commit 25aecdf0e5
2 changed files with 4 additions and 1 deletions

View File

@ -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();
}

View File

@ -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;