added local dir for vanilla stats compute, start computing muzzle delay and RoF, test arm aiming on FS TDR 7SE, test ammo tracking on LA CPTL C1, start streak missile stats
This commit is contained in:
1 parent
3a1ab9c799
commit
57dc6bb8c3
45 files changed
+1516
-594
No files matched your search
+70
-8
@@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 44,
|
||||
"execution_count": null,
|
||||
"id": "2cc54913",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -15,6 +15,7 @@
|
||||
"\n",
|
||||
"damage_mult = 30\n",
|
||||
"range_mult = 3\n",
|
||||
"speed_mult = 3\n",
|
||||
"\n",
|
||||
"ballistic_velocity = 30\n",
|
||||
"energy_velocity = 60\n",
|
||||
@@ -303,7 +304,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 51,
|
||||
"execution_count": null,
|
||||
"id": "23145ae9",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -397,10 +398,12 @@
|
||||
" blueprint['Economy']['BuildCostMass'] = battle_value\n",
|
||||
" blueprint['Economy']['BuildCostEnergy'] = battle_value * 10\n",
|
||||
" else:\n",
|
||||
" blueprint['Economy']['BuildCostMass'] = hit_points / 5\n",
|
||||
" blueprint['Economy']['BuildCostEnergy'] = hit_points / 2\n",
|
||||
" blueprint['Economy']['BuildCostMass'] = hit_points / 20\n",
|
||||
" blueprint['Economy']['BuildCostEnergy'] = hit_points / 2 * tonnage / 10\n",
|
||||
"\n",
|
||||
" # build time\n",
|
||||
" # if tonnage != 0:\n",
|
||||
" # blueprint['Economy']['BuildTime'] = (tonnage * 10) * (hit_points / 100)\n",
|
||||
" if tonnage != 0 and battle_value != 0:\n",
|
||||
" blueprint['Economy']['BuildTime'] = (tonnage * 10) * (battle_value / 100)\n",
|
||||
" elif tonnage != 0:\n",
|
||||
@@ -419,6 +422,32 @@
|
||||
" luadata.write(filepath, blueprint, indent=' ', prefix='UnitBlueprint ')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "4677f981",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for filepath in files:\n",
|
||||
" blueprint = luadata.read(filepath)\n",
|
||||
" \n",
|
||||
" if 'Weapon' in blueprint:\n",
|
||||
" for weapon in blueprint['Weapon']:\n",
|
||||
"\n",
|
||||
" racks = len(weapon['RackBones'])\n",
|
||||
" weapon['RateOfFire'] = racks / 10\n",
|
||||
" weapon['TargetCheckInterval'] = (racks / 10) * 2\n",
|
||||
"\n",
|
||||
" salvo_size = weapon['MuzzleSalvoSize']\n",
|
||||
" if salvo_size > 1:\n",
|
||||
" weapon['MuzzleSalvoDelay'] = 1 / salvo_size\n",
|
||||
" else:\n",
|
||||
" weapon['MuzzleSalvoDelay'] = 0\n",
|
||||
"\n",
|
||||
" luadata.write(filepath, blueprint, indent=' ', prefix='UnitBlueprint ')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
@@ -464,6 +493,7 @@
|
||||
" weapon['FireTargetLayerCapsTable']['Seabed'] = 'Water|Sub|Seabed'\n",
|
||||
"\n",
|
||||
" weapon['TargetRestrictDisallow'] = 'UNTARGETABLE'\n",
|
||||
" # weapon['UseFiringSolutionInsteadOfAimBone'] = true\n",
|
||||
"\n",
|
||||
" if 'Intel' in blueprint and 'RadarRadius' in blueprint['Intel']:\n",
|
||||
" weapon['TrackingRadius'] = blueprint['Intel']['RadarRadius']\n",
|
||||
@@ -701,15 +731,16 @@
|
||||
" weapon['BeamCollisionDelay'] = 0.5\n",
|
||||
" weapon['BeamLifetime'] = 0.5\n",
|
||||
"\n",
|
||||
" if weapon['DisplayName'] == 'Short Range Missiles' or weapon['DisplayName'] == 'Clan Short Range Missiles':\n",
|
||||
" if weapon['DisplayName'] == 'Short Range Missiles':\n",
|
||||
" weapon['Damage'] = 2 * damage_mult\n",
|
||||
" weapon['MaxRadius'] = 9 * range_mult\n",
|
||||
" weapon['MinRadius'] = 0 * range_mult\n",
|
||||
" weapon['MuzzleVelocity'] = missile_velocity\n",
|
||||
" weapon['BallisticArc'] = 'RULEUBA_None'\n",
|
||||
" weapon['BallisticArc'] = 'RULEUBA_LowArc'\n",
|
||||
" weapon['WeaponCategory'] = 'Missile'\n",
|
||||
" weapon['RangeCategory'] = 'UWRC_DirectFire'\n",
|
||||
" weapon['ProjectileId'] = '/mods/Supreme Mech Commander 2/projectiles/LRMMissile/LRMMissile_proj.bp'\n",
|
||||
" weapon['ProjectileLifetime'] = 10\n",
|
||||
"\n",
|
||||
" if weapon['DisplayName'] == 'Long Range Missiles':\n",
|
||||
" weapon['Damage'] = 1 * damage_mult\n",
|
||||
@@ -720,6 +751,7 @@
|
||||
" weapon['WeaponCategory'] = 'Missile'\n",
|
||||
" weapon['RangeCategory'] = 'UWRC_IndirectFire'\n",
|
||||
" weapon['ProjectileId'] = '/mods/Supreme Mech Commander 2/projectiles/LRMMissile/LRMMissile_proj.bp'\n",
|
||||
" weapon['ProjectileLifetime'] = 20\n",
|
||||
"\n",
|
||||
" if weapon['DisplayName'] == 'Gauss Rifle':\n",
|
||||
" weapon['Damage'] = 15 * damage_mult\n",
|
||||
@@ -1081,6 +1113,16 @@
|
||||
" weapon['WeaponCategory'] = 'Direct Fire'\n",
|
||||
" weapon['RangeCategory'] = 'UWRC_DirectFire'\n",
|
||||
"\n",
|
||||
" if weapon['DisplayName'] == 'Clan Short Range Missiles':\n",
|
||||
" weapon['Damage'] = 2 * damage_mult\n",
|
||||
" weapon['MaxRadius'] = 9 * range_mult\n",
|
||||
" weapon['MinRadius'] = 0 * range_mult\n",
|
||||
" weapon['MuzzleVelocity'] = missile_velocity\n",
|
||||
" weapon['BallisticArc'] = 'RULEUBA_LowArc'\n",
|
||||
" weapon['WeaponCategory'] = 'Missile'\n",
|
||||
" weapon['RangeCategory'] = 'UWRC_DirectFire'\n",
|
||||
" weapon['ProjectileId'] = '/mods/Supreme Mech Commander 2/projectiles/LRMMissile/LRMMissile_proj.bp'\n",
|
||||
"\n",
|
||||
" if weapon['DisplayName'] == 'Clan Long Range Missiles':\n",
|
||||
" weapon['Damage'] = 1 * damage_mult\n",
|
||||
" weapon['MaxRadius'] = 21 * range_mult\n",
|
||||
@@ -1091,6 +1133,26 @@
|
||||
" weapon['RangeCategory'] = 'UWRC_IndirectFire'\n",
|
||||
" weapon['ProjectileId'] = '/mods/Supreme Mech Commander 2/projectiles/LRMMissile/LRMMissile_proj.bp'\n",
|
||||
"\n",
|
||||
" if weapon['DisplayName'] == 'Clan Streak Short Range Missiles':\n",
|
||||
" weapon['Damage'] = 2 * damage_mult\n",
|
||||
" weapon['MaxRadius'] = 9 * range_mult\n",
|
||||
" weapon['MinRadius'] = 0 * range_mult\n",
|
||||
" weapon['MuzzleVelocity'] = missile_velocity\n",
|
||||
" weapon['BallisticArc'] = 'RULEUBA_LowArc'\n",
|
||||
" weapon['WeaponCategory'] = 'Missile'\n",
|
||||
" weapon['RangeCategory'] = 'UWRC_DirectFire'\n",
|
||||
" weapon['ProjectileId'] = '/mods/Supreme Mech Commander 2/projectiles/LRMMissile/LRMMissile_proj.bp'\n",
|
||||
"\n",
|
||||
" if weapon['DisplayName'] == 'Clan Streak Long Range Missiles':\n",
|
||||
" weapon['Damage'] = 1 * damage_mult\n",
|
||||
" weapon['MaxRadius'] = 21 * range_mult\n",
|
||||
" weapon['MinRadius'] = 0 * range_mult\n",
|
||||
" weapon['MuzzleVelocity'] = missile_velocity\n",
|
||||
" weapon['BallisticArc'] = 'RULEUBA_HighArc'\n",
|
||||
" weapon['WeaponCategory'] = 'Missile'\n",
|
||||
" weapon['RangeCategory'] = 'UWRC_IndirectFire'\n",
|
||||
" weapon['ProjectileId'] = '/mods/Supreme Mech Commander 2/projectiles/LRMMissile/LRMMissile_proj.bp'\n",
|
||||
"\n",
|
||||
" luadata.write(filepath, blueprint, indent=' ', prefix='UnitBlueprint ')"
|
||||
]
|
||||
},
|
||||
@@ -1129,7 +1191,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 52,
|
||||
"execution_count": 71,
|
||||
"id": "f545b050",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -1161,7 +1223,7 @@
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": ".venv (3.11.3)",
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user