本帖最后由 dadada1231 于 2018-12-2 19:43 编辑 
枪械参数
============================================================
子弹参数
============================================================
等待翻译
来自群组: Server CT
枪械参数
============================================================
子弹参数
============================================================
等待翻译
来自群组: Server CT
噢!找这个找了很久!!期待楼主更新
跪了跪了,爬墙外面找了半天,最后还是mcbbs的大佬厉害。
我觉得我需要一些aa gun code的说明,无论中英。
qwww 发表于 2019-2-17 19:20
我觉得我需要一些aa gun code的说明,无论中英。
那马上更新⑧
qwww 发表于 2019-2-17 19:20
我觉得我需要一些aa gun code的说明,无论中英。
if (FMLCommonHandler.instance().getSide().isClient() && split[0].equals("Model"))
{
model = FlansMod.proxy.loadModel(split[1], shortName, ModelAAGun.class);
}
if (split[0].equals("Texture"))
{
texture = split[1];
}
if (split[0].equals("Damage"))
{
damage = Integer.parseInt(split[1]);
}
if (split[0].equals("ReloadTime"))
{
reloadTime = Integer.parseInt(split[1]);
}
if (split[0].equals("Recoil"))
{
recoil = Integer.parseInt(split[1]);
}
if (split[0].equals("Accuracy"))
{
accuracy = Integer.parseInt(split[1]);
}
if (split[0].equals("ShootDelay"))
{
shootDelay = Integer.parseInt(split[1]);
}
if (split[0].equals("ShootSound"))
{
shootSound = split[1];
FlansMod.proxy.loadSound(contentPack, "aaguns", split[1]);
}
if (split[0].equals("ReloadSound"))
{
reloadSound = split[1];
FlansMod.proxy.loadSound(contentPack, "aaguns", split[1]);
}
if (split[0].equals("FireAlternately"))
{
fireAlternately = split[1].equals("True");
}
if (split[0].equals("NumBarrels"))
{
numBarrels = Integer.parseInt(split[1]);
barrelX = new int[numBarrels];
barrelY = new int[numBarrels];
barrelZ = new int[numBarrels];
}
if(split[0].equals("Barrel"))
{
int id = Integer.parseInt(split[1]);
barrelX[id] = Integer.parseInt(split[2]);
barrelY[id] = Integer.parseInt(split[3]);
barrelZ[id] = Integer.parseInt(split[4]);
}
if (split[0].equals("Health"))
{
health = Integer.parseInt(split[1]);
}
if (split[0].equals("TopViewLimit"))
{
topViewLimit = Float.parseFloat(split[1]);
}
if (split[0].equals("BottomViewLimit"))
{
bottomViewLimit = Float.parseFloat(split[1]);
}
if (split[0].equals("Ammo"))
{
BulletType type = BulletType.getBullet(split[1]);
if (type != null)
{
ammo.add(type);
}
}
if (split[0].equals("GunnerPos"))
{
gunnerX = Integer.parseInt(split[1]);
gunnerY = Integer.parseInt(split[2]);
gunnerZ = Integer.parseInt(split[3]);
}
if(split[0].equals("TargetMobs"))
targetMobs = Boolean.parseBoolean(split[1]);
if(split[0].equals("TargetPlayers"))
targetPlayers = Boolean.parseBoolean(split[1]);
if(split[0].equals("TargetVehicles"))
targetVehicles = Boolean.parseBoolean(split[1]);
if(split[0].equals("TargetPlanes"))
targetPlanes = Boolean.parseBoolean(split[1]);
if(split[0].equals("TargetMechas"))
targetMechas = Boolean.parseBoolean(split[1]);
if(split[0].equals("TargetDriveables"))
targetMechas = targetPlanes = targetVehicles = Boolean.parseBoolean(split[1]);
if(split[0].equals("ShareAmmo"))
shareAmmo = Boolean.parseBoolean(split[1]);
if (split[0].equals("TargetRange"))
{
targetRange = Float.parseFloat(split[1]);
}
if(split[0].equals("CanShootHomingMissile"))
canShootHomingMissile = Boolean.parseBoolean(split[1]);
if (split[0].equals("CountExplodeAfterShoot"))
countExplodeAfterShoot = Integer.parseInt(split[1]);
if(split[0].equals("IsDropThis"))
isDropThis = Boolean.parseBoolean(split[1]);
dadada1231 发表于 2019-6-11 22:36
if (FMLCommonHandler.instance().getSide().isClient() && split[0].equals("Model"))
{
model = ...
谢了
很有帮助
!!!
!!!
这两天正搞flansmodplus很有帮助