Page 1 of 1
Awards modification?
Posted: Fri Mar 02, 2007 11:08 am
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.
RE: Awards modification?
Posted: Fri Mar 02, 2007 4:21 pm
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.
RE: Awards modification?
Posted: Fri Mar 02, 2007 4:33 pm
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.
RE: Awards modification?
Posted: Fri Mar 02, 2007 5:40 pm
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
RE: Awards modification?
Posted: Fri Mar 02, 2007 6:44 pm
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.
RE: Awards modification?
Posted: Fri Mar 02, 2007 6:57 pm
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
Posted: Fri Mar 02, 2007 7:58 pm
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.
Posted: Fri Mar 02, 2007 8:06 pm
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
Posted: Fri Mar 02, 2007 8:25 pm
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.
Posted: Fri Mar 02, 2007 8:30 pm
by phazon_elite
Hard-coded? Dang. I don't think this is possible, Arc_Commander.
- EP-000782
Posted: Fri Mar 02, 2007 9:39 pm
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.
Posted: Fri Mar 02, 2007 10:03 pm
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
Posted: Fri Mar 02, 2007 10:27 pm
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.
Posted: Fri Mar 02, 2007 10:42 pm
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
Posted: Sat Mar 03, 2007 10:54 am
by ARC_Commander
Thanks. And I was wrong - the RC has AddShield, not AddHealth.
