1
This commit is contained in:
parent
c9a56f73f5
commit
ad6e3e2f96
@ -1342,7 +1342,7 @@ int HeroAgent::SearchPickupObj()
|
||||
}
|
||||
});
|
||||
if (nearest_obj &&
|
||||
nearest_obj->GetPos().ManhattanDistance2D(owner_->GetPos()) < 600) {
|
||||
nearest_obj->GetPos().ManhattanDistance2D(owner_->GetPos()) < 300) {
|
||||
int obj_type = 0;
|
||||
if (nearest_obj->IsCar()) {
|
||||
obj_type = 1;
|
||||
@ -1466,6 +1466,9 @@ bool HeroAgent::CanThrowItem(int slot)
|
||||
if (owner_->IsCar()) {
|
||||
return false;
|
||||
}
|
||||
if (owner_->GetCar()) {
|
||||
return false;
|
||||
}
|
||||
if (owner_->room->GetFrameNo() - last_throw_item_frameno_ < SERVER_FRAME_RATE * 5) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user