OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: dmakatra on 24 Jun 2004, 22:18:11

Title: Rain Drop Effect Script
Post by: dmakatra on 24 Jun 2004, 22:18:11
Hello!

This script ain't nessecary much but I think it really impresses the player when he sees it (kinda like Vektorbosons chopper dust). It creates drop particles to rainy missions. I've attatched a zip file with a test mission and the script it self.

It is NOT MP compatible.

:beat: *Gets Shot* :beat:
Title: Re:Rain Drop Effect Script
Post by: j-man on 24 Jun 2004, 23:11:28
I'm gona try this one out. BTW, how much lag does this cause?
Title: Re:Rain Drop Effect Script
Post by: dmakatra on 25 Jun 2004, 08:04:56
It's in a very fast loop and it creates a large number of particles each second. However, the particles gets deleted very fast and you can lower down both range and heavyness to reduce lag.

:beat: *Gets Shot* :beat:

EDIT: Actually, I came up with this idea a year ago, when I just read Vektorbosons tute about Drop effects. I had some problems with getting it working then. So I picked it up now recentley yesterday and got it working. So there ain't much "pretty" code as most code is noob code from a year ago.
Title: Re:Rain Drop Effect Script
Post by: Uldics on 25 Jun 2004, 09:52:25
The original rain in OFP is just in one plane some 2 m in front of the player. When using 3d glasses it's very unrealistic to see rain only at one distance from your face. So this would be a very good solution to that.
Title: Re:Rain Drop Effect Script
Post by: sim on 25 Jun 2004, 21:17:05
hey

Sounds nice, I'll test it later... :)

sim
Title: Re:Rain Drop Effect Script
Post by: DBR_ONIX on 29 Jun 2004, 19:35:05
Dito what sim said ;)
It take it doesn't lag your comp, Armsty? What sorta spec?
- Ben
Title: Re:Rain Drop Effect Script
Post by: dmakatra on 29 Jun 2004, 19:49:05
3 GHZ so I can't be sure there. :P

But as I said, you don't really need a greater distance than 5 meter and it can be set that low so it shouldn't be a problem

:beat: *Gets Shot* :beat:
Title: Re:Rain Drop Effect Script
Post by: Nemesis6 on 30 Jun 2004, 02:10:25
Very nice. Could you make it water compatible, too? I could do this myself, but I guess I'm too lazy! :-/
Title: Re:Rain Drop Effect Script
Post by: dmakatra on 30 Jun 2004, 09:45:04
Cheers for your input but I'm not sure what you mean? Water compatible?

:beat: *Gets Shot* :beat:
Title: Re:Rain Drop Effect Script
Post by: DBR_ONIX on 30 Jun 2004, 13:46:27
Maybe he means when it hits water, is splashes or something?
Oh, could the script be modified to look like snow?

I've gotta learn the drop command one day ::)
:P

Oh, I tried it, but it didn't work that well as (I think this is the problem) I was using the FDF mod..
I'll try running it without the mod today at somepoint
- Ben
Title: Re:Rain Drop Effect Script
Post by: dmakatra on 30 Jun 2004, 14:36:53
Snow don't exactly splash but I can create snow dingling down if you want to.

:beat: *Gets Shot* :beat:
Title: Re:Rain Drop Effect Script
Post by: Cool Z on 01 Jul 2004, 14:36:09
Am I right in guessing that some of the Ballistic addon demo missions use a custom rain script??
Title: Re:Rain Drop Effect Script
Post by: Nemesis6 on 01 Jul 2004, 15:19:20
Nope.
Title: Re:Rain Drop Effect Script
Post by: FormatC on 14 Jul 2004, 14:37:43
Ive tried this running my PC with,  gf-5700fx ,512ddr and 2gig processor.
I gotta say this is fantastic.. the splash effects are great and the rain really does make you wanna stay in doors.. Im using it with my own added sound effects on my campaign on tonali.  The rainy season looks so good now Im using this. thx for the script its pretty much lag free and was exactly what I was looking for. 8) 8)
All we need next is a swirling sandstorm using same amount of particles and my weather needs will be complete.  ;D 8)
great job
Title: Re:Rain Drop Effect Script
Post by: dmakatra on 14 Jul 2004, 19:50:33
Glad you liked it. The sandstorm could be much harder. I'll see what I can do though.

:beat: *Gets Shot* :beat:
Title: Re:Rain Drop Effect Script
Post by: DBR_ONIX on 14 Jul 2004, 20:27:36
How 'bout a really high wind script.. Like in all those "Worst Holidays" type programs, when theres tornados
Maybe just below hurican level (No vehicles flying around)

No idea if that is possible, just a random idea I had :P

Anyway, I forrgot to retest this with out the FDF mod on ::)
Sorry ::)

Will test soon
- Ben
Title: Re:Rain Drop Effect Script
Post by: Nosferatus on 18 Sep 2004, 01:02:27
Anybody knows where can i download that hurricane tornado script?
Title: Re:Rain Drop Effect Script
Post by: DBR_ONIX on 18 Sep 2004, 13:33:40
I was suggesting that someone makes that ::)
There was a tornado (Weather, not the plane) on ofp.info awhile ago I'm sure
- Ben
Title: Re:Rain Drop Effect Script
Post by: The-Architect on 13 Nov 2004, 10:01:03
Looks stunning in the daytime but not so sure about night. My eyes kind of keep focusing on the rain in the background. Getting me dizzy. :o

What about doing something to make it fade in/out?
Title: Re:Rain Drop Effect Script
Post by: The-Architect on 13 Nov 2004, 10:08:58
Scratch that last part. Doh!
Title: Re:Rain Drop Effect Script
Post by: dmakatra on 19 Nov 2004, 08:47:40
You're free to edit as you like. It's a lost project. Just gimme credits. :)

:beat: *Gets Shot* :beat:
Title: Re:Rain Drop Effect Script
Post by: CptBravo on 23 Nov 2004, 04:12:24
Snow don't exactly splash but I can create snow dingling down if you want to.

:beat: *Gets Shot* :beat:

Snow would be Grrrrrrrrrrreat!! :)
I need one baaadly for my snow map.

Cheers!

By the way .. your rain drops seem to work ok in MP! We have tried it in a LAN game and it worked grrreat!  ;D

Title: Re:Rain Drop Effect Script
Post by: dmakatra on 23 Nov 2004, 15:05:55
Snow would be Grrrrrrrrrrreat!! :)
I need one baaadly for my snow map.

Maybe some other day. Rather busy now. :-\

Quote
By the way .. your rain drops seem to work ok in MP! We have tried it in a LAN game and it worked grrreat!  ;D

Never really expected it to be used... :P

Anyway, the reason I said it was not MP compatible was because I don't know squat about MP and I didn't make any changes to satisfy MP.

:beat: *Gets Shot* :beat:
Title: Re:Rain Drop Effect Script
Post by: Nemesis6 on 24 Nov 2004, 07:28:40
Well, there is already a snow script - it's included in Kegetys Winter Nogojev island. I'll extract it for you when I get back, at least if no-one else has. You could also do it yourself, just get PBO decrypter 1.5 from ofp.info's Utilities section and just decompile the Winter Nogojev addon.

Also, I was wondering - Since the rain-drop effect appears inside houses, too, wouldn't it be possible to check if the 2d position for the rain drop contains any objects? To give a poor example -

_x = (getpos _unit select 0)
_y = (getpos _unit select 1)

[_x + random 10 - random 10,_y + random 10 - random 10,10]

? nearestObject... ---- but then again, that wouldn't work... But if you could just check of if the position in question has any object(s) at its position...

Once again, just thinking out loud...




Title: Re:Rain Drop Effect Script
Post by: dmakatra on 24 Nov 2004, 15:34:07
Feel free to try. As I've said, it's a lost project.

IMO, I don't think that would be very succesfull at all. Better would be to let the mission maker define the houses. Kinda like LCDs hidden body script (in beta testing forum, like way down) .

:beat: *Gets Shot* :beat:
Title: Re:Rain Drop Effect Script
Post by: CptBravo on 25 Nov 2004, 02:09:55
Hey Nemesis6,

If you could extract it that would be great! I am not that good at opening pbos :(

Cheers.
Title: Re:Rain Drop Effect Script
Post by: Nemesis6 on 27 Nov 2004, 17:28:48
No problem! :)

[density] exec "snow.sqs"

Here's the snow script -

Title: Re:Rain Drop Effect Script
Post by: CptBravo on 28 Nov 2004, 18:49:31
Thank you very very much! :)
Title: Re:Rain Drop Effect Script
Post by: Crassus on 12 Dec 2004, 18:19:38
Nice work.

I've noticed a couple of interesting effects.  The rain keeps falling after Aborting the mission, and clicking Preview again. Also, the rain keeps falling after clearing out the Editor and using a fresh map. I cleared the demo, placed only a player unit on the map, and hit Preview--the rain was still falling. Any idea what's causing this?
Title: Re:Rain Drop Effect Script
Post by: dmakatra on 13 Dec 2004, 16:01:42
Might be a bug with the drop command. Certianly not my work anyway.

:beat: *Gets Shot* :beat: