修复小鸟副驾驶bug,调整标枪数值,调整牛头王音量,调整刺雷伤害,改小版本号
This commit is contained in:
parent
ce72300d70
commit
525b1ac07c
10 changed files with 32 additions and 10 deletions
|
@ -13,5 +13,5 @@ mod_description=A Warfare Mod
|
||||||
minecraft_version=1.20.1
|
minecraft_version=1.20.1
|
||||||
jei_version=15.2.0.27
|
jei_version=15.2.0.27
|
||||||
cloth_config_version=11.1.106
|
cloth_config_version=11.1.106
|
||||||
mod_version=0.5.0
|
mod_version=0.5.1
|
||||||
mod_authors=Atsuishio, Roki27, Light_Quanta
|
mod_authors=Atsuishio, Roki27, Light_Quanta
|
|
@ -24,6 +24,10 @@ public class ExplosionConfig {
|
||||||
public static ForgeConfigSpec.IntValue C4_EXPLOSION_DAMAGE;
|
public static ForgeConfigSpec.IntValue C4_EXPLOSION_DAMAGE;
|
||||||
public static ForgeConfigSpec.IntValue C4_EXPLOSION_RADIUS;
|
public static ForgeConfigSpec.IntValue C4_EXPLOSION_RADIUS;
|
||||||
|
|
||||||
|
public static ForgeConfigSpec.IntValue WIRE_GUIDE_MISSILE_DAMAGE;
|
||||||
|
public static ForgeConfigSpec.IntValue WIRE_GUIDE_MISSILE_EXPLOSION_DAMAGE;
|
||||||
|
public static ForgeConfigSpec.IntValue WIRE_GUIDE_MISSILE_EXPLOSION_RADIUS;
|
||||||
|
|
||||||
public static void init(ForgeConfigSpec.Builder builder) {
|
public static void init(ForgeConfigSpec.Builder builder) {
|
||||||
builder.push("explosion");
|
builder.push("explosion");
|
||||||
|
|
||||||
|
@ -93,6 +97,19 @@ public class ExplosionConfig {
|
||||||
C4_EXPLOSION_RADIUS = builder.defineInRange("c4_explosion_radius", 14, 1, Integer.MAX_VALUE);
|
C4_EXPLOSION_RADIUS = builder.defineInRange("c4_explosion_radius", 14, 1, Integer.MAX_VALUE);
|
||||||
|
|
||||||
builder.pop();
|
builder.pop();
|
||||||
|
|
||||||
|
builder.push("Wire_Guide_Missile");
|
||||||
|
|
||||||
|
builder.comment("The damage of wire guide missile");
|
||||||
|
WIRE_GUIDE_MISSILE_DAMAGE = builder.defineInRange("wire_guide_missile_damage", 500, 1, Integer.MAX_VALUE);
|
||||||
|
|
||||||
|
builder.comment("The explosion damage of wire guide missile");
|
||||||
|
WIRE_GUIDE_MISSILE_EXPLOSION_DAMAGE = builder.defineInRange("wire_guide_missile_explosion_damage", 60, 1, Integer.MAX_VALUE);
|
||||||
|
|
||||||
|
builder.comment("The explosion radius of wre guide missile");
|
||||||
|
WIRE_GUIDE_MISSILE_EXPLOSION_RADIUS = builder.defineInRange("wire_guide_missile_explosion_radius", 6, 1, Integer.MAX_VALUE);
|
||||||
|
|
||||||
|
builder.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,10 +222,10 @@ public class VehicleConfig {
|
||||||
builder.comment("The cannon damage of Bmp_2");
|
builder.comment("The cannon damage of Bmp_2");
|
||||||
BMP_2_CANNON_DAMAGE = builder.defineInRange("bmp_2_cannon_damage", 55, 1, 10000000);
|
BMP_2_CANNON_DAMAGE = builder.defineInRange("bmp_2_cannon_damage", 55, 1, 10000000);
|
||||||
|
|
||||||
builder.comment("The rocket explosion damage of Bmp_2");
|
builder.comment("The cannon explosion damage of Bmp_2");
|
||||||
BMP_2_CANNON_EXPLOSION_DAMAGE = builder.defineInRange("bmp_2_cannon_explosion_damage", 15, 1, 10000000);
|
BMP_2_CANNON_EXPLOSION_DAMAGE = builder.defineInRange("bmp_2_cannon_explosion_damage", 15, 1, 10000000);
|
||||||
|
|
||||||
builder.comment("The rocket explosion radius of Bmp_2");
|
builder.comment("The cannon explosion radius of Bmp_2");
|
||||||
BMP_2_CANNON_EXPLOSION_RADIUS = builder.defineInRange("bmp_2_cannon_explosion_radius", 3.2d, 1d, 10000000d);
|
BMP_2_CANNON_EXPLOSION_RADIUS = builder.defineInRange("bmp_2_cannon_explosion_radius", 3.2d, 1d, 10000000d);
|
||||||
|
|
||||||
builder.pop();
|
builder.pop();
|
||||||
|
|
|
@ -439,6 +439,10 @@ public class Ah6Entity extends ContainerMobileEntity implements GeoEntity, IHeli
|
||||||
Vector4f worldPosition = transformPosition(transform, x, y, z);
|
Vector4f worldPosition = transformPosition(transform, x, y, z);
|
||||||
passenger.setPos(worldPosition.x, worldPosition.y, worldPosition.z);
|
passenger.setPos(worldPosition.x, worldPosition.y, worldPosition.z);
|
||||||
callback.accept(passenger, worldPosition.x, worldPosition.y, worldPosition.z);
|
callback.accept(passenger, worldPosition.x, worldPosition.y, worldPosition.z);
|
||||||
|
} else if (i == 1) {
|
||||||
|
Vector4f worldPosition = transformPosition(transform, -x, y, z);
|
||||||
|
passenger.setPos(worldPosition.x, worldPosition.y, worldPosition.z);
|
||||||
|
callback.accept(passenger, worldPosition.x, worldPosition.y, worldPosition.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (passenger != this.getFirstPassenger()) {
|
if (passenger != this.getFirstPassenger()) {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.atsuishio.superbwarfare.entity.vehicle;
|
package com.atsuishio.superbwarfare.entity.vehicle;
|
||||||
|
|
||||||
import com.atsuishio.superbwarfare.ModUtils;
|
import com.atsuishio.superbwarfare.ModUtils;
|
||||||
|
import com.atsuishio.superbwarfare.config.server.ExplosionConfig;
|
||||||
import com.atsuishio.superbwarfare.config.server.ExplosionDestroyConfig;
|
import com.atsuishio.superbwarfare.config.server.ExplosionDestroyConfig;
|
||||||
import com.atsuishio.superbwarfare.config.server.VehicleConfig;
|
import com.atsuishio.superbwarfare.config.server.VehicleConfig;
|
||||||
import com.atsuishio.superbwarfare.entity.projectile.ProjectileEntity;
|
import com.atsuishio.superbwarfare.entity.projectile.ProjectileEntity;
|
||||||
|
@ -455,9 +456,9 @@ public class Bmp2Entity extends ContainerMobileEntity implements GeoEntity, ICha
|
||||||
Vector4f worldPosition = transformPosition(transformT, 0, 1, 0);
|
Vector4f worldPosition = transformPosition(transformT, 0, 1, 0);
|
||||||
|
|
||||||
WgMissileEntity wgMissileEntity = new WgMissileEntity(player, player.level(),
|
WgMissileEntity wgMissileEntity = new WgMissileEntity(player, player.level(),
|
||||||
500,
|
ExplosionConfig.WIRE_GUIDE_MISSILE_DAMAGE.get(),
|
||||||
60,
|
ExplosionConfig.WIRE_GUIDE_MISSILE_EXPLOSION_DAMAGE.get(),
|
||||||
6);
|
ExplosionConfig.WIRE_GUIDE_MISSILE_EXPLOSION_RADIUS.get());
|
||||||
|
|
||||||
wgMissileEntity.setPos(worldPosition.x, worldPosition.y, worldPosition.z);
|
wgMissileEntity.setPos(worldPosition.x, worldPosition.y, worldPosition.z);
|
||||||
wgMissileEntity.shoot(getBarrelVector(1).x, 0, getBarrelVector(1).z, 2f, 0f);
|
wgMissileEntity.shoot(getBarrelVector(1).x, 0, getBarrelVector(1).z, 2f, 0f);
|
||||||
|
|
|
@ -639,7 +639,7 @@ public class ClientEventHandler {
|
||||||
if (charged.get()) {
|
if (charged.get()) {
|
||||||
SoundEvent sound1p = ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation(ModUtils.MODID, "sentinel_charge_fire_1p"));
|
SoundEvent sound1p = ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation(ModUtils.MODID, "sentinel_charge_fire_1p"));
|
||||||
if (sound1p != null) {
|
if (sound1p != null) {
|
||||||
player.playSound(sound1p, 1f, 1);
|
player.playSound(sound1p, 2f, 1);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -656,7 +656,7 @@ public class ClientEventHandler {
|
||||||
SoundEvent sound1p = ForgeRegistries.SOUND_EVENTS.getValue(ModUtils.loc(name + (barrelType == 2 ? "_fire_1p_s" : "_fire_1p")));
|
SoundEvent sound1p = ForgeRegistries.SOUND_EVENTS.getValue(ModUtils.loc(name + (barrelType == 2 ? "_fire_1p_s" : "_fire_1p")));
|
||||||
|
|
||||||
if (sound1p != null) {
|
if (sound1p != null) {
|
||||||
player.playSound(sound1p, 1f, 1);
|
player.playSound(sound1p, 2f, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
double shooterHeight = player.getEyePosition().distanceTo((Vec3.atLowerCornerOf(player.level().clip(new ClipContext(player.getEyePosition(), player.getEyePosition().add(new Vec3(0, -1, 0).scale(10)),
|
double shooterHeight = player.getEyePosition().distanceTo((Vec3.atLowerCornerOf(player.level().clip(new ClipContext(player.getEyePosition(), player.getEyePosition().add(new Vec3(0, -1, 0).scale(10)),
|
||||||
|
|
|
@ -57,7 +57,7 @@ public class LungeMineAttackMessage {
|
||||||
}
|
}
|
||||||
Entity lookingEntity = EntityFindUtil.findEntity(player.level(), String.valueOf(message.uuid));
|
Entity lookingEntity = EntityFindUtil.findEntity(player.level(), String.valueOf(message.uuid));
|
||||||
if (lookingEntity != null) {
|
if (lookingEntity != null) {
|
||||||
lookingEntity.hurt(ModDamageTypes.causeLungeMineDamage(player.level().registryAccess(), player, player), lookingEntity instanceof VehicleEntity ? 400 : 150);
|
lookingEntity.hurt(ModDamageTypes.causeLungeMineDamage(player.level().registryAccess(), player, player), lookingEntity instanceof VehicleEntity ? 450 : 150);
|
||||||
causeLungeMineExplode(player.level(), player, lookingEntity);
|
causeLungeMineExplode(player.level(), player, lookingEntity);
|
||||||
}
|
}
|
||||||
} else if (message.type == 1) {
|
} else if (message.type == 1) {
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -4,7 +4,7 @@
|
||||||
"Magazine": 1,
|
"Magazine": 1,
|
||||||
"Weight": 10,
|
"Weight": 10,
|
||||||
"EmptyReloadTime": 78,
|
"EmptyReloadTime": 78,
|
||||||
"Damage": 250,
|
"Damage": 450,
|
||||||
"ExplosionDamage": 50,
|
"ExplosionDamage": 50,
|
||||||
"ExplosionRadius": 4
|
"ExplosionRadius": 4
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue