any PvP knockback mods out there?

Post Reply
IanniPowerup!!!
Member
Posts: 100
Joined: Wed Nov 29, 2017 17:33
In-game: IanniPowerup
Contact:

any PvP knockback mods out there?

by IanniPowerup!!! » Post

Like in mc when u get hit u get pushed in the oposite direction of the entity that demaged you

User avatar
ChimneySwift
Member
Posts: 320
Joined: Fri Sep 22, 2017 06:46
GitHub: ChimneySwift
IRC: ChimneySwift
In-game: ChimneySwift
Location: 127.0.0.1

Re: any PvP knockback mods out there?

by ChimneySwift » Post

Knockback mods exist... but from my experience they're incredibly glitchy.

The reason for this is that the player ref is missing the set_velocity() function available on other objects. One way to get around this is to attach the player to another object and use the set_velocity() on that, playerplus tries to do this but from my experience results in the player being thrown around the map when the object is detached.

Another way to get around this is to simply change the player's position (like the TNT mod does) but that has it's own issues.

Basically until set_velocity() is available on player objects (which would require an engine change), there is no way to do this cleanly.
A spoon is basically a tiny bowl with a stick on it

User avatar
Hybrid Dog
Member
Posts: 2836
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: any PvP knockback mods out there?

by Hybrid Dog » Post


‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests