mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 23:07:37 +00:00
Added several projectile functions to ScriptNpc.
This commit is contained in:
1 parent
e6f97784ff
commit
b330678104
2 files changed
+70
No files matched your search
@@ -406,6 +406,55 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
npc.stats.aimWhileShooting = aimWhileShooting;
|
||||
}
|
||||
|
||||
public void setMinProjectileDelay(int minDelay){
|
||||
npc.stats.minDelay = minDelay;
|
||||
}
|
||||
public int getMinProjectileDelay(){
|
||||
return npc.stats.minDelay;
|
||||
}
|
||||
|
||||
public void setMaxProjectileDelay(int maxDelay){
|
||||
npc.stats.maxDelay = maxDelay;
|
||||
}
|
||||
public int getMaxProjectileDelay(){
|
||||
return npc.stats.maxDelay;
|
||||
}
|
||||
|
||||
public void setRangedRage(int rangedRange) {
|
||||
npc.stats.rangedRange = rangedRange;
|
||||
}
|
||||
public int getRangedRage() {
|
||||
return npc.stats.rangedRange;
|
||||
}
|
||||
|
||||
public void setFireRate(int rate) {
|
||||
npc.stats.fireRate = rate;
|
||||
}
|
||||
public int getFireRate() {
|
||||
return npc.stats.fireRate;
|
||||
}
|
||||
|
||||
public void setBurstCount(int burstCount) {
|
||||
npc.stats.burstCount = burstCount;
|
||||
}
|
||||
public int getBurstCount() {
|
||||
return npc.stats.burstCount;
|
||||
}
|
||||
|
||||
public void setShotCount(int shotCount) {
|
||||
npc.stats.shotCount = shotCount;
|
||||
}
|
||||
public int getShotCount() {
|
||||
return npc.stats.shotCount;
|
||||
}
|
||||
|
||||
public void setAccuracy(int accuracy) {
|
||||
npc.stats.accuracy = accuracy;
|
||||
}
|
||||
public int getAccuracy() {
|
||||
return npc.stats.accuracy;
|
||||
}
|
||||
|
||||
public String getFireSound() {
|
||||
return npc.stats.fireSound;
|
||||
}
|
||||
|
||||
@@ -235,6 +235,27 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
|
||||
*/
|
||||
public void aimWhileShooting(boolean aimWhileShooting);
|
||||
|
||||
public void setMinProjectileDelay(int minDelay);
|
||||
public int getMinProjectileDelay();
|
||||
|
||||
public void setMaxProjectileDelay(int maxDelay);
|
||||
public int getMaxProjectileDelay();
|
||||
|
||||
public void setRangedRage(int rangedRange);
|
||||
public int getRangedRage();
|
||||
|
||||
public void setFireRate(int rate);
|
||||
public int getFireRate();
|
||||
|
||||
public void setBurstCount(int burstCount);
|
||||
public int getBurstCount();
|
||||
|
||||
public void setShotCount(int shotCount);
|
||||
public int getShotCount();
|
||||
|
||||
public void setAccuracy(int accuracy);
|
||||
public int getAccuracy();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return The directory of the sound that plays when a projectile is shot
|
||||
|
||||
Reference in new issue
Block a user