Page 1 of 1
Jedi Meditation
Posted: Thu Oct 06, 2011 6:07 pm
by DarthXeon
Hey, im trying to make my 1st weapon and its gonna be jedi meditation. im gonna use
"cis_weap_walk_droideka_shield" and "com_weap_inf_buff,"
What would i do to mix them into 1 odf? its ok if no one knows how but there seems like theres alot of experenced modders.
--
Thanks
Re: Jedi Meditation
Posted: Thu Oct 06, 2011 6:42 pm
by Dakota
DarthXeon wrote:Hey, im trying to make my 1st weapon and its gonna be jedi meditation. im gonna use
"cis_weap_walk_droideka_shield" and "com_weap_inf_buff,"
What would i do to mix them into 1 odf? its ok if no one knows how but there seems like theres alot of experenced modders.
--
Thanks
what exactly do you want it to do...
Re: Jedi Meditation
Posted: Thu Oct 06, 2011 6:47 pm
by CressAlbane
You can't give shields to a unit through a buff, IIRC.
Re: Jedi Meditation
Posted: Thu Oct 06, 2011 7:04 pm
by Dakota
CressAlbane wrote:You can't give shields to a unit through a buff, IIRC.
someone could give the illusion of it. make a defense buff that makes the driodeka shield effect play on people hit by it. it would seem quite easy if it doesn't crash.
Re: Jedi Meditation
Posted: Thu Oct 06, 2011 7:18 pm
by DarthXeon
oh ok its fine but what i ment is when you start meditating the sheild and buff comes up but the shield stays after the buff
Re: Jedi Meditation
Posted: Thu Oct 06, 2011 7:50 pm
by Dakota
DarthXeon wrote:oh ok its fine but what i ment is when you start meditating the sheild and buff comes up but the shield stays after the buff
do you need custom meditating animations? also what type of buff, just the visual effect or powerup effects? also how do you want this shield to act?
(is confused at lack of information)
Re: Jedi Meditation
Posted: Fri Oct 07, 2011 12:49 pm
by DarthD.U.C.K.
lets start of fresh:
you want a buffweapon that gives allies a shield, right? that is not really possible in battlefront because the ordnance (whats shot and causes the damaga or whateve on units that are hit) only supports buff defense, health, offense and damage. you could however create a defensebuff and replace the buffeffect with one that looks like a shield. the problem here is that the droidekashieldeffect is unique and will most liekly not work as a normal dama7buff effect.
Re: Jedi Meditation
Posted: Sat Oct 08, 2011 1:17 pm
by DarthXeon
DarthD.U.C.K. wrote:lets start of fresh:
you want a buffweapon that gives allies a shield, right? that is not really possible in battlefront because the ordnance (whats shot and causes the damaga or whateve on units that are hit) only supports buff defense, health, offense and damage. you could however create a defensebuff and replace the buffeffect with one that looks like a shield. the problem here is that the droidekashieldeffect is unique and will most liekly not work as a normal dama7buff effect.
thats what i ment, yea
Re: Jedi Meditation
Posted: Sun Oct 09, 2011 1:34 pm
by Fiodis
Well, then,
DarthD.U.C.K. wrote:that is not really possible in battlefront because the ordnance (whats shot and causes the damaga or whateve on units that are hit) only supports buff defense, health, offense and damage.
Duck's other suggestion, about creating a powerful defense buff with a custom effect, seems like the best option. You could even make a custom effect that uses the shield msh, so it actually would look more or less like the Droideka shield.
Re: Jedi Meditation
Posted: Sun Oct 09, 2011 2:13 pm
by Dakota
Fiodis wrote:Well, then,
DarthD.U.C.K. wrote:that is not really possible in battlefront because the ordnance (whats shot and causes the damaga or whateve on units that are hit) only supports buff defense, health, offense and damage.
Duck's other suggestion, about creating a powerful defense buff with a custom effect, seems like the best option. You could even make a custom effect that uses the shield msh, so it actually would look more or less like the Droideka shield.
and maybe even attempt adding a defense or health buff.
i got an lua coding based idea but it would be hard or impossible.
use the thing for if hit by ordenance and then if hit then add shield. i don't know the exact codes since i rarely work with LUA. someone else will know though.
Re: Jedi Meditation
Posted: Sun Oct 09, 2011 2:29 pm
by Fiodis
Dakota wrote:use the thing for if hit by ordenance and then if hit then add shield. i don't know the exact codes since i rarely work with LUA. someone else will know though.
Code: Select all
shieldfunction = (
OnObjectDamage(object, damager)
if GetObjectLastHitWeaponClass(object) == FindWeaponClass("odf_of_weapon") then
SetProperty(object, "CurShield", #)
end
end
)
Might be some typos but that's it. Only thing is that the shield effect won't appear. You could contrive some LUA code to make it appear, but it'd be easier to work it into the buff's ordance odf. With that method you'd have a buff that adds a visible, working shield to a unit (though the unit won't be able to turn the shield off, heh). Only glitch would be that if the unit's shield energy runs out the effect might still be attached, lulling the formerly shielded unit into a false sense of security.
Oh, whatever weapon you use to give the shield to a unit must do at least some damage, so the LUA detects it. For that reason you might not actually want to use a buff. Probably a modified flamethrower would do, since you could still attach the shield effect to a unit as a smolder effect.
Re: Jedi Meditation
Posted: Sun Oct 09, 2011 2:39 pm
by DarthD.U.C.K.
are you sure you can simply use "curshield"? atleast for the shieldenergydisplay battlefornt would need macshield.
Re: Jedi Meditation
Posted: Sun Oct 09, 2011 2:46 pm
by Fiodis
You mean maxshield? Idk; I wasn't bothering about the display. CurShield is a valid instance property, as well as MaxShield, so it should work.
Re: Jedi Meditation
Posted: Sun Oct 09, 2011 3:05 pm
by Dakota
Fiodis wrote:You mean maxshield? Idk; I wasn't bothering about the display. CurShield is a valid instance property, as well as MaxShield, so it should work.
the idea of my weapon would get the visual effect from the weapon, the weapon could do 1 damage as a buff but then have a health buff with it that heals exactly 1 point (set the time to like 0.1 and rate to 1) if you do that and then have the LUA code then it could work.
is there an LUA code for playing an effect on a unit if shielded? if so then we could get rid of the bug of the shield appearing when not shielded.
Re: Jedi Meditation
Posted: Sun Oct 09, 2011 3:10 pm
by DarthD.U.C.K.
not without major stuffwriting in the lua that wouldnt be worth it in my opinion (and would probably not even be possible)
Re: Jedi Meditation
Posted: Sun Oct 09, 2011 3:37 pm
by Fiodis
Dakota wrote:but then have a health buff with it that heals exactly 1 point
You can't just combine two buffs; they'd have to be seperate weapons and there'd not be any way to get them to trigger each other. Nah, just have whatever you end up using do 1 damage, people can live through that.