Award weapon stuff

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
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Award weapon stuff

Post by JimmyAngler »

I was looking at this at saw the line MedalsTypeToUnlock = 4 ScoreForMedalsType = 4. I was wondering if instead of these lines I could put something there about unlocking the weapon on the pickup of one of my power-ups. Is there a way to collect an award weapon without scoring points?
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Award weapon stuff

Post by AnthonyBF2 »

remove those lines of code completely from the award guns you want to be free

they will be in your soldier's inventory upon spawning, and will also award the ai units with award
guns
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: Award weapon stuff

Post by Anakin »

I don't understand what you want to do.

these two lines say:

ScoreForMedalsType = 4
you can reach the medaltype 4 with this weapon (4 is the medal for the sniper). I don't know what it's called in english. for me it's (Meisterschütze). So if you make with this weapon enought headshots you get the Medal. The blue text line is shown up, and in your profile you get one point nearer to be legend :D

MedalsTypeToUnlock = 4
the line is a bit confusion, untill this will not unlock the weapon. If you have this line in an weapon odf you cannot use this weapon anymore, if you have the sniper award. Normaly you should make an award weapon that's loaded instead of it.
But you can also say hey if you make too much headshots you are not allowed to use the rocketlauncher :funny2:
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Re: Award weapon stuff

Post by willinator »

He's trying to make it so that if a person picked up a certain powerup, they would receive an award weapon based on said powerup (i.e. A rifleman could get a sniper rifle or rocket launched as a weapon, not just the award rifle). However, I don't believe it's possible, because the award system is hardcoded and use points/other weird things, and can only be assigned once per weapon.
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: Award weapon stuff

Post by Anakin »

i'm not sure about it, but i think there was someone who allready made somthing with this.

search for custom medals or custom award weapons.

if there is a way to make a custom medal type it should be easy to add this via powerup (see war heroe) and than you could change a blasterpistol to a sniperrifle.

But it will not be possible to change:
pistol to sniperrifle OR blasterrifle.

but you could make it just the way it's in RC. you take the powerup and your blasterpistol is now a roket launcher.


These are only idea how it maybe could go. That is not an tutorial. Try it and play around with it and you can find a way ;)
Post Reply