Ammo type help?

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
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Ammo type help?

Post by SkinnyODST »

I want to make one of my clone commander`s weapons act the same as the health and ammo dispenser in the fact that you can`t get more just by picking up ammo. I want the only way to get more ammo for it, is by going to a gonk droid (kinda hard to word that)
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Ammo type help?

Post by AnthonyBF2 »

SkinnyODST wrote:I want to make one of my clone commander`s weapons act the same as the health and ammo dispenser in the fact that you can`t get more just by picking up ammo. I want the only way to get more ammo for it, is by going to a gonk droid (kinda hard to word that)
Pickup items can't be modded to favor troop types. it gives ammo to any troop that takes it.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Ammo type help?

Post by Anakin »

i don't think he want a trooper not getting ammo from power up but a special weapon. And that is possible.

If there are others using the same weapon, it won't work for them, too. If you don't want it, duplicate the weapon with a different name.

About the code, you should really learn to find out things by your self. Therefore here is the stock powerup dispenser code. (you can find it in the stock assets. Make sure to scan the sides specific and the common file of a weapon)
And now it's on you to find the right code line. It's not that difficult
Hidden/Spoiler:
rep specific:
[code][WeaponClass]
ClassLabel = "dispenser"

[Properties]
IconTexture = "HUD_powerup_icon"

RoundsPerClip = "1"
ReloadTime = "1.0"

//AnimationBank = "grenade"
OffhandWeapon = 1

RefillFromItem = 0

WEAPONSECTION = 1


ModeTexture = "HUD_weap_ammo"
//ModeTextureColor = "42 235 42 100"
ReticuleTexture = "reticule_00"
OrdnanceName = "com_item_powerup_dual"

ShotDelay = "1.0"
MaxItems = "4.0"

AutoAimSize = "1.0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.5"

MinStrength = "0.3"
MaxStrength = "0.4"

FireSound = "com_weap_throw"
FireEmptySound = "com_weap_inf_ammo_empty"
FireLoopSound = ""
ReloadSound = "com_weap_inf_equip_med"
ChargeSound = ""
ChargeSoundPitch = ""
ChangeModeSound = "com_weap_inf_equip_med"
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]

commone:
[code][WeaponClass]
ClassLabel = "dispenser"

[Properties]
IconTexture = "HUD_powerup_icon"

RoundsPerClip = "1"
ReloadTime = "1.0"
LockOnRange = "80.0"
LockTime = "0.4"

OffhandWeapon = 1

RefillFromItem = 0

TrackingSound = ""

WEAPONSECTION = 1

ModeTexture = "HUD_weap_health"
ReticuleTexture = "reticule_00"
OrdnanceName = "com_item_powerup_dual"

ShotDelay = "0.0"
MaxItems = "4.0"

AutoAimSize = "1.0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.5"

MinStrength = "0.3"
MaxStrength = "0.4"
MaxPressedTime = "0.0"
[/code]
Samee3
First Lance Corporal
First Lance Corporal
Posts: 123
Joined: Sun Jul 05, 2015 5:07 pm
Projects :: BF2 Refresh Mod
Games I'm Playing :: Empire at War
xbox live or psn: VaporousFern310
Location: California, USA

Re: Ammo type help?

Post by Samee3 »

As an alternative method, you could remove the power-up packs from the game completely.
Post Reply