Post: Raining Models
03-23-2012, 11:11 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); credit to Mike from se7ensins for the idea.

this has got better physics. Winky Winky
    
rainModel()
{
if(!level.rainModel)
{
thread rain("vehicle_mig29_desert");//change the model to what you want.
self iPrintln("Raining [^2ON^7]");
level.rainModel = true;
}
else
{
self iPrintln("Raining [^1OFF^7]");
level.rainModel = false;
}
}
rain(model)
{
while(level.rainModel)
{
range = [];
for(k = 0; k < 2; k++)
range[k] = randomIntRange(-2000,2000);

s_model = spawn("script_model",(range[0],range[1],2000));
s_model setModel(model);
s_model physicsLaunch(s_model.origin,(0,0,-5000));
s_model thread deleteAfterTime();
wait .2;
}
}
deleteAfterTime()
{
wait 6;
self delete();
}


Im waiting for your Groan Yamato. lmao, mission successful! iou a cookie Winky Winky
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to IELIITEMODZX for this useful post:

Choco, Kush Friendly, LightModz, ThePhantom410., x_DaftVader_x

The following user groaned IELIITEMODZX for this awful post:

247Yamato
03-23-2012, 11:16 PM #2
nice one i might use this + when u releasing merry go round :P
03-23-2012, 11:39 PM #3
Taylor
Former Black Knight.
Originally posted by IELIITEMODZX View Post
credit to Mike from se7ensins for the idea.

this has got better physics. Winky Winky
    
rainModel()
{
if(!level.rainModel)
{
thread rain("vehicle_mig29_desert");//change the model to what you want.
self iPrintln("Raining [^2ON^7]");
level.rainModel = true;
}
else
{
self iPrintln("Raining [^1OFF^7]");
level.rainModel = false;
}
}
rain(model)
{
self endon("disconnect");
while(level.rainModel)
{
range = [];
for(k = 0; k < 2; k++)
range[k] = randomIntRange(-2000,2000);

s_model = spawn("script_model",(range[0],range[1],2000));
s_model setModel(model);
s_model physicsLaunch(s_model.origin,(0,0,-5000));
s_model thread deleteAfterTime();
wait .2;
}
}
deleteAfterTime()
{
wait 6;
self delete();
}


Fake And Gay :carling: You Said Comment, You Didnt Say What About :P
03-24-2012, 01:42 AM #4
Choco
Respect my authoritah!!
Originally posted by IELIITEMODZX View Post
credit to Mike from se7ensins for the idea.

this has got better physics. Winky Winky
    
rainModel()
{
if(!level.rainModel)
{
thread rain("vehicle_mig29_desert");//change the model to what you want.
self iPrintln("Raining [^2ON^7]");
level.rainModel = true;
}
else
{
self iPrintln("Raining [^1OFF^7]");
level.rainModel = false;
}
}
rain(model)
{
while(level.rainModel)
{
range = [];
for(k = 0; k < 2; k++)
range[k] = randomIntRange(-2000,2000);

s_model = spawn("script_model",(range[0],range[1],2000));
s_model setModel(model);
s_model physicsLaunch(s_model.origin,(0,0,-5000));
s_model thread deleteAfterTime();
wait .2;
}
}
deleteAfterTime()
{
wait 6;
self delete();
}


Im waiting for your Groan Yamato. lmao


I know everyone hates optimization but here's a little shorter code:
    rainModel(m)
{
if(!level.rainModel){level.rainModel=true;self iPrintln("Raining "+m+"'s [^2ON^7]");}
else {level.rainModel=false;self iPrintln("Raining [^1OFF^7]");}
while(level.rainModel)
{
range=[];
for(k=0;k<2;k++) range[k]=randomIntRange(-2000,2000);
s_model=spawn("script_model",(range[0],range[1],2000));
s_model setModel(m);
s_model physicsLaunch(s_model.origin,(0,0,-5000));
s_model thread deleteAfterTime();
wait .2;
}
}
deleteAfterTime()
{
wait 6;
self delete();
}


Just thread this:
    self thread rainModel("com_plasticcase_beige_big");

The following user thanked Choco for this useful post:

03-24-2012, 02:03 AM #5
Originally posted by .Choco View Post
I know everyone hates optimization but here's a little shorter code:
    rainModel(m)
{
if(!level.rainModel){level.rainModel=true;self iPrintln("Raining "+m+"'s [^2ON^7]");}
else {level.rainModel=false;self iPrintln("Raining [^1OFF^7]");}
while(level.rainModel)
{
range=[];
for(k=0;k<2;k++) range[k]=randomIntRange(-2000,2000);
s_model=spawn("script_model",(range[0],range[1],2000));
s_model setModel(m);
s_model physicsLaunch(s_model.origin,(0,0,-5000));
s_model thread deleteAfterTime();
wait .2;
}
}
deleteAfterTime()
{
wait 6;
self delete();
}


Just thread this:
    self thread rainModel("com_plasticcase_beige_big");


/facepalm .
03-24-2012, 02:11 AM #6
Choco
Respect my authoritah!!
Originally posted by nZxMikeeeyx View Post
/facepalm .


Instead of facepalming, can you just point out my bug to me? I'm trying to learn GSC, I want to get better at it...
03-24-2012, 02:46 AM #7
Originally posted by .Choco View Post
Instead of facepalming, can you just point out my bug to me? I'm trying to learn GSC, I want to get better at it...


Completely pointless.. There was nothing wrong with the original code... The size and format was perfectly fine! Your need to 'optimize', if that's what you wanna call it, aggravates me...
03-24-2012, 02:51 AM #8
Choco
Respect my authoritah!!
Originally posted by nZxMikeeeyx View Post
Completely pointless.. There was nothing wrong with the original code... The size and format was perfectly fine! Your need to 'optimize', if that's what you wanna call it, aggravates me...


I'm sorry, I'm just trying to help people out... I know my patch barely has room left, saving space helps. And my code is little better, it allows you to thread several models where on his you'd have to create a new function for each time you want a different model...
03-24-2012, 03:04 AM #9
Originally posted by .Choco View Post
I'm sorry, I'm just trying to help people out... I know my patch barely has room left, saving space helps. And my code is little better, it allows you to thread several models where on his you'd have to create a new function for each time you want a different model...
well that function is how i like my scripts layed out Winky Winky yours make me want to puke lol. :wub:

and if you used yours it if you clicked on a difarent model it will turn it off, so you will need to click again to turn on with a new model. ive got a function that works with more than 1 model ill add it later (im going to sleep now) it will be good for your menu. Happy

The following user thanked IELIITEMODZX for this useful post:

Choco
03-24-2012, 08:39 AM #10
247Yamato
< ^ > < ^ >
If you want it..... Awesome face

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo