Tribes: Ascend skiing but in MineCraft

Discussion in 'Plugin Development' started by JimsHD, Jun 9, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    JimsHD

    Hey I'm wondering if this is possible in a plugin(not a request). If any of you know the game Tribes: Ascend, it has a skiing effect where you can literally ski on any terrain you want. I'm wondering if this can be done in a plugin, and if so how would I do it?
     
  2. Offline

    TheWolfBadger

    JimsHD Should this be in plugin development?
     
  3. Offline

    JimsHD

    TheWolfBadger I actually had trouble deciding that one.. sorry Should it?
     
  4. Offline

    TheWolfBadger

    JimsHD Do you want it to be made for you or do you have coding experience? We don't spoon-feed code here.
     
    Garris0n likes this.
  5. Offline

    JimsHD

    I have coding experience. I wasn't wanting any code I was really just wondering if it's possible as of now
     
  6. Offline

    xTigerRebornx

    JimsHD You could try working with putting the Player on a custom Entity that has controls similar to the WASD Entity tutorial that is somewhere on here, since I know its possible to make the Entity scale up blocks in a "Ski" like movement
    Looking at https://forums.bukkit.org/threads/tutorial-1-7-5-wasd-entity-riding.163019/
    Code:
    public void e(float sideMot, float forMot) {
        if (this.passenger == null || !(this.passenger instanceof EntityHuman)) {
            super.e(sideMot, forMot);
            this.W = 0.5F;    // Make sure the entity can walk over half slabs, instead of jumping
            return;
        }
     
        EntityHuman human = (EntityHuman) this.passenger;
        if (human.getBukkitEntity() != Bukkit.getPlayerExact("_DSH105_").getPlayer()) {
            // Same as before
            super.e(sideMot, forMot);
            this.W = 0.5F;
            return;
        }
     
        this.lastYaw = this.yaw = this.passenger.yaw;
        this.pitch = this.passenger.pitch * 0.5F;
     
        // Set the entity's pitch, yaw, head rotation etc.
        this.b(this.yaw, this.pitch); //[url]https://github.com/Bukkit/mc-dev/blob/master/net/minecraft/server/Entity.java#L163-L166[/url]
        this.aO = this.aM = this.yaw;
     
    } 
    A Small snippit (not mine), try looking at the field W and see what changing that value does. If that doesn't do it, go and do some research, find out what makes other plugins do it.
     
Thread Status:
Not open for further replies.

Share This Page