Add a way for players to have arrows travel through them

Discussion in 'Bukkit Project and Community Feedback' started by libraryaddict, Aug 16, 2012.

  1. Offline

    libraryaddict

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    In a plugin Im developing people can spectate.
    However when a player fires a arrow and a spectator is in the way, The arrow jerks to a halt in midair.
    Regardless of the spectator being invisible.

    I could solve this by teleporting the arrow but then that goes into a range of stuff I don't like.
    Mainly I don't know how.

    So basically have a option for a player to be a viewpoint entity, Someone who can't have events fired on them, Can't be hit by explosions, enderpearls, arrows, etc.

    Pretty much someone who is no-clipping.

    Infact, If someone has a way to make the players no-clip without a client mod, I'm more then happy to hear it.
    But I don't want to be forced to modify craftbukkit itself.
  2. Offline

    Sabersamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    :3 this should probably be in plugin-dev
  3. Offline

    libraryaddict

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I never could find the correct place
  4. Offline

    Sabersamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Im sure @TnT will move it, (sorry for tagging you)

    This post has been edited 1 time. It was last edited by Sabersamus Aug 16, 2012.
  5. Offline

    libraryaddict

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Funny thing, When I made a suggestion in the suggestion tracker.
    It was closed for being in the wrong place as well.
  6. Offline

    Omnitv

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You can just use the lovely report boutton. ^_^ TnT gets overwhelmed with tags.
  7. Offline

    Zidkon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @libraryaddict I think is good they could add this, since the server is the one who I think manages the arrow direction and target.

    But you can still do this by blocking the packets send to players about spectator player, so spectators will be totally invisible and arrows will go through them too.

    I haven't tested this anyway, if any advance I would like you to post it here :D I'm interested at this too ;)
  8. Offline

    libraryaddict

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    But its the server that checks arrows not the client.
  9. Offline

    Sabersamus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That is literally what @Zidkon said.
  10. Offline

    Zidkon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You mean that even if people is totally invisible (I have been told there is a hide players thing on Bukkit API already), arrows will still hit em if they are in the middle? I don't think so :/ but anyway I'm trying to ask someone that knows, if I get any info I will tell u :)

    "It untracks the player being hidden from those who can't see them. Doesn't affect arrow entitires AFAIK." as mbaxter told me.

    This is what the API function does, but he is not sure about arrows either or thats what I understood xD, sorry ;/

    This post has been edited 1 time. It was last edited by Zidkon Aug 29, 2012.
  11. Offline

    libraryaddict

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Arrows will still hit the invisible people.
    I already checked this
  12. Offline

    Zidkon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So this diservers to be seen by bukkit devs :)
  13. Offline

    Sleaker

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    They should. As the server still checks the logic on where the arrow hits. the client wont see the arrow hitting the player though.
    Why shouldn't the player be hit by an arrow while they are invisible to another player? The player isn't made so it ignores collision, just invisible to a specific player or set of players.

    This post has been edited 2 times. It was last edited by Sleaker Aug 31, 2012.

Share This Page