2016-12-16 08:33:23 +00:00
|
|
|
|
/**
|
|
|
|
|
@author Dustin Neß (dness.de)
|
2013-03-28 18:08:11 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
protected func Construction()
|
|
|
|
|
{
|
2016-12-16 08:33:23 +00:00
|
|
|
|
// random direction
|
|
|
|
|
if (Random(2))
|
2013-03-28 18:08:11 +00:00
|
|
|
|
{
|
|
|
|
|
SetProperty("MeshTransformation", Trans_Mul(Trans_Rotate(15,0,10), Trans_Scale(120)));
|
2016-12-16 08:33:23 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2013-03-28 18:08:11 +00:00
|
|
|
|
SetProperty("MeshTransformation", Trans_Mul(Trans_Rotate(195,0,180), Trans_Scale(120)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-16 08:33:23 +00:00
|
|
|
|
// bring to front
|
|
|
|
|
public func SetToFront(bool is_in_front)
|
|
|
|
|
{
|
|
|
|
|
if (is_in_front)
|
|
|
|
|
{
|
2018-07-23 07:20:11 +00:00
|
|
|
|
this.Plane = 510;
|
2016-12-16 08:33:23 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2018-07-23 07:20:11 +00:00
|
|
|
|
this.Plane = 110;
|
2013-03-28 18:08:11 +00:00
|
|
|
|
}
|
2018-07-23 07:20:11 +00:00
|
|
|
|
return this.Plane;
|
2013-03-28 18:08:11 +00:00
|
|
|
|
}
|