"Silenced" Pistol?

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
Tygr
Corporal
Corporal
Posts: 150
Joined: Mon Aug 25, 2008 1:11 pm

"Silenced" Pistol?

Post by Tygr »

Hello! I"m new to modding Battlefront 2, and I am working on a full sides mod.

How do I make a weapon (I'm using a pistol) not alert enemies of your presence?

Thank you!
PsYcH0_]-[aMsT3r
2nd Lieutenant
2nd Lieutenant
Posts: 405
Joined: Fri Jan 25, 2008 3:11 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: Location Location.

Re: "Silenced" Pistol?

Post by PsYcH0_]-[aMsT3r »

Just delete the name in the file sound line in the pistol odf.

Here's the defualt rep_weap_inf_pistol odf.
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_pistol"
GeometryName = "rep_weap_inf_pistol.msh"

[Properties]

GeometryName = "rep_weap_inf_pistol"
HighResGeometry = "rep_1st_weap_inf_pistol"
OrdnanceName = "rep_weap_inf_pistol_ord"


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

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

FireSound = "rep_weap_inf_pistol_fire"
FireEmptySound = "com_weap_inf_ammo_empty"
FireLoopSound = ""
ReloadSound = ""
ChargeSound = ""
OverheatSound = "com_weap_energy_depleted"
OverheatSoundPitch = "0.5"
OverheatStopSound = "com_weap_energy_refilled"
ChangeModeSound = "com_weap_inf_equip_sm"
WeaponChangeSound = "com_weap_inf_equip_sm"
JumpSound = "com_weap_inf_pistol_mvt_jump"
LandSound = "com_weap_inf_pistol_mvt_land"
RollSound = "com_weap_inf_pistol_mvt_roll"
//ProneSound = "com_weap_inf_pistol_mvt_lie"
SquatSound = "com_weap_inf_pistol_mvt_squat"
//StandSound = "com_weap_inf_pistol_mvt_getup"
And here it is again without the sound.
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_pistol"
GeometryName = "rep_weap_inf_pistol.msh"

[Properties]

GeometryName = "rep_weap_inf_pistol"
HighResGeometry = "rep_1st_weap_inf_pistol"
OrdnanceName = "rep_weap_inf_pistol_ord"


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

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

FireSound = ""
FireEmptySound = ""
FireLoopSound = ""
ReloadSound = ""
ChargeSound = ""
OverheatSound = "com_weap_energy_depleted"
OverheatSoundPitch = "0.5"
OverheatStopSound = "com_weap_energy_refilled"
ChangeModeSound = "com_weap_inf_equip_sm"
WeaponChangeSound = "com_weap_inf_equip_sm"
JumpSound = "com_weap_inf_pistol_mvt_jump"
LandSound = "com_weap_inf_pistol_mvt_land"
RollSound = "com_weap_inf_pistol_mvt_roll"
//ProneSound = "com_weap_inf_pistol_mvt_lie"
SquatSound = "com_weap_inf_pistol_mvt_squat"
//StandSound = "com_weap_inf_pistol_mvt_getup"
Yay go me for telling you something that 'should' work :P.

And by the way it's totally your choice but SWBF2 modding is pretty hard so normally the words 'New to battlefront modding' and 'full sides mod' don't really fit. But again, it's your choice and trying something hard is always good.
Tygr
Corporal
Corporal
Posts: 150
Joined: Mon Aug 25, 2008 1:11 pm

Re: "Silenced" Pistol?

Post by Tygr »

So removing the sound will make the AI less responsive to shots?
And by the way it's totally your choice but SWBF2 modding is pretty hard so normally the words 'New to battlefront modding' and 'full sides mod' don't really fit. But again, it's your choice and trying something hard is always good.
Lol. At first I couldn't get it to build the .lvl files. But once I got that working, it's been fairly straight forward. I already have working republic, alliance, and emperial sides, although I'm not done with any of them. I'm going to try to make the CIS canon, but I'm having a little fun with the others. :D

BTW, is there any way to use the bounce code for grenades to make blaster shots ricochet? That would be sweet!
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: "Silenced" Pistol?

Post by Caleb1117 »

I don't think it's the weapons sound that tips them off. I'm pretty sure the AI automatically respond to being shot, or having a shot pass close to them. I don't think you can change it either.
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: "Silenced" Pistol?

Post by Aman/Pinguin »

Caleb1117 wrote:I don't think it's the weapons sound that tips them off. I'm pretty sure the AI automatically respond to being shot, or having a shot pass close to them. I don't think you can change it either.
They also know when your reticule is placed on them. (Not always)
Post Reply