Jedi Meditation

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
DarthXeon
Banned
Posts: 84
Joined: Mon Sep 19, 2011 5:41 pm
Projects :: I move fast... Lightning fast...
Games I'm Playing :: Hmm... I wonder...
Location: In A Nearby Solar System

Jedi Meditation

Post 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
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Jedi Meditation

Post 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...
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Jedi Meditation

Post by CressAlbane »

You can't give shields to a unit through a buff, IIRC.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Jedi Meditation

Post 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.
User avatar
DarthXeon
Banned
Posts: 84
Joined: Mon Sep 19, 2011 5:41 pm
Projects :: I move fast... Lightning fast...
Games I'm Playing :: Hmm... I wonder...
Location: In A Nearby Solar System

Re: Jedi Meditation

Post 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
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Jedi Meditation

Post 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)
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Jedi Meditation

Post 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.
User avatar
DarthXeon
Banned
Posts: 84
Joined: Mon Sep 19, 2011 5:41 pm
Projects :: I move fast... Lightning fast...
Games I'm Playing :: Hmm... I wonder...
Location: In A Nearby Solar System

Re: Jedi Meditation

Post 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
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Jedi Meditation

Post 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.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Jedi Meditation

Post 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.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Jedi Meditation

Post 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.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Jedi Meditation

Post by DarthD.U.C.K. »

are you sure you can simply use "curshield"? atleast for the shieldenergydisplay battlefornt would need macshield.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Jedi Meditation

Post 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.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: Jedi Meditation

Post 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.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Jedi Meditation

Post 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)
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Jedi Meditation

Post 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.
Post Reply