Author |
Message |
Dex98
Joined: Thu Jan 05, 2012 8:18 am Posts: 76 Location: In a Sauna, roasting to death
|
How to make an Acid Sprayer?
Title says it all... I was just wondering how to make an acid sprayer. Does it need lua? (i sure hope not... I haven´t started studying it yet .) But in the unfortunate event it does, would Someone be so kind to post the code in here? I´m pretty sure many new modders would find the code pretty useful.
|
Thu Feb 02, 2012 9:54 pm |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: How to make an Acid Sprayer?
Which kind of acid? Realistic or not? Here akblabla created a realistic one which only damages MOs and terrain made of metal. If you want to create an easier version which will melt through anything, since akblabla's one uses a lot of lua, you can just make something like a concrete sprayer but with very sharp particles.
|
Thu Feb 02, 2012 9:59 pm |
|
|
Dex98
Joined: Thu Jan 05, 2012 8:18 am Posts: 76 Location: In a Sauna, roasting to death
|
Re: How to make an Acid Sprayer?
Asklar wrote: Which kind of acid? Realistic or not? Here akblabla created a realistic one which only damages MOs and terrain made of metal. If you want to create an easier version which will melt through anything, since akblabla's one uses a lot of lua, you can just make something like a concrete sprayer but with very sharp particles. Tried the easier one, and faced another, undoubtly easily fixable broblem. The particles become terrain immediately when touching something. Is there a way to prevent this? EDIT: Never Mind. Fixed
Last edited by Dex98 on Thu Feb 02, 2012 10:24 pm, edited 1 time in total.
|
Thu Feb 02, 2012 10:15 pm |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: How to make an Acid Sprayer?
Settling instantly?
I could think about many things why that happens. Could you post the particle's code?
|
Thu Feb 02, 2012 10:21 pm |
|
|
Dex98
Joined: Thu Jan 05, 2012 8:18 am Posts: 76 Location: In a Sauna, roasting to death
|
Re: How to make an Acid Sprayer?
Asklar wrote: Settling instantly?
I could think about many things why that happens. Could you post the particle's code? Fixed it. I just didn´t make the particles sharp enough.
|
Thu Feb 02, 2012 10:26 pm |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: How to make an Acid Sprayer?
I was thinking about RestTreshold thing, but glad you fixed it!
|
Thu Feb 02, 2012 10:28 pm |
|
|
Dex98
Joined: Thu Jan 05, 2012 8:18 am Posts: 76 Location: In a Sauna, roasting to death
|
Re: How to make an Acid Sprayer?
Aaand another question: How do you attach Glows to the particles?
|
Fri Feb 03, 2012 9:10 am |
|
|
Kettenkrad
Joined: Mon Oct 25, 2010 5:51 am Posts: 1198 Location: Sydney
|
Re: How to make an Acid Sprayer?
Code: ScreenEffect = ContentFile FilePath = [filepath to glow .bmp]
//You can also adjust glow lifetime and intensity using these variables. EffectStartTime = // EffectStopTime = // EffectStartStrength = //0 - 1 EffectStopStrength = //0 - 1
|
Fri Feb 03, 2012 9:23 am |
|
|
Dex98
Joined: Thu Jan 05, 2012 8:18 am Posts: 76 Location: In a Sauna, roasting to death
|
Re: How to make an Acid Sprayer?
Kettenkrad wrote: Code: ScreenEffect = ContentFile FilePath = [filepath to glow .bmp]
//You can also adjust glow lifetime and intensity using these variables. EffectStartTime = // EffectStopTime = // EffectStartStrength = //0 - 1 EffectStopStrength = //0 - 1
Tried it. There seems to be a broblem in line 23 (Could not match Property) Could someone take a look at it?
|
Fri Feb 03, 2012 9:52 am |
|
|
Kettenkrad
Joined: Mon Oct 25, 2010 5:51 am Posts: 1198 Location: Sydney
|
Re: How to make an Acid Sprayer?
You have a space before ScreenEffect.
|
Fri Feb 03, 2012 9:54 am |
|
|
Dex98
Joined: Thu Jan 05, 2012 8:18 am Posts: 76 Location: In a Sauna, roasting to death
|
Re: How to make an Acid Sprayer?
Kettenkrad wrote: You have a space before ScreenEffect. Didn´t help
|
Fri Feb 03, 2012 9:58 am |
|
|
Kettenkrad
Joined: Mon Oct 25, 2010 5:51 am Posts: 1198 Location: Sydney
|
Re: How to make an Acid Sprayer?
Oh, derp.
Yeah technically you're trying to give the round itself a glow, add another tab before the two glow lines.
|
Fri Feb 03, 2012 10:05 am |
|
|
Dex98
Joined: Thu Jan 05, 2012 8:18 am Posts: 76 Location: In a Sauna, roasting to death
|
Re: How to make an Acid Sprayer?
Kettenkrad wrote: Oh, derp.
Yeah technically you're trying to give the round itself a glow, add another tab before the two glow lines. Yay It works!
|
Fri Feb 03, 2012 10:19 am |
|
|
|