Bolt colors, wrong msh

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
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Bolt colors, wrong msh

Post by Fiodis »

I've been trying to make a carbine that shoots yellow blaster bolts.

I got that DC-15 rifle that Majin Revan's clone commando uses, and reskinned the bolt to be yellow. Then I tweaked the color values in the two odf's by ripping the values off of the bowcaster's high-powered ordance's odf, which is yellow. The result was a cyan-colored bolt.

The two odfs:

The weapon:
Hidden/Spoiler:
[code][WeaponClass]
ClassLabel = "cannon"
GeometryName = "cis_weap_inf_rifle.msh"

[Properties]
AnimationBank = "rifle"
GeometryName = "cis_weap_inf_rifle"
HighResGeometry = "cis_weap_inf_rifle"


//***********************************************
//************* TARGET & RANGE VALUES **********
//***********************************************

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

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

MinRange = "0"
OptimalRange = "16"
MaxRange = "48"

LockOnRange = "64.0"
LockTime = "0.4"
lockOnAngle = "1.0"

ZoomMin = "2.5"
ZoomMax = "2.5"
ZoomRate = "0.0"

YawSpread = "0.25"
PitchSpread = "0.25"

SpreadPerShot = "0.25"
SpreadRecoverRate = "4.8"
SpreadThreshold = "1.6"
SpreadLimit = "1.0"

StandStillSpread = "0.0"
StandMoveSpread = "0.0"
CrouchStillSpread = "0.0"
CrouchMoveSpread = "0.0"
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "60"
ReloadTime = "1.5"
ShotDelay = "0.15"
TriggerSingle = "0"

DisplayRefire = "0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

OrdnanceName = "rep_weap_inf_carbine_ord"
FirePointName = "hp_fire"

//***********************************************
//*********** HUD & CONTROLLER VALUES *********
//***********************************************

HUDTag = "hud"
MuzzleFlash = "small_muzzle_flash"
FlashColor = "224 224 192 100"
FlashLength = 0.025
FlashColor = "224 224 192 100"
FlashLength = 0.025
FlashLightColor = "224 224 192 100"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"

RecoilLengthLight = "0.1"
RecoilLengthHeavy = "0.1"
RecoilStrengthLight = "1.0"
RecoilStrengthHeavy = "0.2"
RecoilDecayLight = "0.0"
RecoilDecayHeavy = "0.0"

//******************************************************
//*************** SOUND ****************
//******************************************************
FireSound = "cis_weap_inf_wrist_blaster_fire"
ReloadSound = "com_weap_inf_equip_med"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
//ProneSound = "com_weap_inf_rifle_mvt_lie"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"[/code]
The ordance:
Hidden/Spoiler:
[code][OrdnanceClass]
ClassLabel = "bolt"

[Properties]
LaserTexture = "new_carbine_small"
LaserGlowColor = "224 224 192 100"

LaserLength = "1.0"
LaserWidth = "0.025"
GlowLength = "3"

LifeSpan = "0.8"
Velocity = "500.0"
Gravity = "1.0"
Rebound = "0.0"

MaxDamage = "90.0"

VehicleScale = "0.0"
ShieldScale = "1.0"
PersonScale = "1.0"
AnimalScale = "1.0"
DroidScale = "1.0"
BuildingScale = "0.1"

ImpactEffectSoft = "com_sfx_ord_exp"
ImpactEffectRigid = "com_sfx_ord_exp"
ImpactEffectStatic = "com_sfx_ord_exp"
ImpactEffectTerrain = "com_sfx_ord_exp"
ImpactEffectWater = "com_sfx_watersplash_ord"
ImpactEffectShield = "com_sfx_ord_exp"
ExpireEffect = "com_sfx_ord_exp"

OrdnanceSound = "com_weap_inf_ord_hum_sm"
CollisionSound = "imp_weap_ord_exp"

BonusAmplification = "0.25" //how much more damage will be done when team_bonus_blaster_amplication is on[/code]
Did I input the right values for colors, in the right spots? Did I miss anywhere where I have to change the color value?

Also, you'll notice that the MSH is set as the CIS rifle, yet in-game the DC15 rifle msh is shown. What does that mean?
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Bolt colors, wrong msh

Post by YaNkFaN »

the colors are definately not blue they're more of a yellow gray and my only guess is that visual munge didn't munge it because if it did you would have the cis rifle not the dc-15 so maybe try just editing one number so munge will recognize that the file is changed then try it again

also just a suggestion but use these numbers instead for a yellow bolt

234 228 57 100

it'll look better
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Bolt colors, wrong msh

Post by Fiodis »

Actually, the prolem here is that it did munge. I was watching the munge output and I saw rep_weap_inf_carbine and rep_weap_inf_carbine_ord clear as day. But in-game it still has the DC15 msh and the bolt's glow is still cyan. I should say that the bolt itself is yellow, so the reskin worked; but the glow is wrong. What could be wrong?
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Bolt colors, wrong msh

Post by Deviss »

Fiodis wrote:Actually, the prolem here is that it did munge. I was watching the munge output and I saw rep_weap_inf_carbine and rep_weap_inf_carbine_ord clear as day. But in-game it still has the DC15 msh and the bolt's glow is still cyan. I should say that the bolt itself is yellow, so the reskin worked; but the glow is wrong. What could be wrong?
you must remake the rep_weap_inf_carbine and rep_weap_inf_carbine_ord i make that with rifle's files and work fine to see my example

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

[Properties]
GeometryName = "rep_weap_dc15carbine"
HighResGeometry = "rep_weap_dc15carbine"
OrdnanceName = "rep_weap_inf_rifle_ord"
FirePointName = "hp_fire"

//******************************************************
//*************** SOUND ****************
//******************************************************

MuzzleFlash = "small_muzzle_flash"
FlashColor = "80 80 255 255"
FlashLength = "0.025"
FlashLightColor = "220 220 255 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"

FireSound = "rep_weap_inf_rifle_fire"
ReloadSound = "com_weap_inf_reload_med"
ChangeModeSound = "com_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
//ProneSound = "com_weap_inf_rifle_mvt_lie"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"
rep_weap_inf_rifle_ord
Hidden/Spoiler:
[OrdnanceClass]
ClassLabel = "bolt"

[Properties]

LaserTexture = "com_sfx_laser_blue"
LaserGlowColor = "0 0 255 255"
LightColor = "0 0 255 255"
LightRadius = "5.0"

LaserLength = "3.0"
LaserWidth = "0.05"
GlowLength = "3"
BlurLength = "5"

LifeSpan = "0.80"
Velocity = "300.0"
Gravity = "1.0"
Rebound = "0.0"

MaxDamage = "75.0"
DamageTransitionDelay = "0.2" //How long in seconds before the damage change begins.
DamageTransitionPeriod = "0.1" //How long in seconds the damage change lasts.
DamageFinalDamage = "50.0" //What the damage would be at the end of the transition period. A negative value means that no change is applied.

VehicleScale = "0.1"
ShieldScale = "1.0"
PersonScale = "1.0"
DroidScale = "1.0"
BuildingScale = "0.1"

ImpactEffectSoft = "com_sfx_ord_exp"
ImpactEffectRigid = "com_sfx_ord_exp"
ImpactEffectStatic = "com_sfx_ord_exp"
ImpactEffectTerrain = "com_sfx_ord_exp"
ImpactEffectWater = "com_sfx_watersplash_ord"
ImpactEffectShield = "com_sfx_ord_exp"
ExpireEffect = "com_sfx_ord_exp"

OrdnanceSound = "com_weap_inf_ord_hum_sm"
CollisionSound = "imp_weap_ord_exp"

BonusAmplification = "0.25" //how much more damage will be done when team_bonus_blaster_amplication is on
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Bolt colors, wrong msh

Post by Fiodis »

I'm sorry, but I didn't understand that. Are you saying that I have to replace the geometry with the default DC15? That won't solve anything; it's that geometry (and bolt color) that I'm trying to replace.


Also, by changing those numbers, I successfully changed the color of the DC-15 sniper's rifle. So I think I know how to do it, but it's not working. I'm confused....
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Bolt colors, wrong msh

Post by Deviss »

Fiodis wrote:I'm sorry, but I didn't understand that. Are you saying that I have to replace the geometry with the default DC15? That won't solve anything; it's that geometry (and bolt color) that I'm trying to replace.


Also, by changing those numbers, I successfully changed the color of the DC-15 sniper's rifle. So I think I know how to do it, but it's not working. I'm confused....
nooooo, you should only change the ord file to how the same appear con common file the same i made i believe
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Bolt colors, wrong msh

Post by Fiodis »

Sorry, I'm still haveing trouble understanding; are you saying to add a ClassParent line instead of ClassLabel? It always worked with ClassLabel....
Post Reply