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

Private Second Class
User avatar
Posts: 69
Joined: Thu Sep 01, 2016 3:41 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2
xbox live or psn: No gamertag set

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

Postby mrcluster » Sat Jan 27, 2018 10:36 am

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.

Private
User avatar
Posts: 36
Joined: Tue Jan 09, 2018 7:01 pm
Location: Texas
Projects :: Playable Campaign Factions
Games I'm Playing :: Star Wars games
xbox live or psn: PSN: BucMan55

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

Postby Bucman55 » Sat Jan 27, 2018 12:49 pm

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: Select all
ScoreForMedalsType = 0


I did the same thing for the pistol.

Second Lance Corporal
User avatar
Posts: 110
Joined: Sun Jul 05, 2015 5:07 pm
Location: California, USA
Projects :: BF2 Refresh Mod
Games I'm Playing :: Empire at War
xbox live or psn: VaporousFern310

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

Postby Samee3 » Fri Feb 02, 2018 5:35 pm

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

Return to SWBF2 Modding

Who is online

Users browsing this forum: No registered users and 1 guest