first commit
This commit is contained in:
154
p000/PlayerMovementEntity.java
Normal file
154
p000/PlayerMovementEntity.java
Normal file
@@ -0,0 +1,154 @@
|
||||
package p000;
|
||||
|
||||
import javax.microedition.m3g.Transform;
|
||||
import javax.microedition.m3g.World;
|
||||
|
||||
/* renamed from: w */
|
||||
/* loaded from: microcounterstrike.jar:w.class */
|
||||
public class PlayerMovementEntity extends PlayerEntityBase {
|
||||
|
||||
/* renamed from: a */
|
||||
public Transform transform276;
|
||||
|
||||
/* renamed from: b */
|
||||
public Transform transform277;
|
||||
|
||||
/* renamed from: c */
|
||||
public Transform transform278;
|
||||
|
||||
/* renamed from: d */
|
||||
private float value279;
|
||||
|
||||
public PlayerMovementEntity(int i, String str, int i2, PlayerModelBase abstractC0048q) {
|
||||
super(i, str, i2);
|
||||
this.transform276 = new Transform();
|
||||
this.transform277 = new Transform();
|
||||
this.transform278 = new Transform();
|
||||
this.value279 = 0.0f;
|
||||
this.playerModelBase261 = abstractC0048q;
|
||||
this.playerModelBase261.playerEntityBase236 = this;
|
||||
}
|
||||
|
||||
@Override // p000.PlayerEntityBase
|
||||
/* renamed from: a */
|
||||
public void addToWorld(World world) {
|
||||
this.playerModelBase261.loadM3G0(world).setUserObject(this);
|
||||
}
|
||||
|
||||
@Override // p000.PlayerEntityBase
|
||||
/* renamed from: a */
|
||||
public void removeFromWorld() {
|
||||
super.removeFromWorld();
|
||||
this.transform276 = null;
|
||||
this.transform277 = null;
|
||||
this.transform278 = null;
|
||||
}
|
||||
|
||||
@Override // p000.PlayerEntityBase
|
||||
/* renamed from: b */
|
||||
public void respawn() {
|
||||
this.transform276.setIdentity();
|
||||
this.transform277.setIdentity();
|
||||
this.transform278.setIdentity();
|
||||
super.respawn();
|
||||
}
|
||||
|
||||
@Override // p000.PlayerEntityBase
|
||||
/* renamed from: c */
|
||||
public final void execute245() {
|
||||
this.playerModelBase261.node234.setTransform(this.transform276);
|
||||
}
|
||||
|
||||
@Override // p000.PlayerEntityBase
|
||||
/* renamed from: d */
|
||||
public final float getFloat246() {
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:29:0x025e */
|
||||
/* renamed from: a */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public final float[] getFloatArray299(float[] r11) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 626
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: p000.PlayerMovementEntity.getFloatArray299(float[]):float[]");
|
||||
}
|
||||
|
||||
@Override // p000.PlayerEntityBase
|
||||
/* renamed from: a */
|
||||
public final float getFloat248(float f) {
|
||||
this.value264 += f;
|
||||
if (this.value264 > 75.0f) {
|
||||
this.value264 = 75.0f;
|
||||
return 0.0f;
|
||||
}
|
||||
this.transform276.postRotate(f, 1.0f, 0.0f, 0.0f);
|
||||
return f;
|
||||
}
|
||||
|
||||
@Override // p000.PlayerEntityBase
|
||||
/* renamed from: b */
|
||||
public final float getFloat249(float f) {
|
||||
this.value264 -= f;
|
||||
if (this.value264 < -75.0f) {
|
||||
this.value264 = -75.0f;
|
||||
return 0.0f;
|
||||
}
|
||||
this.transform276.postRotate(-f, 1.0f, 0.0f, 0.0f);
|
||||
return f;
|
||||
}
|
||||
|
||||
@Override // p000.PlayerEntityBase
|
||||
/* renamed from: c */
|
||||
public final float getFloat250(float f) {
|
||||
this.transform276.postRotate(-this.value264, 1.0f, 0.0f, 0.0f);
|
||||
this.transform276.postRotate(f, 0.0f, 1.0f, 0.0f);
|
||||
this.transform276.postRotate(this.value264, 1.0f, 0.0f, 0.0f);
|
||||
this.value265 += f;
|
||||
if (GameSessionLoop.getInstance().sessionType == 1 || GameSessionLoop.getInstance().sessionType == 2) {
|
||||
this.transform277.postRotate(f, PlayerModel.value249[0], PlayerModel.value249[1], PlayerModel.value249[2]);
|
||||
this.value279 += f;
|
||||
if (this.value279 >= 45.0f) {
|
||||
execute301();
|
||||
}
|
||||
}
|
||||
return f;
|
||||
}
|
||||
|
||||
@Override // p000.PlayerEntityBase
|
||||
/* renamed from: d */
|
||||
public final float getFloat251(float f) {
|
||||
this.transform276.postRotate(-this.value264, 1.0f, 0.0f, 0.0f);
|
||||
this.transform276.postRotate(-f, 0.0f, 1.0f, 0.0f);
|
||||
this.transform276.postRotate(this.value264, 1.0f, 0.0f, 0.0f);
|
||||
this.value265 -= f;
|
||||
if (GameSessionLoop.getInstance().sessionType == 1 || GameSessionLoop.getInstance().sessionType == 2) {
|
||||
this.transform277.postRotate(-f, PlayerModel.value249[0], PlayerModel.value249[1], PlayerModel.value249[2]);
|
||||
this.value279 -= f;
|
||||
if (this.value279 <= -45.0f) {
|
||||
execute301();
|
||||
}
|
||||
}
|
||||
return f;
|
||||
}
|
||||
|
||||
/* renamed from: e */
|
||||
public final void execute300(float[] fArr) {
|
||||
execute282(fArr);
|
||||
this.playerModelBase261.node234.translate(fArr[0], fArr[1], fArr[2]);
|
||||
if (GameSessionLoop.getInstance().sessionType == 1 || GameSessionLoop.getInstance().sessionType == 2) {
|
||||
execute301();
|
||||
}
|
||||
}
|
||||
|
||||
/* renamed from: e */
|
||||
private void execute301() {
|
||||
this.transform278.postRotate(this.value279, PlayerModel.value249[0], PlayerModel.value249[1], PlayerModel.value249[2]);
|
||||
this.value279 = 0.0f;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user