Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/particleejectorscript.h')
-rw-r--r--src/render/particleejectorscript.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/render/particleejectorscript.h b/src/render/particleejectorscript.h
index 731dbe2..4ba8dea 100644
--- a/src/render/particleejectorscript.h
+++ b/src/render/particleejectorscript.h
@@ -119,6 +119,15 @@ public:
{
return script_attached;
}
+
+ /**
+ * @brief ejector particles and speed are scaled according to modelscale
+ * */
+ inline const bool scaled() const
+ {
+ return script_scaled;
+ }
+
/**
* @brief name of the texture used to render ejected particles
@@ -168,6 +177,14 @@ public:
}
/**
+ * @brief minimum and maximum tail speed of ejected particles, in gameunits per second
+ * */
+ inline const math::Vector2f & tailspeed_vec() const
+ {
+ return script_tailspeed_vec;
+ }
+
+ /**
* @brief acceleration of ejected particles, in gameunits per second squared
* */
inline const float acceleration() const
@@ -219,6 +236,14 @@ public:
}
/**
+ * @brief return a reference to the tail speed vector
+ * */
+ inline math::Vector2f &get_tailspeed_vec()
+ {
+ return script_tailspeed_vec;
+ }
+
+ /**
* @brief return a reference to particle color
* */
inline math::Color &get_color()
@@ -370,6 +395,11 @@ public:
script_attached = attached;
}
+ inline void set_scaled(const bool scaled)
+ {
+ script_scaled = scaled;
+ }
+
/**
* @brief set the particle color
* */
@@ -398,6 +428,8 @@ private:
/// minimum and maximum speed of ejected particles, in gameunits per second
math::Vector2f script_speed_vec;
+ /// minimum and maximum speed of ejected tail particles, in gameunits per second
+ math::Vector2f script_tailspeed_vec;
/// acceleration of ejected particles, in gameunits per second squared
float script_acceleration;
/// spawn radius
@@ -418,6 +450,8 @@ private:
bool script_impulse;
/// ejector is attached to entity coordinates
bool script_attached;
+ /// ejector particles and speed are scaled according to modelscale
+ bool script_scaled;
/// texture to render particles with
std::string script_texture;