View unanswered posts | View active topics It is currently Sat Dec 28, 2024 4:47 pm



Reply to topic  [ 13 posts ] 
 How to make an Acid Sprayer? 
Author Message
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post 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.


Thu Feb 02, 2012 9:54 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
Profile
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
Profile
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
Profile
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Oct 25, 2010 5:51 am
Posts: 1198
Location: Sydney
Reply with quote
Post 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
Profile
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post 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 144 times
Fri Feb 03, 2012 9:52 am
Profile
User avatar

Joined: Mon Oct 25, 2010 5:51 am
Posts: 1198
Location: Sydney
Reply with quote
Post Re: How to make an Acid Sprayer?
You have a space before ScreenEffect.


Fri Feb 03, 2012 9:54 am
Profile
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Oct 25, 2010 5:51 am
Posts: 1198
Location: Sydney
Reply with quote
Post 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
Profile
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post 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!


Fri Feb 03, 2012 10:19 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.034s | 16 Queries | GZIP : Off ]