Odfs
Moderator: Moderators
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Odfs
Yes, depending on what it is. You can use SetClassProperty() to change it ingame through the lua. Changing some things online, such as ammo counts, will crash the game.
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Odfs
Could I for example have the damage radius change or the push factor change over a period of time. From like push to pull or something like that.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Odfs
No, you can have a lua timer or event and then change the ODF value when that timer finishes or the event is triggered.
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Odfs
I'm sorry, I am trying to advance in my knowledge of scripting, so I'm trying to understand this whole thing. So, you're saying I have an odf. A timer ticks down and then a value changes. Right? How do you set this up in your odf. I think this could be very helpfull for some of the new things I'm trying to do. Such as (I'm sorry Teancum) force telekinesis. Or other things. It isn't limited to that, there are other things too.
- Eagle Eye
- First Lance Corporal

- Posts: 129
- Joined: Thu Nov 01, 2007 12:44 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Belgium
- Contact:
Re: Odfs
read the battlefront2_scripting_system doc in the documentation folder. This will help you getting an wider overview over all the battlefront 2 lua functions for finding out what u need.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Odfs
Sounds like you've got a couple problems right off the bat. If I've inferred correctly, you want to make a weapon that does push-pull-push-pull ad infinitum to do a sort've hackjob "levitate" power. It's an interesting concept but I don't think you can pull it off for a couple reasons.woner11 wrote:I'm sorry, I am trying to advance in my knowledge of scripting, so I'm trying to understand this whole thing. So, you're saying I have an odf. A timer ticks down and then a value changes. Right? How do you set this up in your odf. I think this could be very helpfull for some of the new things I'm trying to do. Such as (I'm sorry Teancum) force telekinesis. Or other things. It isn't limited to that, there are other things too.
1) You can't have multiple (or more than 2, specifically) push (or pull) effects per attack. Once you press a button to do a force push-type power, it deploys one ordnance (or two if you have a secondary ordnance) instantaneously. I'm pretty positive there's no good workaround 'cause I've played with this a lot. I wanted to make a "force whirlwind" (a la KotOR) power, which would lift the enemy up and the best I could come up with was a primary push and secondary pull, which lifts the enemy up but it only lasts for a fraction of a second.
2) Even if you could get enough pushes/pulls triggered, to constantly switch between the two to create the effect you want would require microtimers (timers lasting only a fraction of a second), which I believe is something the timers in .lua were not designed for.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Odfs
That's what I just answered. Not as far as I know.
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Odfs
This may seem unrelated, but it is. I have one quick question: What does SecondaryOrdnancePeriod = 1 mean, and what would happen if I increase the value or decrease it? If this is documented somewhere please let me know.
- SBF_Dann_Boeing
- Groove Walrus

- Posts: 1529
- Joined: Wed Aug 31, 2005 11:33 pm
- xbox live or psn: No gamertag set
- Location: An Igloo High Upon a Mountain Top
Re: Odfs
Damage and laser color can be changed over the duration of a laser's travel. Like it starts out as green laser that does 500 damage, and ends up as a red laser with 150 damage after it's travelled for a while.
Like this:
Like this:
Code: Select all
MaxDamage = "500.0"
DamageTransitionDelay = "0.2" //How long in seconds before the damage change begins.
DamageTransitionPeriod = "0.1" //How long in seconds the damage change lasts.
DamageFinalDamage = "150.0" //What the damage would be at the end of the transition period. A negative value means that no change is applied.
FadeLightColor = "1" //Whether or not the color on the light should be faded along with the damage.
EndLaserGlowColor = "160 43 43 100" //What color the laser glow will be by the end of the transition. Varies over DamageTransitionPeriod. (only for lasers.)
EndLightColor = "160 43 43 150" //What color light will be applied by the end of the transition. Varies over DamageTransitionPeriod.