I need some help again...

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

I need some help again...

Post by Par3210 »

Hello again. I need some more help.
First off: Where should I put ScriptCB_SetGameRules("campaign") as I want to use it to make only one team accessible? I tried putting it here, is it the right spot?:
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- Mos Eisley Hero Deathmatch (uses Space Assault rules)
-- First team to reach 100 kills wins
--

ScriptCB_DoFile("setup_teams")
ScriptCB_DoFile("ObjectiveTDM")
ScriptCB_SetGameRules("campaign") <-------

---------------------------------------------------------------------------
-- ScriptPostLoad
---------------------------------------------------------------------------
function ScriptPostLoad()
EnableSPHeroRules()
-- This is the actual objective setup
TDM = ObjectiveTDM:New{teamATT = 1, teamDEF = 2,
multiplayerScoreLimit = 100,
textATT = "game.modes.tdm",
textDEF = "game.modes.tdm2", multiplayerRules = true, isCelebrityDeathmatch = true}
TDM:Start()

AddAIGoal(1, "Deathmatch", 100)
AddAIGoal(2, "Deathmatch", 100)
end
Next, how would I add the music on Coruscant on Galactic Civil War into my map? It did not work when someone said how to do it last time, only made it have no sound at all.
3rd, When I try to skin in Photo Impact, when I save it, it makes it unaccesable when I try to open it again and leaves it as 0KB and when I munge it VM gets a error and closes. Please help as I really need to skin episode 2 troops...or please direct me to some good clones that have just had the lines of colour changed to a different colour...thanks.
4th: Would it be possible to give a Jet Trooper a lightsaber? And how? I have read the docs and I cannot recall seeing it showing how to do this. I have gone through several side tutorials too to no avail.
5th: I downloaded Dann Boeing's sides to his Boras II Stunt Course just now. How would I go about adding them to my map? Thanks again.
Help, Please!?
vegati
Chief Warrant Officer
Chief Warrant Officer
Posts: 352
Joined: Fri Dec 26, 2008 1:21 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: At Gametoast.com enjoyin some fresh salmon jerky. Mmmmmm.
Contact:

Re: I need some help again...

Post by vegati »

@4: Go to the jet troopers ODF and add it as a weapon. Example:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default"

[Properties]
MaxHealth = 300.0

PointsToUnlock = 12

UnitType = "trooper"

AISizeType = "HOVER"

ControlSpeed = "jet 1.50 1.25 1.25"

JetJump = "5.0" //7 //The initial jump-push given when enabling the jet
JetPush = "8.0" //The constant push given while the jet is enabled (20 is gravity)
JetAcceleration = "30.0" //Acceleration while hovering.
JetEffect = "rep_sfx_jetpack"
JetType = "hover"
JetFuelRechargeRate = "0.12" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost = "0.16" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost = "0.25" //initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder = "0.24" //minimum fuel to perform a jet jump(fuel is 0 to 1)

CAMERASECTION = "STAND"

EyePointOffset = "0.0 1.8 0.0"
TrackCenter = "0.0 1.8 0.0
TrackOffset = "0.0 0.0 3.5"
TiltValue = "7.5"

//These probably need to be set
//CAMERASECTION = "STANDZOOM"
//EyePointOffset = "0.0 1.8 0.0"
//TrackCenter = "0.0 1.8 0.0
//TrackOffset = "0.4 0.05 2.8"
//TiltValue = "3.5"

CAMERASECTION = "CROUCH"

EyePointOffset = "0.0 1.3 0.0"
TrackCenter = "0.0 1.3 0.0
TrackOffset = "0.0 0.15 3.5"
TiltValue = "7.5"

//These probably need to be set
//CAMERASECTION = "CROUCHZOOM"
//EyePointOffset = "0.0 1.3 0.0"
//TrackCenter = "0.0 1.3 0.0
//TrackOffset = "0.4 0.2 2.8"
//TiltValue = "3.5"


WEAPONSECTION = 1
WeaponName = "all_weap_lightsaber_blue"
WeaponAmmo = 0

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_commando_pistol"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "rep_weap_inf_thermaldetonator"
WeaponAmmo = 4
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "rep_weap_award_pistol"
WeaponAmmo = 6

CollisionScale = "0.0 0.0 0.0"

EngineSound = "rep_inf_Jetpack_engine_parameterized"
TurnOnSound = "rep_weap_jetpack_turnon"
TurnOffSound = "rep_weap_jetpack_turnoff"
TurnOffTime = 0.0


VOUnitType = 121
Just remember to copy over anything from the sides file 'jed' that is associated with the lightsaber that you plan to use.
User avatar
Challenger33
Lieutenant General
Lieutenant General
Posts: 726
Joined: Wed Aug 23, 2006 3:44 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: Building a legion of papercraft models.
Contact:

Re: I need some help again...

Post by Challenger33 »

#2: Custom Ambient Music Tutorial by Maveritchell

#3: I'd recommend using GIMP (http://www.gimp.org/); it's free. That is, unless Photo Impact is better; I don't know, as I have never used it. How are you saving the files?

#5: Custom Side How-To by Caleb1117

Make sure you take a look at the FAQ/Everything You Need Thread.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: I need some help again...

Post by Teancum »

Take a look at any campaign lua that came with the mod tools for the answer to the first question.
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: I need some help again...

Post by Par3210 »

Challenger33 wrote:#2: Custom Ambient Music Tutorial by Maveritchell

#3: I'd recommend using GIMP (http://www.gimp.org/); it's free. That is, unless Photo Impact is better; I don't know, as I have never used it. How are you saving the files?

#5: Custom Side How-To by Caleb1117

Make sure you take a look at the FAQ/Everything You Need Thread.
Nvm about the Photo Impact, I got GIMP.
Thank you everyone. I still can't get Dann's sides working though.
They keep crashing my game. :sleep:
Post Reply