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?
Re: Applying Custom Buff to Teammates
Posted: Sun Aug 07, 2011 12:40 am
by Maveritchell
Buff effects are stored in unit .odfs. Look in com_inf_default.odf.
Re: Applying Custom Buff to Teammates
Posted: Sun Aug 07, 2011 1:16 am
by wishihadaname
Doesn't look like it. Here is com_inf_default.odf there are no lines in there refering to buffed effects.
Hidden/Spoiler:
[GameObjectClass]
// Base class for all soldiers, inherits from base type soldier
ClassLabel = "soldier"
// Movement defaults
// These are values for an average class - some soldiers will override these
MaxSpeed = 7.0 // base forward speed
MaxStrafeSpeed = 5.25 // base right/left speed
MaxTurnSpeed = 5.0 // base turn speed
JumpHeight = 1.78 // base jump height in meters
// Speed multipliers for various actions
JumpForwardSpeedFactor = 1.3 // boost forward part of velocity by this factor when jumping
JumpStrafeSpeedFactor = 1.0 // boost side/backward part of velocity by this factor when jumping
RollSpeedFactor = 1.5 // in forward arc, boost speed by this factor when rolling
// Apparently contant for all or most classes:
Acceleration = 70.0 // accelerate to full run in about 7/70 = 0.1 seconds
SprintAccelerateTime = 0.35 // accelerate from run to sprint in this time
// ControlSpeed = "<stance> <thrustfactor> <strafefactor> <turnfactor>"
// For grounded states (stand, crouch, prone, sprint) and jet state,
// in which the thrust/strafe stick controls the player's velocity,
// these values are multipliers on the max speed and acceleration.
// For flying states (jump, roll, tumble), in which the thrust/strafe stick
// applies an acceleration, these values only multiply the acceleration.
ControlSpeed = "stand 1.00 1.00 1.00"
ControlSpeed = "crouch 0.70 0.60 1.00"
ControlSpeed = "prone 0.30 0.20 0.50"
ControlSpeed = "sprint 1.50 0.50 0.35"
ControlSpeed = "jet 0.30 0.30 1.00"
ControlSpeed = "jump 0.03 0.03 0.35"
ControlSpeed = "roll 0.02 0.02 0.35"
ControlSpeed = "tumble 0.00 0.00 0.10"
// Energy bar defaults
EnergyBar = 120.0 // Max energy
EnergyRestore = 10.0 // energy regained per second if moving
EnergyRestoreIdle = 15.0 // energy regained per second if not
EnergyDrainSprint = 20.0 // energy spent per second of sprinting
EnergyMinSprint = 20.0 // min energy to start sprinting
EnergyCostJump = 0.0 // energy cost to jump
EnergyCostRoll = 25.0 // energy cost to roll
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.
Re: Applying Custom Buff to Teammates
Posted: Sun Aug 07, 2011 2:50 am
by Maveritchell
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.
Re: Applying Custom Buff to Teammates
Posted: Sun Aug 07, 2011 1:22 pm
by wishihadaname
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.
Re: Applying Custom Buff to Teammates
Posted: Sun Aug 07, 2011 1:40 pm
by Maveritchell
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.
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.
Re: Applying Custom Buff to Teammates
Posted: Sun Aug 07, 2011 2:54 pm
by wishihadaname
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.