Can't use weapon after getting tons of kills with it

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
mrcluster
Private First Class
Posts: 80
Joined: Thu Sep 01, 2016 3:41 pm
Projects :: Tatooine - Jundland Wastes
Games I'm Playing :: SWBF2
xbox live or psn: No gamertag set

Can't use weapon after getting tons of kills with it

Post by mrcluster »

One thing I just realised is that whenever I earn an "award" with my weapon and switch to my pistol, I can't switch back. This happens even though I've commented out the

Code: Select all

ScoreForMedalsType = 1
MedalsTypeToLock = 1
code in the com_weap_inf_rifle .odf (which it's derived from), and it's the same story for my pistol.
Bucman55
Private
Posts: 37
Joined: Tue Jan 09, 2018 7:01 pm
Projects :: Playable Campaign Factions
Games I'm Playing :: Star Wars games
xbox live or psn: PSN: BucMan55
Location: Texas

Re: Can't use weapon after getting tons of kills with it

Post by Bucman55 »

I used to have this issue with one of my weapons in my mod. I fixed it by disconnecting the weapon from the Blaster Rifle template and adding the following code to the weapon:
Hidden/Spoiler:
[code]ScoreForMedalsType = 0[/code]
I did the same thing for the pistol.
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: Can't use weapon after getting tons of kills with it

Post by Samee3 »

MedalsTypeToUnlock: What type of medal will unlock this weapon
MedalsTypeToLock: What type of medal will lock this weapon
ScoreForMedalsType: What type of medal you can score with this weapon

Gunslinger (Pistol, 6 kills) = 0
Frenzy (Rifle, 12 kills) = 1
Demolition (Rocket Launcher, 4 critical hits on vehicles) = 2
Technician (Fusion Cutter, 4 vehicle slices) = 3
Marksman (Sniper Rifle, 6 headshots) = 4
Regulator (Shotgun, 8 kills) = 5
Post Reply