SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF2 Modding => Topic started by: Kroete on June 19, 2020, 04:22:50 PM

Title: [Solved]How do i set weapons to my ship?
Post by: Kroete on June 19, 2020, 04:22:50 PM
I'm working on making my own starfighter. Until now i've just been pasting sections from the tiefighter odf to the odf of the starship. I've managed to make it flyable, make it do tricks, have the appropiate speed and place the camera in the right spot.

Weapons and Thruster effects seem to be different and i've been struggling to find tutorials on making a starship in general. How do i add Weapons to my ship?

I also reckon that i wont be able to just create them using my odf file but i'll post it here anyway.

My .odf file:
(Please note that because i'm kind of new to modding i don't know what some of these things do, but the odf_guide.doc helped me out a bit)
[spoiler]
[GameObjectClass]      

ClassLabel      =   "flyer"
GeometryName   =   "ship.msh"


[Properties]      
HUDModel        = "hud_tie_fighter_shape"
MapTexture = "tie-fighter_icon"
HealthTexture = "HUD_imp_tiefighter_icon"
VehiclePosition = "common.vehiclepositions.pilot"

MapScale            = 1.5
MapViewMin          = 750
MapViewMax          = 750

GeometryName   =   "testship"
Label = "ship"
//ForceMode = "1"
CollisionScale = "1.5"
CollisionThreshold = "5"
MaxHealth = "2250"
PilotSkillRepairScale = "0.02"
TakeoffTime = "1"
TakeoffSpeed = "10"
LandingTime = "1"
LandingSpeed = "10"
TakeoffHeight = "1.5"

SquadronFormation = "Tri-form"
SquadronFormation = "Box-form"

EnergyBar = "80"
EnergyAutoRestore = "7.5"
EnergyBoostDrain = "20"
EnergyTrickDrainSingleTap = "15"
EnergyTrickDrainDoubleTap = "30"
FirstPersonFOV = "52"
CockpitTension = "22"

PitchRate               = 1.25
PitchFilter             = 6.0
PitchFilterDecel        = 6.0
PitchBuildupMultiplier  = 1.0
TurnRate                = 1.0
TurnFilter              = 6.0
TurnFilterDecel         = 6.0
TurnBuildupMultiplier   = 1.0

BankAngle = "0.8"
BankFilter = "3.5"
LevelFilter = "1.5"
LevelFilterLanding = "5"
RollRate = "3.15"
PCPitchRate = "15"
PCSpinRate = "15"
PCTurnRate = "25"

TiltValue = "5"

AimTension              = "20.0"

MoveTensionX            = "2.7"
MoveTensionY            = "2.7 10.0"
MoveTensionZ            = "4.25"

BlurEffect = "0.9"
BlurStart = "40"
FOVEffect3rd = "90"
FOVEffect1st = "90"
Acceleraton = "40"
MinSpeed = "35"
MidSpeed = "70"
MaxSpeed = "95"
BoostAcceleration = "80"
BoostSpeed = "150"
TrickRollSpeed = "6"
TrickFlipSpeed = "6"
TrickSideRollStrafeSpeed = "30"
TrickFlipCameraDetach = "0.24"
TrickSideRollCameraDetach = "0.48"

EyePointOffset = "0.0 6.0 0.0"
TrackOffset = "0.0 0.0 0.0"
TrackCenter = "0.0 5.0 -8.0"

FOVEFFectMinCamOffset3rd = "0.0 10.0 20.0"
FOVEFFectMaxCamOffset3rd = "0.0 10.0 25.0"

FoleyFXGroup            = "metal_foley"[/spoiler]
Title: Re: How do i set weapons to my ship?
Post by: Kroete on June 20, 2020, 06:23:00 PM
Update:

I've managed to figure out how so set hardpoints in XSI Modtools but i still don't know how to reference them in my .odf file. The thruster hardpoints and effects work (Which i also copy and pasted from another odf) but the game crashes when i try to reference weapons.

Any help would be appreciated
Title: Re: [Solved]How do i set weapons to my ship?
Post by: Kroete on June 27, 2020, 01:28:28 PM
Putting the flyer into its own side worked
EhPortal 1.34 © 2024, WebDev