remove duplicate cloud effect object

The particle had the same graphics as the real Cloud object and the script does not seem to have any uses. Also unused for more than 4 years.
master
Maikel de Vries 2018-03-14 11:49:02 +01:00
parent 3808c22df4
commit 9ffab151c6
4 changed files with 0 additions and 75 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -1,3 +0,0 @@
[Particle]
Name=Cloud
Face=0,0,512,350,-256,-175

View File

@ -1,8 +0,0 @@
[DefCore]
id=CloudEffect
Version=8,0
Category=C4D_None | C4D_Parallax
Width=10
Height=10
Offset=-5,-5

View File

@ -1,64 +0,0 @@
/*--- Cloud effect ---*/
func Initialize()
{
SetAction("Fly");
SetComDir(COMD_None);
}
func Show(int clr, int layer, int size,bool diffuse)
{
// where on the z-axis?
// FIXME
this["Parallaxity"] = [layer,layer];
if(layer < 100) SetCategory(GetCategory()|C4D_Background);
else SetCategory(GetCategory()|C4D_Foreground);
if(!size) size = 360;
var clrmod = clr;
var count = 5;
var particles =
{
Prototype = Particles_Cloud(),
Alpha = (clr >> 24) & 0xff,
R = (clr >> 16) & 0xff,
G = (clr >> 8) & 0xff,
B = clr & 0xff,
Size = PV_Random(size - 20, size + 20)
};
// Create some clouds
for(var i=0; i<count; ++i)
{
var x, y;
var radius = RandomX(size/10);
var angle = Random(360);
x = Sin(angle,+radius);
y = Cos(angle,-radius/3);
CreateParticle("Cloud", x, y, PV_Random(-diffuse, +diffuse), 0, 0, particles);
}
}
// re-draw the particles of the cloud
func OnSynchronized()
{
Show();
}
local ActMap = {
Fly = {
Prototype = Action,
Name = "Fly",
Procedure = DFA_FLOAT,
Speed = 1000,
Accel = 16,
Decel = 16,
NextAction = "Hold"
},
};
local Name = "Cloud";
local Plane = 300;