Forum

> > Stranded II > General > Rain
Forums overviewStranded II overviewGeneral overviewLog in to reply

English Rain

6 replies
To the start Previous 1 Next To the start

old Rain

HudaJan
Super User Off Offline

Quote
I have something for you.. paste this
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
###Rain
##chose what ID you need
id=999
name=Rain
model=gfx\bag.b3d
health=50
mat=leaf
fx=16
col=0
var=item,ID of falling item,52
var=timer,How often(less=more often),1
var=speed,speed,10
script=start
on:start {
timer "self",$timer,0;
}
on:timer {
$x1=(getx("unit",1)+300);
$x2=(getx("unit",1)-300);
$z1=(getz("unit",1)+300);
$z2=(getz("unit",1)-300);
projectile $item,random($x1,$x2),random(400,500),random($z1,$z2),3,random(80,90),60,0,0,$speed;
}
alpha 0;
script=end
into any objects_***.inf. I have it in objects_stuff.inf
and now try to put the object into game and "test" it

EDIT: I forgot:If you didn't notice: You can change falling item in editor like variable. You can change speed of falling item and amount too.
It looks simply, but I can't watch enough on falling spears
Enjoy it
edited 1×, last 23.06.08 07:57:04 pm

old Re: Rain

garfield751
User Off Offline

Quote
so if i read this correctly this "rain" makes any item you choose to fall on you

old Re: Rain

MrCowThing
User Off Offline

Quote
It will fall anywhere within 600 units of the object(I think that's right)

Some things that might make it better.
Make it into an info so its easier to find.
Add a var to turn it on and off.
Add a var for radius.
edited 1×, last 24.06.08 04:11:46 pm

old Re: Rain

HudaJan
Super User Off Offline

Quote
1. I don't know the way how to add new infos... But the object has no collision and it is invisible in game....
2. add lines
1
var=use,1=on 2=off,1
3.add lines
1
var=radius,Radius,300

And the final script

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
script=start
on:start {
timer "self",$timer,0;
}
on:timer {
if($use==1){
$x1=(getx("unit",1)+$radius);
$x2=(getx("unit",1)-$radius;
$z1=(getz("unit",1)+$radius);
$z2=(getz("unit",1)-$radius);
projectile $item,random($x1,$x2),random(400,500),random($z1,$z2),3,random(80,90),60,0,0,$speed;
}
}
alpha 0;
script=end

@garfield
You can just try it, you don't need ANY mod or model.. just put this into objects_stuff.inf
I can't help myself, but I think it's amazing

old Re: Rain

GreyMario
User Off Offline

Quote
What if it could rain rain raining rain raining rain?

Would the game just start lagging to hell and gone?

old Re: Rain

HudaJan
Super User Off Offline

Quote
Hey it's VERY intreresting idea
You could try it
EDIT:I couldn't help myself so I tried it, and than I realized a thing: rain is object and raining are items
edited 2×, last 20.07.08 12:22:34 am

old Re: Rain

Guest

Quote
This is really fun! Thanks!
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview