2 questions- Resizing a msh and custom powerups

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
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

2 questions- Resizing a msh and custom powerups

Post by Silas »

1.For my map that i'm making, i need a powerup dispenser that creates a powerup that increases your unit's speed for a short time. I know this was done with a force power(in the spoiler below), but i'm not sure how to apply this with a powerup. The blue words are what i think is what i'm looking for, but i'm not sure
Hidden/Spoiler:
[WeaponClass]

ClassLabel = "areaeffectweapon"

[Properties]
//HUDTag = "hud_force_choke"
GeometryName = ""
HighResGeometry = ""

//MuzzleFlash = "med_muzzle_flash"
FlashColor = "80 80 255 255"
FlashLength = 0.025
FlashLightColor = "220 220 255 175"
Discharge = "med_smoke_effect"

//RoundsPerClip = "32"
RoundsPerClip = "0"
ReloadTime = "0.0"

HeatPerShot = "0.5" // only allow player to fire every 5 seconds
HeatRecoverRate = "0.033"
HeatThreshold = "0.6"

DisplayRefire = "0"

EnergyDrain = "5.0"
EnergyDrainRate = "0.1"
FireType = "Hold"
InitialSalvoDelay = "0.5"
//ChargeMaxTime = "0.0"
//ChargeMinStrength = "0.0"
MaxTargets = "1"
AreaType = "Ray"
AreaRange = "1.0"
AreaRadius = "1.0" // -> 20 degree arc
AreaHeight = "4.0"
EffectDamage = "0.0"
EffectType = "Choke"
EffectStrength = "0.0"
EffectFalloff = "1.0"
ThrustFactor = "8.0" // when firing, move at half speed
// I don't think this is used in the code at all -> TargetLock = "1" // when firing, activate target lock
SoldierAnimation = "choking"

OffhandWeapon = 1
InstantPlayFireAnim = 1
TriggerSingle = "1" // if FireType = "Hold" this will work correctly now - Mike Z

LockOnRange = "64.0"
LockTime = "0.0"
AutoAimSize = "2.0"

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "0"
TargetBuilding = "0"

ChargeRateLight = "1.0"
MaxChargeStrengthLight = "1.0"
ChargeDelayLight = "0.0"
ChargeRateHeavy = "1.0"
MaxChargeStrengthHeavy = "0.5"
ChargeDelayHeavy = "2.2"

RecoilLengthHeavy = "0.25"
RecoilStrengthHeavy = "2"
RecoilDecayHeavy = "0.0"

FireSound = "force_choke_fire"
//ReloadSound = ""
WeaponChangeSound = ""
ChangeModeSound = ""
FireEmptySound = ""
ChargeSound = ""
ChargeSoundPitch = "0.05"
OverheatSound = ""
OverheatSoundPitch = "0.5"
OverheatStopSound = ""
although im slightly confused why the animation is choking...but this is apparently the odf for the burst of speed force power. Any help with this would be great

2. On resizing stuff, i know u use the geometry scale thing, but is there anything else involved? i vagualy remember something about altering the .msh or soemthing, but i can't remember
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: dos preguntas sobre resizing y powerups

Post by Grev »

I would change the soldier anim to like power up or grenade throw, and then just add an effect.
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: dos preguntas sobre resizing y powerups

Post by Fingerfood »

2. I believe it involves going into the .msh and adding/changing GeometryScale (or whatever it is) to negative the scale in the odf. Example: 2.0 in odf. -2.0 in msh.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: dos preguntas sobre resizing y powerups

Post by FragMe! »

For the msh you need to create a nameofmsh.msh.option file with the following in it:

-scale 0.5

that makes it half the size.

If it is an object and you want it to look right in ZE you must add the following to the objects odf file under properties

GeometryScale = "0.5"

not totally sure the "s are required but most things do.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: dos preguntas sobre resizing y powerups

Post by Maveritchell »

Put simply, you can't apply that weapon as it is to a powerup. If you were to try to create such a weapon as you describe, you'd have to do it using a .lua callback. And in that case you wouldn't have the speed change be affected until the unit respawned. (And it would affect every unit of that class, not a single unit).
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: dos preguntas sobre resizing y powerups

Post by Silas »

FragMe! wrote:For the msh you need to create a nameofmsh.msh.option file with the following in it:

-scale 0.5

that makes it half the size.

If it is an object and you want it to look right in ZE you must add the following to the objects odf file under properties

GeometryScale = "0.5"

not totally sure the "s are required but most things do.
is that all i need to do? Just make a .msh.option and put GeometryScale = "0.5" (to cut in half) in it? or is there anything else i should do?
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: dos preguntas sobre resizing y powerups

Post by Aman/Pinguin »

That's all.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: dos preguntas sobre resizing y powerups

Post by Silas »

sigh...not having much luck here. To try this out, i chose the rifle. i gave it the pistol animation, which worked, and tried to make it smaller, which did not work. here's what i did:

in rep_weap_inf_rifle.msh.option
Hidden/Spoiler:
GeometryScale = "0.25"
and that's all

in rep_weap_inf_rifle
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_rifle"
GeometryName = "rep_weap_inf_rifle.msh"

[Properties]
GeometryName = "rep_weap_inf_rifle"
HighResGeometry = "rep_1st_weap_inf_rifle"
OrdnanceName = "rep_weap_inf_rifle_ord"
GeometryScale = 0.25

AnimationBank = "pistol"
anyone see what my problem is?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: dos preguntas sobre resizing y powerups

Post by FragMe! »

First for weapons you don't have to put the line in the odf as that is only for seeing things correctly in ZE which of course you don't see weapons there.

Will get back to you on the other bit.
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: dos preguntas sobre resizing y powerups

Post by MandeRek »

The .msh.option needs to look like this:

Code: Select all

-scale .25
.25 is the same as 0.25 so doesn't matter actually.. Leave out the odf line, it's only needed when added in ZE as Frag said :)
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: dos preguntas sobre resizing y powerups

Post by FragMe! »

just tested it and it works, for the rep_weap_inf_rifle.msh there is a .option file already in the PC folder for the REP side make sure you add the -scale thing to that one not create a new one as it will get ingored.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: dos preguntas sobre resizing y powerups

Post by Silas »

hmmm...well is it a problem if i have no .msh.option files anywhere? I looked in the PC folder in the Rep's msh folder, but i not only lack a msh.option for rifle, but for everything else too. Is that normal?
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: dos preguntas sobre resizing y powerups

Post by Fingerfood »

Okay, not to take over, but I'm having problems resizing too.

My odf
Hidden/Spoiler:
[code][GameObjectClass]

ClassLabel = "prop"
GeometryName = "tat2_bldg_wall_8M.msh"


[Properties]

GeometryName = "tat2_bldg_wall_8M"
GeometryScale = "10.0"

FoleyFXGroup = "stone_foley"[/code]
My .msh.option:
Hidden/Spoiler:
[code]-scale 10.0[/code]
I don't know if it works ingame, but it sure doesn't work in ZE.


Oh, and try using search for .msh.option and see what turns up, Silas.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: dos preguntas sobre resizing y powerups

Post by AceMastermind »

Fingerfood wrote:Okay, not to take over, but I'm having problems resizing too.

My odf

Code: Select all

[GameObjectClass]
ClassLabel		=	"prop"
GeometryName	=	"tat2_bldg_wall_8M.msh"

[Properties]
GeometryName	=	"tat2_bldg_wall_8M"
GeometryScale   = "10.0"
FoleyFXGroup    = "stone_foley"
Should be:

Code: Select all

[GameObjectClass]
ClassLabel		=	"prop"
GeometryName	=	"tat2_bldg_wall_8M.msh"
GeometryScale   = 10.0  //this only applies to ZeroEditor not ingame

[Properties]
GeometryName	=	"tat2_bldg_wall_8M"
FoleyFXGroup    = "stone_foley"
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: dos preguntas sobre resizing y powerups

Post by Silas »

tried searching and came up with the BF2 Jedi creation docs. nothing else. is it possible to just create my own, or should i just reinstall the tools? :cry:
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: dos preguntas sobre resizing y powerups

Post by FragMe! »

So if you look in the BF_Modtools/assets/sides/rep/msh (and msh/pc) you don't see any .option files?
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: dos preguntas sobre resizing y powerups

Post by MandeRek »

Impossible.. Probably the name says rep_inf_rifle.msh, and the FileType says OPTION.

Check if there is a rep_1st_weap_inf_rifle file, and rep_1st_weap_inf_rifle.msh file.. Also, you can just make your own one in Notepad.. Make sure it's an option file, and not a Text (.txt) file called blabla.option(.txt)

Try and see ;)
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: dos preguntas sobre resizing y powerups

Post by Silas »

lol wow. yeah, I checked the properties of the second rigle .msh I have, and discovered it was in fact an option file. I just added the line -scale 0.5 and it worked fine. thanks for the help there. Only a one thing to hopefully quickly wrap up.

Is there anyway to make a powerup that increases your speed temporarily? :runaway:
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: dos preguntas sobre resizing y powerups

Post by Maveritchell »

Silas wrote:Is there anyway to make a powerup that increases your speed temporarily? :runaway:
Pretty sure I answered that about a page back.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: dos preguntas sobre resizing y powerups

Post by Silas »

ah. accidently missed that when i made my reply. oh well.
Post Reply