mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed the organ animation in Lumbridge
This commit is contained in:
parent
b22c6057a3
commit
a11b783c39
1 changed files with 3 additions and 1 deletions
|
|
@ -18,6 +18,8 @@ import core.net.packet.context.CameraContext.CameraType;
|
||||||
import core.plugin.Initializable;
|
import core.plugin.Initializable;
|
||||||
import core.net.packet.out.CameraViewPacket;
|
import core.net.packet.out.CameraViewPacket;
|
||||||
|
|
||||||
|
import static core.api.ContentAPIKt.animateScenery;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the organ cutscene.
|
* Represents the organ cutscene.
|
||||||
* @author 'Vexia
|
* @author 'Vexia
|
||||||
|
|
@ -53,7 +55,7 @@ public final class OrganCutScene extends CutscenePlugin {
|
||||||
GameWorld.getPulser().submit(new Pulse(3) {
|
GameWorld.getPulser().submit(new Pulse(3) {
|
||||||
@Override
|
@Override
|
||||||
public boolean pulse() {
|
public boolean pulse() {
|
||||||
player.getPacketDispatch().sendSceneryAnimation(RegionManager.getObject(base.transform(42, 14, 0)), new Animation(9841));
|
animateScenery(player, newOrgin, 9982, false); // Not animation 9841
|
||||||
PacketRepository.send(CameraViewPacket.class, new CameraContext(player, CameraType.POSITION, player.getLocation().getX() + 2, player.getLocation().getY() - 3, 400, 1, 1));
|
PacketRepository.send(CameraViewPacket.class, new CameraContext(player, CameraType.POSITION, player.getLocation().getX() + 2, player.getLocation().getY() - 3, 400, 1, 1));
|
||||||
PacketRepository.send(CameraViewPacket.class, new CameraContext(player, CameraType.ROTATION, player.getLocation().getX() + 1, player.getLocation().getY(), 400, 1, 1));
|
PacketRepository.send(CameraViewPacket.class, new CameraContext(player, CameraType.ROTATION, player.getLocation().getX() + 1, player.getLocation().getY(), 400, 1, 1));
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue