Applying Custom Buff to Teammates
Moderator: Moderators
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Applying Custom Buff to Teammates
So I did a bit of digging and seem to have discovered that the PlayEffectOnOwner = "whatever" line doesn't actually determine the effect on buffed parties but the effect that the buffing party plays upon firing the buff. My reasoning is that when I attempted to add my custom buffs, only my character was the one having the effect on them, even though other nearby friendlies had the obvious benefits. Also, if you look at the stock assets for buffs, there is a buff effect and a buffed effect. The buff effect is the multicolored rings which indicate that a buff was fired, the buffed effect is the various effects that appear on the player when he is buffed. All of the stock assets use the PlayEffectOnOwner line with the buff effect (the rings indicating a buff was initiated). I can't find where the buffed effects are mentioned, maybe i'm missing something. Although, logically speaking, the buffed effects must be referenced somewhere. Could someone help me out here? How do I get custom effects to show up on buffed teammates?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Applying Custom Buff to Teammates
Buff effects are stored in unit .odfs. Look in com_inf_default.odf.
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Applying Custom Buff to Teammates
Doesn't look like it. Here is com_inf_default.odf there are no lines in there refering to buffed effects.
Is there a specific line I have to add? The value doesn't seem to appear any further up the hierarchy either.
Hidden/Spoiler:
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Applying Custom Buff to Teammates
It's in some default .odf, I'm sure. In any case, it's listed in the "ODF Parameters" doc - always a good starting point:
BuffHealthEffect = " "
HealthGainEffect = " "
DebuffEffect = " "
BuffOffenseEffect= " "
BuffDefenseEffect= " "
...etc
BuffHealthEffect = " "
HealthGainEffect = " "
DebuffEffect = " "
BuffOffenseEffect= " "
BuffDefenseEffect= " "
...etc
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Applying Custom Buff to Teammates
I looked up the functions and added them to the all_inf_default and imp_inf_default. Here is the alliance example
The results were more of the same, no errors either. Also, I looked in every single default in the moddable assets and these lines never show up. *edit* fixed a small typo.
Hidden/Spoiler:
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Applying Custom Buff to Teammates
Don't apply it to a middle level in a parent hierarchy. Go up to the highest level (whatever your base parent class is) and add it in there.
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Applying Custom Buff to Teammates
To be thorough, i've added said lines to every level of the soldier hierarchy (one level at a time had the lines active) and it still doesn't work. I must be missing something here. Also, howcome those lines are never actually used in the defaul assets? It seems almost like there is a part of the soldier hierarchy thats hard coded and contains such details.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Applying Custom Buff to Teammates
If you can't make it work that way (for whatever reason), you can always simply change the default-named effects and load them in through a custom ingame.lvl.wishihadaname wrote:To be thorough, i've added said lines to every level of the soldier hierarchy (one level at a time had the lines active) and it still doesn't work. I must be missing something here. Also, howcome those lines are never actually used in the defaul assets? It seems almost like there is a part of the soldier hierarchy thats hard coded and contains such details.
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
Re: Applying Custom Buff to Teammates
I just realized what the problem is. I used zerteds v1.3 patch to remove vet effects and aparrently it also makes it impossible to see buff effects. They work fine in campaign mode, but are invisible in conquest mode. Go figure. Thanks for the help though.
