Jump to content

Recommended Posts

Posted (edited)

I wan't to add harpoints for any ship, how can I do it?, I followed a tutorial, I DID make it spawn fighters, but then I triad making it my own,And I tried to change a nebulon's Laser weapon to an Ion Cannon, but the game crashed, I did this:

 

HardPoint Name="HP_Nebulon_Weapon_FL">

HARD_POINT_WEAPON_ION_CANNON

            Yes

            Yes

            TEXT_WEAPON_ION_CANNON

            260.0

 

Large_Explosion_Space

Unit_Hardpoint_Turbo_Ion_Death

 

            RV_nebulonb_HP00_F-L.alo

            HP_F-L_BONE

            HP_F-L_COLL

            HP_F-L_BLAST

            HP_F-L_EMITDAMAGE

 

Hardpoint_Breakoff_Nebulon_Weapon_FL

 

Damage_Nebulon_B

            FP_F-L_00

            FP_F-L_01

            175.0

            160.0

            Proj_Ship_IonCannon_Blue

            3.0

            4.0

            5

            0.2

            1100.0

Unit_Turbo_Fire

 

 

Fighter, 70.0

Bomber, 70.0

Transport, 70.0

Corvette, 1.0

Frigate, 15.0

Capital, 70.0

Super, 30.0

 

Then in Spaceunitsfrigates.XML, It looked like this:

 

 

HP_Nebulon_Weapon_FL, HP_Nebulon_Weapon_FR, HP_Nebulon_Weapon_BL, HP_Nebulon_Weapon_BR, HP_Nebulon_Engines

 

MISSILE_TARGET00, MISSILE_TARGET01

 

Frigate | AntiCorvette

i_button_escort_frigate.tga

RV_NebulonB.ALO

1000

0 0 0

45

yes

True

 

RHD_Build_Vehicle

RHD_Unit_Canceled

Unit_Complete_Nebulon

 

Unit_Nebulon_Moving_Engine_Loop

Unit_Select_Nebulon

Unit_Move_Nebulon

Unit_Fleet_Move_Nebulon

Unit_Attack_Nebulon

Unit_Guard_Nebulon

Unit_Stop_Nebulon

Unit_Barrage_Nebulon

Unit_Asteroids_Nebulon

Unit_Nebula_Nebulon

      SFX_Asteroid_Detonation

 

HARD_POINT_WEAPON_LASER, Unit_HP_LASER_Nebulon

HARD_POINT_WEAPON_MISSILE, Unit_HP_MISSILE_Nebulon

HARD_POINT_WEAPON_TORPEDO, Unit_HP_TORP_Nebulon

HARD_POINT_WEAPON_ION_CANNON, Unit_HP_ION_Nebulon

HARD_POINT_SHIELD_GENERATOR, Unit_HP_SHIELDS_Nebulon

HARD_POINT_ENGINE, Unit_HP_ENGINES_Nebulon

HARD_POINT_GRAVITY_WELL, Unit_HP_GRAV_Nebulon

 

HARD_POINT_WEAPON_LASER, Unit_Lost_Laser_Nebulon

HARD_POINT_WEAPON_MISSILE, 

HARD_POINT_WEAPON_TORPEDO, 

HARD_POINT_WEAPON_ION_CANNON, 

HARD_POINT_SHIELD_GENERATOR, Unit_Lost_Shields_Nebulon

HARD_POINT_ENGINE, Unit_Lost_Engines_Nebulon

HARD_POINT_GRAVITY_WELL, 

HARD_POINT_FIGHTER_BAY, 

HARD_POINT_TRACTOR_BEAM,

HARD_POINT_ENABLE_SPECIAL_ABILITY,

 

Unit_Nebulon_Idle_Engine_Loop

Unit_Nebulon_Moving_Engine_Loop

Unit_Nebulon_Cinematic_Engine_Loop

 

It didn't work, so any suggestions?

Edited by EJMM
Posted

Ok.  First off, if you simply want to change weapons on a hardpoint, you don't need to do anything in the object file.  You only need to edit the hardpoint file.  I'm not completely sure what's wrong with your code, but it could simply be a few small things.  Just look at other ion cannon codes, and see how they are written.  Perhaps it is that your code still gives the weapon damage.  Idk.  Try this and see...it should work.  If not, just mess around with it and compare it to other ion cannon hardpoints.   

 

HARD_POINT_WEAPON_ION_CANNON

            Yes

            Yes

            TEXT_WEAPON_IONCANNON

            260.0

 

Large_Explosion_Space

Unit_Hardpoint_Ion_Death

 

            RV_nebulonb_HP00_F-L.alo

            HP_F-L_BONE

            HP_F-L_COLL

            HP_F-L_BLAST

            HP_F-L_EMITDAMAGE

 

Hardpoint_Breakoff_Nebulon_Weapon_FL

 

            FP_F-L_00

            FP_F-L_01

            175.0

            160.0

            Proj_Ship_Ion_Cannon

            3.0

            4.0

            5

            0.2

            1800.0

Unit_Ion_Fire

 

 

Fighter, 70.0

Bomber, 70.0

Transport, 70.0

Corvette, 1.0

Frigate, 15.0

Capital, 70.0

Super, 30.0

 

   

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Copyright (c) 1999-2025 by SWRebellion Community - All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Star Wars(TM) is a registered trademark of LucasFilm, Ltd. We are not affiliated with LucasFilm or Walt Disney. This is a fan site and online gaming community (non-profit). Powered by Invision Community

×
×
  • Create New...