Award Weapons

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
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Award Weapons

Post by Dakota »

i need to know if there is some sort of way to make it so that if you unlock an award weapon then it will always be unlocked (for the rest of the map at least). it would be like the 30 second grace period but longer, as in forever, and would last through more than one death. does anyone know how to do this?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Award Weapons

Post by Fiodis »

That happens automatically when you unlock "Legendary" status or something. I'm not sure if you can do it otherwise.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Award Weapons

Post by THEWULFMAN »

Fiodis wrote:That happens automatically when you unlock "Legendary" status or something.

It's been awhile, but I think you hit Legendary around 60 medals or so, I forget. Fiodis is right, when you reach Lengendary status in that award you start the match with the award and keep it forever.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Award Weapons

Post by DarthD.U.C.K. »

im rather sure the awardsystem is hardcoded becuase its works together with the profilestats and ive never seen or heard of any script for it.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Award Weapons

Post by CressAlbane »

You could possibly simulate this effect through LUA. Use SetProperty to change the weaponname of the slot that would be replaced by the award weapon. You would have to respawn, though.

I may be wrong about using SetProperty in conjunction with WeaponName, though.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Award Weapons

Post by Dakota »

let me rephase this.

i need this to work on multiplayer and i need it to make you have to unlock the award at least once then you can have it the rest of the match. would there be anyway to do this or as duck said is it hardcoded?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Award Weapons

Post by Fiodis »

CressAlbane wrote:I may be wrong about using SetProperty in conjunction with WeaponName, though.
You're close; it's SetClassProperty rather than SetProperty.

And that wouldn't work on MP. As duck said, the awards system is probably hardcoded, though whether you can achieve what you want through some other means I don't know.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Award Weapons

Post by CressAlbane »

Fiodis wrote:
CressAlbane wrote:I may be wrong about using SetProperty in conjunction with WeaponName, though.
You're close; it's SetClassProperty rather than SetProperty.

And that wouldn't work on MP. As duck said, the awards system is probably hardcoded, though whether you can achieve what you want through some other means I don't know.
Thanks. I've been wondering why SetProperty didn't work sometimes. :thumbs:
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Award Weapons

Post by Dakota »

Fiodis wrote:
CressAlbane wrote:I may be wrong about using SetProperty in conjunction with WeaponName, though.
You're close; it's SetClassProperty rather than SetProperty.

And that wouldn't work on MP. As duck said, the awards system is probably hardcoded, though whether you can achieve what you want through some other means I don't know.
ok then, i guess people will just need to be extra careful if they get an award.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Award Weapons

Post by Fiodis »

CressAlbane wrote:
Fiodis wrote:
CressAlbane wrote:I may be wrong about using SetProperty in conjunction with WeaponName, though.
You're close; it's SetClassProperty rather than SetProperty.

And that wouldn't work on MP. As duck said, the awards system is probably hardcoded, though whether you can achieve what you want through some other means I don't know.
Thanks. I've been wondering why SetProperty didn't work sometimes. :thumbs:
SetClassProperty works on most things in an odf file, and it affects the entire class of units with that odf. Changes made via SetClassProperty will require a unit to respawn (or at least re-enter and exit a CP) to take effect.

SetProperty only works with instance properties. Instance properties are properties of single units/objects, and don't require a unit to respawn before taking effect. A list of valid instance properties can be found in Battlefront2_scripting_system.doc. Also,
AceMastermind wrote:
DarthD.U.C.K. wrote:...i discovered that you could put any ODF property under the [InstanceProperties] tag and they would become editable in ZE...
There's nothing in the documentation that says you can't do this but it's cool to know you can. Instance properties allow you to customize specific objects in ZE, for example if you place a destructable crate ODF in ZE 10 times and you want 1 of those crates to have a different MaxHealth value than the other 9 then you can customize this property for that particular crate instance. You can't just use any ODF property though, the properties you use must be supported by whatever classlabel that object ODF uses.
Hope that clears things up. :D
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Award Weapons

Post by THEWULFMAN »

Hidden/Spoiler:
[quote="Fiodis"]SetClassProperty works on most things in an odf file, and it affects the entire class of units with that odf. [/quote]

Just to be a stickler, their are exceptions to the "Changes made via SetClassProperty will require a unit to respawn (or at least re-enter and exit a CP) to take effect." rule. I'm not sure how many exceptions there are, but I know of one. Changing an addon via SetClassProperty will change it across the entire class, without needing to respawn.

However Fiodis did a great job of explaining the difference between SetClassProperty and SetProperty. I personally have more use in my mods for SetProperty, for instance I use it to change the plant's model depending on the weather, so that they glow at night. The only issue is you have to do it for every plant, and there is like 150 plants.
:runaway:
Ontopic: The real solution to this is to have everyone who plays go and get legendary in the weapons. Hardcore players can do it in a couple days(I know, I did it on the PS2 :wink: )
Matter of fact, I was pretty sure someone made a mod designed for getting loads of awards.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Award Weapons

Post by DarthD.U.C.K. »

THEWULFMAN wrote: I personally have more use in my mods for SetProperty, for instance I use it to change the plant's model depending on the weather, so that they glow at night. The only issue is you have to do it for every plant, and there is like 150 plants
that makes me wonder why you dont use classproperty on them?!
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Award Weapons

Post by THEWULFMAN »

DarthD.U.C.K. wrote:
THEWULFMAN wrote: I personally have more use in my mods for SetProperty, for instance I use it to change the plant's model depending on the weather, so that they glow at night. The only issue is you have to do it for every plant, and there is like 150 plants
that makes me wonder why you dont use classproperty on them?!
Well I doubted it would work. Like Fiodis said, it would need to respawn. Unless props work entirely different with SetClassProperty.
Post Reply