Jump to content

Cancelling updates vs tickspeeds


Asweez

Recommended Posts

I have been experimenting with ways to slow players and entities down. I have found a tickspeed changer api that I have been using, and so far it has worked out well. However, when it comes to slowing down entities, I'm having trouble. The tickspeed changer can only change the server tickspeed. When it does this, it makes all of the entities on the server move slowly (animations, movement, updates, etc) and it creates a really good looking slow mo effect. However I only want certain entities to be slowed down, and the tickspeed changer doesn't do that. This meant I went to cancelling updates of certain entities. I only allowed entities to update every few ticks to slow them down. However, this doesn't create the nice slow mo effect that the tickspeed change had. It is all rubber band-y and jittery, and there is no interpolation between updates (well I didn't really expect to have interpolation when cancelling updates, but I want it because it looks great).

 

So, ultimately my question is, what is the best way to slow down an entity? Is there a way to change the tickspeed of certain entities that I'm overlooking? Or is there a way to make the update-cancelling look nice and have interpolation?

 

Thanks in advance.

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Link to comment
Share on other sites

...give them a speed modifier attribute?

It's what the Speed/Slowness potions do (mechanically, they also do other things like particles).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

No I want them to actually update slowly, for example at 1/2 tick speed skeletons take 2x as long to shoot arrows, not just move slowly. And with the tick speed/ cancelling updates arrows will also slowdown mid air

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Link to comment
Share on other sites

Subscribe to LivingUpdateEvent.Pre and cancel some.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

No idea.

You might be trying to do something that isn't really supported by the existing hooks.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.