Thread: [PI] Death Animations (Player Death)

Results 1 to 9 of 9
  1. #1 [PI] Death Animations (Player Death) 
    Banned
    Join Date
    Oct 2011
    Posts
    860
    Thanks given
    371
    Thanks received
    214
    Rep Power
    0
    Alot of people have been asking how to add death animations for players in their server.
    First declare this void. Playerassistant.java
    Spoiler for deathAnim:
    public void deathAnim() {
    c.startAnimation(836);
    //c.gfx0();
    }

    The gfx is Optional but if you want to add one, put the gfx id in the parenthesis you will also have to uncomment it by removing the "//" in front of it.
    and under applyDead() { add:
    deathAnim();
    You can also change this around by using a different animation ID, but the one I have provided is the generic one, in most servers.

    I do realise this is extremely simple but this is my first Snippet, and I am new at Java

    This is spoon fed. If you have errors, post them I will be more than happy to help. I do realise there are simpler ways of doing this, but it looks more professional in my opinion. Good luck with all your servers, be sure to post if you use this.
     

  2. #2  
    Registered Member Jukk's Avatar
    Join Date
    Oct 2006
    Age
    31
    Posts
    1,881
    Thanks given
    0
    Thanks received
    18
    Rep Power
    436
    I have never seen a server that doesn't have this with death.

    If the server really lacks this, just add c.startAnimation(836); to applydead. No need to make method for this line.
     

  3. Thankful users:


  4. #3  
    Banned
    Join Date
    Oct 2011
    Posts
    860
    Thanks given
    371
    Thanks received
    214
    Rep Power
    0
    Quote Originally Posted by Jukk View Post
    I have never seen a server that doesn't have this with death.

    If the server really lacks this, just add c.startAnimation(836); to applydead. No need to make method for this line.
    with this you can do an add item take away points, give item, etc, just by declaring 1 line in apply dead. It just cleans up the method, but I see alot of servers where you dont have an anim or gfx, and you just appear at the respawn location. So if you don't like it that's fine, and if you do I'm glad it's there. I released it because I've seen like 4 people asking in help section and if you google it there's no guide, so, here it is.
     

  5. #4  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,149
    Thanks given
    1,508
    Thanks received
    1,980
    Rep Power
    4944
    Quote Originally Posted by Paradox_ View Post
    with this you can do an add item take away points, give item, etc, just by declaring 1 line in apply dead. It just cleans up the method, but I see alot of servers where you dont have an anim or gfx, and you just appear at the respawn location. So if you don't like it that's fine, and if you do I'm glad it's there. I released it because I've seen like 4 people asking in help section and if you google it there's no guide, so, here it is.
    You're declaring an entire void for 1 line of code
    c.startAnimation(836);

    That's not good.
     

  6. #5  
    Banned
    Join Date
    Oct 2011
    Posts
    860
    Thanks given
    371
    Thanks received
    214
    Rep Power
    0
    Quote Originally Posted by xGenesis R View Post
    You're declaring an entire void for 1 line of code


    That's not good.
    Like i said you can add shit that happens to the void like I did or you can do it another way, I'm just trying to help.
     

  7. #6  
    Registered Member

    Join Date
    Sep 2011
    Posts
    1,140
    Thanks given
    385
    Thanks received
    398
    Rep Power
    474
    Quote Originally Posted by Paradox_ View Post
    Like i said you can add shit that happens to the void like I did or you can do it another way, I'm just trying to help.
    Why would you add other things to a method called deathAnim?

    No need for a method. It is quite pointless. Just put everything in the applyDead method.
     

  8. #7  
    Registered Member KottonMouthKings#1Stoner's Avatar
    Join Date
    Oct 2011
    Age
    29
    Posts
    162
    Thanks given
    8
    Thanks received
    6
    Rep Power
    11
    Wow you people fight a lot

    On topic: Good work anyways there comment is true as well but still your helping the community & that's all that matters hope to see more from you.


    Stoner Quotes Of The Day:
    You think being stoned to death would be a damn good way to go out.
    Your bong gets washed more than your dishes.
    Your bong is taller than your dog.
    Its 4:19 got a minute?.
     

  9. #8  
    Banned
    Join Date
    Oct 2011
    Posts
    860
    Thanks given
    371
    Thanks received
    214
    Rep Power
    0
    Quote Originally Posted by KottonMouthKings#1Stoner View Post
    Wow you people fight a lot

    On topic: Good work anyways there comment is true as well but still your helping the community & that's all that matters hope to see more from you.
    Thanks mate.
     

  10. #9  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    Thanks for this, really needed ;P
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Client Side Death Animations
    By CarterInk in forum Help
    Replies: 3
    Last Post: 08-19-2011, 06:40 PM
  2. Adding Death Animations [PI]
    By ChaoticPvp in forum Help
    Replies: 2
    Last Post: 07-13-2011, 11:20 PM
  3. Replies: 1
    Last Post: 08-22-2010, 06:45 PM
  4. 517 animations (attack, def, death, walk,)
    By Polish Civil in forum Help
    Replies: 0
    Last Post: 05-29-2010, 09:42 PM
  5. Attack and Death Animations?
    By Vault in forum Help
    Replies: 14
    Last Post: 11-24-2009, 11:04 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •