mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 09:55:11 +00:00
Add a new Aim While Shooting Type
This commit is contained in:
1 parent
0877aee3e6
commit
cac5a53997
9 files changed
+52
-13
No files matched your search
@@ -519,11 +519,21 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
}
|
||||
|
||||
public boolean canAimWhileShooting() {
|
||||
return !npc.stats.aimWhileShooting;
|
||||
return npc.stats.aimType == 1;
|
||||
}
|
||||
|
||||
public void aimWhileShooting(boolean aimWhileShooting) {
|
||||
npc.stats.aimWhileShooting = aimWhileShooting;
|
||||
public void aimWhileShooting(boolean aimWhileShooting){
|
||||
npc.stats.aimType = (byte) (aimWhileShooting ? 1 : 0);
|
||||
}
|
||||
|
||||
public void setAimType(byte aimWhileShooting) {
|
||||
if(aimWhileShooting < 0 || aimWhileShooting > 2)
|
||||
return;
|
||||
npc.stats.aimType = aimWhileShooting;
|
||||
}
|
||||
|
||||
public byte getAimType() {
|
||||
return npc.stats.aimType;
|
||||
}
|
||||
|
||||
public void setMinProjectileDelay(int minDelay) {
|
||||
|
||||
Reference in new issue
Block a user