Awards modification?
Moderator: Moderators
-
ARC_Commander
- High General

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Awards modification?
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?
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

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: Awards modification?
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.
- phazon_elite
- Rebel Colonel

- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- 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?
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
But I can't find any odf for these awards. I'd tell you if I could...
- EP-000782
-
ARC_Commander
- High General

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: Awards modification?
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.
And I don't play online (don't ask), so it wouldn't really matter. Thanks for the warning, though.
- phazon_elite
- Rebel Colonel

- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- 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?
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
- EP-000782
-
Syth
- General

- Posts: 784
- Joined: Thu Apr 13, 2006 8:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: happy fun island
Its easy, just look at the ODFs in the assets
Heres the line from the sniper rifle
Ive tried changing the scores (so you could unlock the award sniper with maybe 1 head shot) but i couldnt figure it out.
Heres the line from the sniper rifle
Heres the line from the award sniperScoreForMedalsType = 4
MedalsTypeToLock = 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.MedalsTypeToUnlock = 4
ScoreForMedalsType = 4
Ive tried changing the scores (so you could unlock the award sniper with maybe 1 head shot) but i couldnt figure it out.
- phazon_elite
- Rebel Colonel

- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- 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:
-
Syth
- General

- Posts: 784
- Joined: Thu Apr 13, 2006 8:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: happy fun island
- phazon_elite
- Rebel Colonel

- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- 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:
-
ARC_Commander
- High General

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
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.
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.
- phazon_elite
- Rebel Colonel

- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- 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:
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:
But I doubt you can make a weapon heal yourself as you fire...unless that was its sole purpose.
- EP-000782
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]"- EP-000782
-
ARC_Commander
- High General

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
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:
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.
Code: Select all
PlayEffectOnOwner = "insert buff name here - com_sfx_buff_regen in my case"
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.
- phazon_elite
- Rebel Colonel

- Posts: 597
- Joined: Tue Jan 16, 2007 9:10 pm
- Projects :: No Mod project currently.
- 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:
-
ARC_Commander
- High General

- Posts: 838
- Joined: Tue Feb 06, 2007 7:18 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
