mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-02 00:29:59 +01:00
Support the "rocket" command and similar stuff better
This commit is contained in:
parent
f3df291f85
commit
7018858537
@ -123,12 +123,16 @@ public class MovingEventManager extends EventManagerImpl {
|
||||
data.horizFreedom *= 0.90;
|
||||
}
|
||||
|
||||
if(data.vertVelocityCounter > 0) {
|
||||
if(data.vertVelocity <= 0.1) {
|
||||
data.vertVelocityCounter--;
|
||||
}
|
||||
if(data.vertVelocityCounter > 0) {
|
||||
|
||||
data.vertFreedom += data.vertVelocity;
|
||||
data.vertVelocity *= 0.90;
|
||||
} else {
|
||||
data.vertFreedom = 0;
|
||||
// Counter has run out, now reduce the vert freedom over time
|
||||
data.vertFreedom *= 0.90;
|
||||
}
|
||||
|
||||
// Get some data that's needed from this event, to avoid passing the
|
||||
|
Loading…
Reference in New Issue
Block a user