chami
11th Oct 03, 10:18 PM
Please be patient and read through. I pretty much scoured the forum to obtain this information, and still doesn't work. Just read my code after the steps that I did...
Step 1:
Copy(?) an existing missile type and rename to desired name.
IE.
dupe \Data\missile\hgn_clustertorpedob folder and rename to Data\missile\hgn_miniMissile
Step 2:
Change the name of the *.events and *.miss file to hgn_miniMissile
Step 3:
Go to \Data\scripts\weaponfire and dupe the hgn_clustertorpedob folder and rename that folder and it's contents to hgn_miniMissile (while retaining the extensions)
Ok this is what i have read so far, and SO far it doesn't work :comment: what is it that i'm missing here???
questions:
1) ScarType??? leave with the default "scars" or what?
2) NewShipType.weaponName="Hgn_TorpedoLauncher"
++ does this line nEEd to be changed to hgn_minimissilelauncher ? (course, with the weapon defined) ++
===================================|//Start MY missile code|==============
=====================================
|EVENT FILE|
Data\missile\hgn_minimissile\hgn_minimissile.events
=====================================
effects = {
animations = {
animation1 = {
name = "Death",
length = 1,
loop = 0,
parent = "",
minimum = 0,
maximum = 0,
markers = {
"",
},
},
},
events = {
event1 = {
{
"anim",
"Death",
},
{
"animtime",
"0",
},
{
"marker",
"Root",
},
{
"sound",
"WEAPON/CARRIER/FIRE/WEAPON_DESTROYER_MISSLE_LAUNCH",
},
{
"fx_transform",
"None",
},
},
},
}
===========================================
|LUA MISSILE FILE|
\Data\missile\hgn_minimissile\hgn_minimissile.miss
===========================================
--===========================================================================
-- Purpose : Lua definition file for Homeworld Ship.
-- Contains loading information and flight dynamics information (among other things?)
--
-- Copyright Relic Entertainment, Inc. All rights reserved.
-- ===========================================================================
NewShipType = StartMissileConfig()
NewShipType.displayedName="Hiigaran Mini Missile"
NewShipType.sobDescription="$1559"
NewShipType.TOScale=1
NewShipType.TODistanceFade0=7000
NewShipType.TODistanceDisappear0=5000
NewShipType.TODistanceFade1=350
NewShipType.TODistanceDisappear1=300
NewShipType.TODistanceFade2=25000
NewShipType.TODistanceDisappear2=12000
NewShipType.TOGroupScale=1
NewShipType.TOGroupMergeSize=0
NewShipType.mouseOverMinFadeSize=0.045
NewShipType.mouseOverMaxFadeSize=0.1
NewShipType.maxhealth=40
NewShipType.regentime=0
NewShipType.sideArmourDamage=1
NewShipType.rearArmourDamage=1
NewShipType.maxShield=0
NewShipType.shieldRechargeTime=0
NewShipType.nlips=0.001
NewShipType.nlipsRange=75000
NewShipType.nlipsFar=0.0005
NewShipType.nlipsFarRange=100000
NewShipType.SMRepresentation="Invisible"
NewShipType.meshRenderLimit=2000
NewShipType.dotRenderLimit=2000
NewShipType.minLOD=0.2
NewShipType.upLOD=300
NewShipType.upLOD=1000
NewShipType.downLOD=305
NewShipType.downLOD=1005
NewShipType.minimumZoomFactor=0.55
NewShipType.selectionPriority=30
NewShipType.weaponName="Hgn_TorpedoLauncher"
NewShipType.lifeTime=4
NewShipType.launchTime=0
NewShipType.detectionDistance=0
NewShipType.proximityDetonationDist=85
NewShipType.sobDieTime=0.5
NewShipType.density=1
NewShipType.thrusterMaxSpeed=400
NewShipType.mainEngineMaxSpeed=400
NewShipType.rotationMaxSpeed=425
NewShipType.thrusterAccelTime=0.8
NewShipType.thrusterBrakeTime=0.5
NewShipType.mainEngineAccelTime=0.8
NewShipType.mainEngineBrakeTime=0.5
NewShipType.rotationAccelTime=0.4
NewShipType.rotationBrakeTime=0.4
NewShipType.thrusterUsage=0.5
NewShipType.accelerationAngle=60
NewShipType.mirrorAngle=30
NewShipType.maxBankingAmount=85
NewShipType.descendPitch=0
NewShipType.goalReachEpsilon=5
NewShipType.controllerType="Missile"
NewShipType.slowdownFactor=0.1
NewShipType.tumbleStaticX=0
NewShipType.tumbleStaticY=0
NewShipType.tumbleStaticZ=0
NewShipType.tumbleDynamicX=0
NewShipType.tumbleDynamicY=0
NewShipType.tumbleDynamicZ=0
NewShipType.tumbleSpeed=0
NewShipType.targetAngle=2
NewShipType.spiralsPerSecondMin=2
NewShipType.spiralsPerSecondMax=2.5
NewShipType.BuildFamily="NotBuildable"
NewShipType.AttackFamily="UnAttackable"
NewShipType.DockFamily="CantDock"
NewShipType.AvoidanceFamily="DontAvoid"
NewShipType.DisplayFamily="Munition"
NewShipType.AutoFormationFamily="Fighter"
NewShipType.ArmourFamily="Unarmoured"
LoadHODFile(NewShipType,1);
setEngineTrail(NewShipType,0,10,"trail_ribbon.tga",0.2,0.5,0.025,8);
setEngineBurn(NewShipType,10,0.5,1,10,0,0.7,0.1,15);
loadShipPatchList(NewShipType,"data:sound/sfx/ship/hiigaran/NonMilitary/Engines/"
,0,"HTorpedoEng");
===========================================
|SCRIPT WEAPONFIRE FILE|
Data\scripts\weaponfire\hgn_minimissile\hgn_minimissile.wf
===========================================
hitfx = "hit_generic"
bulletfx = "bullet_generic"
nopenetratefx = "nopen_generic"
deathtype = "deathCannon"
scartype = "hgn_minimissile/hgn_minimissile"
hit_sfx = "WEAPON/FRIGATE/IMPACT/WEAPON_FRIGATE_TORPEDO_HIT"
nopenetrate_sfx = "WEAPON/FRIGATE/IMPACT/WEAPON_FRIGATE_TORPEDO_HIT"
hit_clamp = {
1,
1,
}
======//end my code
Thanks for your time. :comp:
Step 1:
Copy(?) an existing missile type and rename to desired name.
IE.
dupe \Data\missile\hgn_clustertorpedob folder and rename to Data\missile\hgn_miniMissile
Step 2:
Change the name of the *.events and *.miss file to hgn_miniMissile
Step 3:
Go to \Data\scripts\weaponfire and dupe the hgn_clustertorpedob folder and rename that folder and it's contents to hgn_miniMissile (while retaining the extensions)
Ok this is what i have read so far, and SO far it doesn't work :comment: what is it that i'm missing here???
questions:
1) ScarType??? leave with the default "scars" or what?
2) NewShipType.weaponName="Hgn_TorpedoLauncher"
++ does this line nEEd to be changed to hgn_minimissilelauncher ? (course, with the weapon defined) ++
===================================|//Start MY missile code|==============
=====================================
|EVENT FILE|
Data\missile\hgn_minimissile\hgn_minimissile.events
=====================================
effects = {
animations = {
animation1 = {
name = "Death",
length = 1,
loop = 0,
parent = "",
minimum = 0,
maximum = 0,
markers = {
"",
},
},
},
events = {
event1 = {
{
"anim",
"Death",
},
{
"animtime",
"0",
},
{
"marker",
"Root",
},
{
"sound",
"WEAPON/CARRIER/FIRE/WEAPON_DESTROYER_MISSLE_LAUNCH",
},
{
"fx_transform",
"None",
},
},
},
}
===========================================
|LUA MISSILE FILE|
\Data\missile\hgn_minimissile\hgn_minimissile.miss
===========================================
--===========================================================================
-- Purpose : Lua definition file for Homeworld Ship.
-- Contains loading information and flight dynamics information (among other things?)
--
-- Copyright Relic Entertainment, Inc. All rights reserved.
-- ===========================================================================
NewShipType = StartMissileConfig()
NewShipType.displayedName="Hiigaran Mini Missile"
NewShipType.sobDescription="$1559"
NewShipType.TOScale=1
NewShipType.TODistanceFade0=7000
NewShipType.TODistanceDisappear0=5000
NewShipType.TODistanceFade1=350
NewShipType.TODistanceDisappear1=300
NewShipType.TODistanceFade2=25000
NewShipType.TODistanceDisappear2=12000
NewShipType.TOGroupScale=1
NewShipType.TOGroupMergeSize=0
NewShipType.mouseOverMinFadeSize=0.045
NewShipType.mouseOverMaxFadeSize=0.1
NewShipType.maxhealth=40
NewShipType.regentime=0
NewShipType.sideArmourDamage=1
NewShipType.rearArmourDamage=1
NewShipType.maxShield=0
NewShipType.shieldRechargeTime=0
NewShipType.nlips=0.001
NewShipType.nlipsRange=75000
NewShipType.nlipsFar=0.0005
NewShipType.nlipsFarRange=100000
NewShipType.SMRepresentation="Invisible"
NewShipType.meshRenderLimit=2000
NewShipType.dotRenderLimit=2000
NewShipType.minLOD=0.2
NewShipType.upLOD=300
NewShipType.upLOD=1000
NewShipType.downLOD=305
NewShipType.downLOD=1005
NewShipType.minimumZoomFactor=0.55
NewShipType.selectionPriority=30
NewShipType.weaponName="Hgn_TorpedoLauncher"
NewShipType.lifeTime=4
NewShipType.launchTime=0
NewShipType.detectionDistance=0
NewShipType.proximityDetonationDist=85
NewShipType.sobDieTime=0.5
NewShipType.density=1
NewShipType.thrusterMaxSpeed=400
NewShipType.mainEngineMaxSpeed=400
NewShipType.rotationMaxSpeed=425
NewShipType.thrusterAccelTime=0.8
NewShipType.thrusterBrakeTime=0.5
NewShipType.mainEngineAccelTime=0.8
NewShipType.mainEngineBrakeTime=0.5
NewShipType.rotationAccelTime=0.4
NewShipType.rotationBrakeTime=0.4
NewShipType.thrusterUsage=0.5
NewShipType.accelerationAngle=60
NewShipType.mirrorAngle=30
NewShipType.maxBankingAmount=85
NewShipType.descendPitch=0
NewShipType.goalReachEpsilon=5
NewShipType.controllerType="Missile"
NewShipType.slowdownFactor=0.1
NewShipType.tumbleStaticX=0
NewShipType.tumbleStaticY=0
NewShipType.tumbleStaticZ=0
NewShipType.tumbleDynamicX=0
NewShipType.tumbleDynamicY=0
NewShipType.tumbleDynamicZ=0
NewShipType.tumbleSpeed=0
NewShipType.targetAngle=2
NewShipType.spiralsPerSecondMin=2
NewShipType.spiralsPerSecondMax=2.5
NewShipType.BuildFamily="NotBuildable"
NewShipType.AttackFamily="UnAttackable"
NewShipType.DockFamily="CantDock"
NewShipType.AvoidanceFamily="DontAvoid"
NewShipType.DisplayFamily="Munition"
NewShipType.AutoFormationFamily="Fighter"
NewShipType.ArmourFamily="Unarmoured"
LoadHODFile(NewShipType,1);
setEngineTrail(NewShipType,0,10,"trail_ribbon.tga",0.2,0.5,0.025,8);
setEngineBurn(NewShipType,10,0.5,1,10,0,0.7,0.1,15);
loadShipPatchList(NewShipType,"data:sound/sfx/ship/hiigaran/NonMilitary/Engines/"
,0,"HTorpedoEng");
===========================================
|SCRIPT WEAPONFIRE FILE|
Data\scripts\weaponfire\hgn_minimissile\hgn_minimissile.wf
===========================================
hitfx = "hit_generic"
bulletfx = "bullet_generic"
nopenetratefx = "nopen_generic"
deathtype = "deathCannon"
scartype = "hgn_minimissile/hgn_minimissile"
hit_sfx = "WEAPON/FRIGATE/IMPACT/WEAPON_FRIGATE_TORPEDO_HIT"
nopenetrate_sfx = "WEAPON/FRIGATE/IMPACT/WEAPON_FRIGATE_TORPEDO_HIT"
hit_clamp = {
1,
1,
}
======//end my code
Thanks for your time. :comp: