Skip to content

Commit

Permalink
changements modeles des arcs de tirs et feedback de tir de laser
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyvern2182 committed Jan 3, 2025
1 parent 351d091 commit 28f6143
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 16 deletions.
29 changes: 28 additions & 1 deletion scripts/model_data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,18 @@ model:setCollisionBox(2000, 600)
-- Engin emitter to do
--model:addEngineEmitter(-180, -30, 1.2, 0.2, 0.2, 1.0, 30.0)
--model:addEngineEmitter(-180, 30, 1.2, 0.2, 0.2, 1.0, 30.0)
model:addBeamPosition(0, 0, 3)
model:addBeamPosition(-10, 0, 5)
model:addBeamPosition(20, 0, -1)
model:addBeamPosition(10, 0, -2)
model:addBeamPosition(0, 0, 3)
model:addBeamPosition(-10, 0, 5)
model:addBeamPosition(20, 0, -1)
model:addBeamPosition(10, 0, 2)

model:addBeamPosition(35, 3, 0)
model:addBeamPosition(35, -3, 0)



--[[Croiseur Inquisitoriale]]
Expand Down Expand Up @@ -242,6 +254,12 @@ model:setRadius(350)
--model:addEngineEmitter(-25, 2.1500, 0.3, 1.0, 0.2, 0.1, 3.0)
model:addEngineEmitter(-20, -2.1500, 0.3, 1, 0.2, 0.2, 3.0)
model:addEngineEmitter(-20, 2.1500, 0.3, 1, 0.2, 0.2, 3.0)
model:addBeamPosition(0, 0, 3)
model:addBeamPosition(-16, 8, -8)
model:addBeamPosition(-10, -8, -8)
model:addBeamPosition(16, 8, -8)
model:addBeamPosition(-10, -8, -8)

--1.0, 0.2, 0.1, 17.0)


Expand Down Expand Up @@ -322,7 +340,16 @@ model:setCollisionBox(2000, 600)

--model:addEngineEmitter(-30, -30, 1.2, 1, 0.2, 0.2, 30.0)
--model:addEngineEmitter(-30, 30, 1.2, 1, 0.2, 0.2, 30.0)

model:addBeamPosition(-10, -6, 0)
model:addBeamPosition(10, -6, 0)
model:addBeamPosition(0, -6, 0)
model:addBeamPosition(-20, -2, 0)
model:addBeamPosition(20, -2, 0)
model:addBeamPosition(-10, 6, 0)
model:addBeamPosition(10, 6, 0)
model:addBeamPosition(0, 6, 0)
model:addBeamPosition(-20, 2, 0)
model:addBeamPosition(20, 2, 0)

--[[Arche Mechanicus]]
model = ModelData()
Expand Down
84 changes: 69 additions & 15 deletions scripts/shiptemplates/40k/Croiseurs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -699,14 +699,31 @@ template:setShields(650, 650)
template:setSpeed(85, 9, 8)
--template:setReverseSpeed(40,10)
-- Arc, Dir, Range, CycleTime, Dmg
template:setBeam(0, 10, 0, 100.0, 30.0, 20)
template:setBeam(1, 90, 90, 4500.0, 14.0, 35)
template:setBeam(2, 90, -90, 4500.0, 14.0, 35)
template:setBeam(3, 90, 90, 3000.0, 3, 9)
template:setBeam(4, 90,-90, 3000.0, 3, 9)
template:setBeam(5, 90, 90, 3000.0, 3, 9)
template:setBeam(6, 90,-90, 3000.0, 3, 9)
--template:setBeam(0, 10, 0, 100.0, 30.0, 20)
--template:setBeam(1, 90, 90, 4500.0, 14.0, 35)
--template:setBeam(2, 90, -90, 4500.0, 14.0, 35)
--template:setBeam(3, 90, 90, 3000.0, 3, 9)
--template:setBeam(4, 90,-90, 3000.0, 3, 9)
--template:setBeam(5, 90, 90, 3000.0, 3, 9)
--template:setBeam(6, 90,-90, 3000.0, 3, 9)
template:setShortRangeRadarRange(7500)

template:setBeamWeapon(1, 10, 90, 3000, 14, 35)
template:setBeamWeaponTurret(1, 60, 90, 5)
template:setBeamWeapon(2, 10, -90, 3000, 14, 18)
template:setBeamWeaponTurret(2, 60, -90, 5)
template:setBeamWeapon(3, 10, 90, 3000, 14, 35)
template:setBeamWeaponTurret(3, 60, 90, 5)
template:setBeamWeapon(4, 10, -90, 3000, 14, 18)
template:setBeamWeaponTurret(4, 60, -90, 5)

template:setBeamWeaponHeatPerFire(1, 0.01)

template:setBeamWeaponHeatPerFire(2, 0.01)

template:setBeamWeaponHeatPerFire(3, 0.01)

template:setBeamWeaponHeatPerFire(4, 0.01)
-- Arc, Dir, Rotate speed

-- Tubes
Expand Down Expand Up @@ -774,6 +791,8 @@ template:setTubeDirection(2, 90)
template:setTubeDirection(3, -90)
template:setTubeDirection(4, 90)
template:setTubeDirection(5, -90)


--MGAA Skyreaper (homing trés rapide) fregrate et plus
template:setCustomWeapon("HVLI", "MCANMK2", 3, 1500.0, "Kinetic", 25)
template:setCustomWeaponMultiple("MCANMK2",1,4)
Expand Down Expand Up @@ -1024,32 +1043,65 @@ template:setSystemDamageHullThreshold(0.80)
template:setCombatManeuver(600, 250) -- si nerf, penser a donner une upgrade
-- Arc, Dir, Range, CycleTime, Dmg
--template:setBeam(0, 45, 0, 100.0, 30.0, 10) -- a remplacer
template:setBeam(1, 90, 90, 3000.0, 14.0, 30)
template:setBeam(2, 90, -90, 3000.0, 14.0, 30)
template:setBeam(3, 90, 90, 2000, 3, 11)
template:setBeam(4, 90,-90, 2000, 3, 11) -- template mais pas variation
template:setBeam(5, 90, 90, 2000, 3, 11)
template:setBeam(6, 90,-90, 2000, 3, 11)
--template:setBeam(9, 90, 90, 2000, 3, 11)
--template:setBeam(10, 90,-90, 2000, 3, 11) -- template mais pas variation
--template:setBeam(11, 90, 90, 2000, 3, 11)
--template:setBeam(12, 90,-90, 2000, 3, 11)
template:setBeamWeaponEnergyPerFire(1, 1)
template:setBeamWeaponEnergyPerFire(2, 1)
template:setBeamWeaponHeatPerFire(1, 0.01)
template:setBeamWeaponHeatPerFire(2, 0.01)




--Tourelles de défense
--Axe de tir (N° d'arme, arc de tir, Orientation, portée, délais de tir, dégâts)
template:setBeamWeapon(0, 10, 0, 3000, 14, 45)
template:setBeamWeaponTurret(0, 30, 0, 15)
--Ajustement de la consommation d'énergie des tirs
template:setBeamWeaponEnergyPerFire(0, 1)
--Ajustement de la surchauffe engendrée par les tirs
template:setBeamWeaponHeatPerFire(0, 0.01)
template:setShortRangeRadarRange(7500)
--template:setBeam(0, 30, 0, 4000.0, 30.0, 150)
--exemple firestorm : template:setBeam(2,30, 0, 5000.0, 40.0, 200)
--200.0

template:setBeamWeapon(1, 10, 90, 3000, 14, 12)
template:setBeamWeaponTurret(1, 60, 90, 5)
template:setBeamWeapon(2, 10, 90, 3000, 14, 12)
template:setBeamWeaponTurret(2, 60, 90, 5)
template:setBeamWeapon(3, 10, 90, 3000, 14, 12)
template:setBeamWeaponTurret(3, 60, 90, 5)
template:setBeamWeapon(4, 10, 90, 3000, 14, 12)
template:setBeamWeaponTurret(4, 60, 90, 5)
template:setBeamWeapon(5, 10, -90, 3000, 14, 12)
template:setBeamWeaponTurret(5, 60, -90, 5)
template:setBeamWeapon(6, 10, -90, 3000, 14, 12)
template:setBeamWeaponTurret(6, 60, -90, 5)
template:setBeamWeapon(7, 10, -90, 3000, 14, 12)
template:setBeamWeaponTurret(7, 60, -90, 5)
template:setBeamWeapon(8, 10, -90, 3000, 14, 12)
template:setBeamWeaponTurret(8, 60, -90, 5)

template:setBeamWeaponHeatPerFire(1, 0.01)

template:setBeamWeaponHeatPerFire(2, 0.01)

template:setBeamWeaponHeatPerFire(3, 0.01)

template:setBeamWeaponHeatPerFire(4, 0.01)

template:setBeamWeaponHeatPerFire(5, 0.01)

template:setBeamWeaponHeatPerFire(6, 0.01)

template:setBeamWeaponHeatPerFire(7, 0.01)

template:setBeamWeaponHeatPerFire(8, 0.01)



--template:setSystemDamageRatio(0.9)
--template:setSystemDamageHullThreshold(0.85)
template:setCanHack(false)
Expand Down Expand Up @@ -1158,12 +1210,14 @@ template:registerSquadronComposition("Int", 2, 45, "Intercepteur", "Intercepteur
template:registerSquadronComposition("Bomb", 2, 80, "Bombardier Imperial Starhawk", "Chasseur","Chasseur","Chasseur")
template:registerSquadronComposition("Cruis", 1, 300, "Croiseur leger Dauntless")


template:setBlueprintAvailable("Ch")

template:registerAmmoBlueprint("MCANMK3", 20)
template:registerAmmoBlueprint("MAGMCAN", 60)
template:registerAmmoBlueprint("SEEKMK2", 60)
template:registerAmmoBlueprint("MAGSEEK", 80)

template:setBlueprintAvailable("Ch")
--Dock/balise de renfort de la marine

--template:addDrones("Fregate sword",1)
Expand Down

0 comments on commit 28f6143

Please sign in to comment.