Data Realms Fan Forums
http://45.55.195.193/

How to make an Acid Sprayer?
http://45.55.195.193/viewtopic.php?f=1&t=29836
Page 1 of 1

Author:  Dex98 [ Thu Feb 02, 2012 9:54 pm ]
Post subject:  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 :oops: .)
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.

Author:  Asklar [ Thu Feb 02, 2012 9:59 pm ]
Post subject:  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.

Author:  Dex98 [ Thu Feb 02, 2012 10:15 pm ]
Post subject:  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

Author:  Asklar [ Thu Feb 02, 2012 10:21 pm ]
Post subject:  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?

Author:  Dex98 [ Thu Feb 02, 2012 10:26 pm ]
Post subject:  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.

Author:  Asklar [ Thu Feb 02, 2012 10:28 pm ]
Post subject:  Re: How to make an Acid Sprayer?

I was thinking about RestTreshold thing, but glad you fixed it!

Author:  Dex98 [ Fri Feb 03, 2012 9:10 am ]
Post subject:  Re: How to make an Acid Sprayer?

Aaand another question: How do you attach Glows to the particles?

Author:  Kettenkrad [ Fri Feb 03, 2012 9:23 am ]
Post subject:  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

Author:  Dex98 [ Fri Feb 03, 2012 9:52 am ]
Post subject:  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?

Attachments:
Sprayers.ini [4.72 KiB]
Downloaded 143 times

Author:  Kettenkrad [ Fri Feb 03, 2012 9:54 am ]
Post subject:  Re: How to make an Acid Sprayer?

You have a space before ScreenEffect.

Author:  Dex98 [ Fri Feb 03, 2012 9:58 am ]
Post subject:  Re: How to make an Acid Sprayer?

Kettenkrad wrote:
You have a space before ScreenEffect.

Didn´t help :(

Author:  Kettenkrad [ Fri Feb 03, 2012 10:05 am ]
Post subject:  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.

Author:  Dex98 [ Fri Feb 03, 2012 10:19 am ]
Post subject:  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 :D
It works!

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/