Awards modification?

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
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Awards modification?

Post by ARC_Commander »

Is it possible to change the effect that an award gives? For example, would you be able to have Marksman give you health regen instead of the award rifle? Help would be appreciated.
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

RE: Awards modification?

Post by Caleb1117 »

Logicly, it seems possable, perhaps editing award weapons so they add a hp regen effect, in theory its possable. However I do NOT know for sure.
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Awards modification?

Post by ARC_Commander »

Thanks. In theory, it should work the same as say, the Guardian award - that does, in essence, give the user an individual defense buff - so maybe I could copy over the Guardian code into Frenzy. If there is a line of code referring to the defense buff, possibly I could change that to refer to the regeneration buff. I'm definitely going to release this as a mod if I can get it to work.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

RE: Awards modification?

Post by phazon_elite »

But if this does work, it wont work online. If you edit any properties of units or weapons, you have lost your online compatability. BUT, if you edit skins, laser textures, or the size of a laser (like making it look like Majin's bolt), it'll work. I checked...

But I can't find any odf for these awards. I'd tell you if I could...

- EP-000782
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Awards modification?

Post by ARC_Commander »

I believe that they're located in ingame.req or ingame.lua or something like that...

And I don't play online (don't ask), so it wouldn't really matter. Thanks for the warning, though.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

RE: Awards modification?

Post by phazon_elite »

I know the name is in the ingame.req. I'm talking about the properties of the award. I checked the .fx file, and still no luck. Hmmm...

- EP-000782
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: happy fun island

Post by Syth »

Its easy, just look at the ODFs in the assets

Heres the line from the sniper rifle
ScoreForMedalsType = 4
MedalsTypeToLock = 4
Heres the line from the award sniper
MedalsTypeToUnlock = 4
ScoreForMedalsType = 4
pretty simple to figure out. the little number it uses (in this case, 4) tells how you unlock it . The rifle uses a "1" the pistol "0" the rocket launcher uses "2" and so on. Just look at the assets.

Ive tried changing the scores (so you could unlock the award sniper with maybe 1 head shot) but i couldnt figure it out.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post by phazon_elite »

I, and probably most people do, know that. I think Arc here wants to make a sniper award that also give you a health regen.

- EP-000782
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: happy fun island

Post by Syth »

oh.
i thought he was talking about the bothans regen
im 99% sure the non-weapon awards are hard coded. Ive never found anything in any of mod tools regaurding them.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post by phazon_elite »

Hard-coded? Dang. I don't think this is possible, Arc_Commander.

- EP-000782
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by ARC_Commander »

D'oh. But wait a minute... I've seen units that have automatic health regen (Hypori: Grievous Attacks - the Jedi units). So if I knew how to give units regen, possibly I could make the award do this?

And then there's the Technician award. If it's not hard-coded too, possibly I could copy and modify it to give the player health regen?

And by the way, it doesn't have to be a sniper award. Any award will do, that was just an example.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post by phazon_elite »

Ah, Hypori, one of the most popular maps of SWBF2 ever.

Anyway, enough dreaming about complete ownage of SBD's. Back to business.

You can make a unit do that easily. Just put this in the odf:

Code: Select all

AddHealth = "[insert number under 99999 here]"
But I doubt you can make a weapon heal yourself as you fire...unless that was its sole purpose.

- EP-000782
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by ARC_Commander »

Ah... I see. Actually, I've been researching this, and it turns out you can make a weapon do exactly that. It goes in the ord file, and here's what it is:

Code: Select all

PlayEffectOnOwner = "insert buff name here - com_sfx_buff_regen in my case"
I haven't tried it yet. Hopefully, it should work.

And about that AddHealth thing - are you sure that's not like the combat shielding bonus in GC mode? Because I believe that Majin's RC has exactly that line in its code, but they don't have regen.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post by phazon_elite »

No, AddHealth means regen. I don't know how to do that crazy mumbo jumbo in GC. That mode crashes for me now anyways (I swear GC was 10x more complex than the Hoth Campaign LUA).

Also, AddShield is Regen of shielding.

- EP-000782
ARC_Commander
High General
High General
Posts: 838
Joined: Tue Feb 06, 2007 7:18 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by ARC_Commander »

Thanks. And I was wrong - the RC has AddShield, not AddHealth. :oops:
Post Reply