Page 1 of 1

Ammo type help?

Posted: Fri Jul 22, 2016 10:21 pm
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)

Re: Ammo type help?

Posted: Fri Jul 22, 2016 11:32 pm
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.

Re: Ammo type help?

Posted: Sat Jul 23, 2016 4:19 am
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]

Re: Ammo type help?

Posted: Sat Jul 23, 2016 2:18 pm
by Samee3
As an alternative method, you could remove the power-up packs from the game completely.