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
-
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:
-
I'm gona try this one out. BTW, how much lag does this cause?
-
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.
-
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.
-
hey
Sounds nice, I'll test it later... :)
sim
-
Dito what sim said ;)
It take it doesn't lag your comp, Armsty? What sorta spec?
- Ben
-
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:
-
Very nice. Could you make it water compatible, too? I could do this myself, but I guess I'm too lazy! :-/
-
Cheers for your input but I'm not sure what you mean? Water compatible?
:beat: *Gets Shot* :beat:
-
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
-
Snow don't exactly splash but I can create snow dingling down if you want to.
:beat: *Gets Shot* :beat:
-
Am I right in guessing that some of the Ballistic addon demo missions use a custom rain script??
-
Nope.
-
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
-
Glad you liked it. The sandstorm could be much harder. I'll see what I can do though.
:beat: *Gets Shot* :beat:
-
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
-
Anybody knows where can i download that hurricane tornado script?
-
I was suggesting that someone makes that ::)
There was a tornado (Weather, not the plane) on ofp.info awhile ago I'm sure
- Ben
-
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?
-
Scratch that last part. Doh!
-
You're free to edit as you like. It's a lost project. Just gimme credits. :)
:beat: *Gets Shot* :beat:
-
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
-
Snow would be Grrrrrrrrrrreat!! :)
I need one baaadly for my snow map.
Maybe some other day. Rather busy now. :-\
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:
-
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...
-
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:
-
Hey Nemesis6,
If you could extract it that would be great! I am not that good at opening pbos :(
Cheers.
-
No problem! :)
[density] exec "snow.sqs"
Here's the snow script -
-
Thank you very very much! :)
-
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?
-
Might be a bug with the drop command. Certianly not my work anyway.
:beat: *Gets Shot* :beat: