Home   Help Search Login Register  

Author Topic: Rain Drop Effect Script  (Read 5633 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Rain Drop Effect Script
« 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:
« Last Edit: 24 Jun 2004, 22:18:40 by The real Armstrong »

j-man

  • Guest
Re:Rain Drop Effect Script
« Reply #1 on: 24 Jun 2004, 23:11:28 »
I'm gona try this one out. BTW, how much lag does this cause?

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Rain Drop Effect Script
« Reply #2 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.
« Last Edit: 25 Jun 2004, 08:07:13 by The real Armstrong »

Uldics

  • Guest
Re:Rain Drop Effect Script
« Reply #3 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.

Offline sim

  • Members
  • *
  • Hot! Real hot! Damn Hot!
Re:Rain Drop Effect Script
« Reply #4 on: 25 Jun 2004, 21:17:05 »
hey

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

sim
The Unsung Campaign Team Leader

DBR_ONIX

  • Guest
Re:Rain Drop Effect Script
« Reply #5 on: 29 Jun 2004, 19:35:05 »
Dito what sim said ;)
It take it doesn't lag your comp, Armsty? What sorta spec?
- Ben

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Rain Drop Effect Script
« Reply #6 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:

Offline Nemesis6

  • Members
  • *
Re:Rain Drop Effect Script
« Reply #7 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! :-/
I am actually flying into a star... this is incredible!

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Rain Drop Effect Script
« Reply #8 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:
« Last Edit: 30 Jun 2004, 09:45:37 by The real Armstrong »

DBR_ONIX

  • Guest
Re:Rain Drop Effect Script
« Reply #9 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

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Rain Drop Effect Script
« Reply #10 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:

Cool Z

  • Guest
Re:Rain Drop Effect Script
« Reply #11 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??

Offline Nemesis6

  • Members
  • *
Re:Rain Drop Effect Script
« Reply #12 on: 01 Jul 2004, 15:19:20 »
Nope.
I am actually flying into a star... this is incredible!

FormatC

  • Guest
Re:Rain Drop Effect Script
« Reply #13 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

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Rain Drop Effect Script
« Reply #14 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:

DBR_ONIX

  • Guest
Re:Rain Drop Effect Script
« Reply #15 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

Nosferatus

  • Guest
Re:Rain Drop Effect Script
« Reply #16 on: 18 Sep 2004, 01:02:27 »
Anybody knows where can i download that hurricane tornado script?

DBR_ONIX

  • Guest
Re:Rain Drop Effect Script
« Reply #17 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

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Rain Drop Effect Script
« Reply #18 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?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Rain Drop Effect Script
« Reply #19 on: 13 Nov 2004, 10:08:58 »
Scratch that last part. Doh!
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Rain Drop Effect Script
« Reply #20 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:

CptBravo

  • Guest
Re:Rain Drop Effect Script
« Reply #21 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

« Last Edit: 23 Nov 2004, 04:33:01 by Captain Bravo »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Rain Drop Effect Script
« Reply #22 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:

Offline Nemesis6

  • Members
  • *
Re:Rain Drop Effect Script
« Reply #23 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...




« Last Edit: 24 Nov 2004, 07:37:48 by Nemesis6 »
I am actually flying into a star... this is incredible!

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Rain Drop Effect Script
« Reply #24 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:

CptBravo

  • Guest
Re:Rain Drop Effect Script
« Reply #25 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.

Offline Nemesis6

  • Members
  • *
Re:Rain Drop Effect Script
« Reply #26 on: 27 Nov 2004, 17:28:48 »
No problem! :)

[density] exec "snow.sqs"

Here's the snow script -

« Last Edit: 27 Nov 2004, 17:29:35 by Nemesis6 »
I am actually flying into a star... this is incredible!

CptBravo

  • Guest
Re:Rain Drop Effect Script
« Reply #27 on: 28 Nov 2004, 18:49:31 »
Thank you very very much! :)

Crassus

  • Guest
Re:Rain Drop Effect Script
« Reply #28 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?

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Rain Drop Effect Script
« Reply #29 on: 13 Dec 2004, 16:01:42 »
Might be a bug with the drop command. Certianly not my work anyway.

:beat: *Gets Shot* :beat: