Skip to content

Commit

Permalink
Tune player dead drop angle
Browse files Browse the repository at this point in the history
  • Loading branch information
solcloud committed Sep 26, 2023
1 parent 8f5924f commit e80666a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/Core/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function onPlayerDied(): void
$dropCount = count($dropItems);
if ($dropCount > 0) {
$angleOffset = 360 / $dropCount;
$this->sight->lookVertical(-84);
$this->sight->lookVertical(-64);
foreach ($dropItems as $item) {
$this->sight->lookHorizontalOffset($angleOffset);
$this->world->dropItem($this, $item);
Expand Down
2 changes: 1 addition & 1 deletion server/src/Event/DropEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(private readonly Player $player, private readonly It
$this->timeIncrement = 1 / Util::millisecondsToFrames(100);
if (!$this->player->isAlive()) {
$this->velocity = 7;
$this->timeIncrement = Setting::fallAmountPerTick();
$this->timeIncrement = 7;
}
}

Expand Down

0 comments on commit e80666a

Please sign in to comment.