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.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/render/particleejectorscript.h b/src/render/particleejectorscript.h
index ef2be4c..4a06a84 100644
--- a/src/render/particleejectorscript.h
+++ b/src/render/particleejectorscript.h
@@ -108,6 +108,14 @@ public:
{
return script_impulse;
}
+
+ /**
+ * @brief true for a thrust impulse ejector
+ * */
+ inline const bool explosion() const
+ {
+ return script_explosion;
+ }
/**
* @brief true if entity secondary color is to be applied to ejected particles
@@ -423,6 +431,14 @@ public:
{
script_impulse = use_impulse;
}
+
+ /**
+ * @brief enable or disable explosion activated ejector
+ * */
+ inline void set_explosion(const bool use_explosion)
+ {
+ script_explosion = use_explosion;
+ }
/**
* @brief ejector particles are drawn in entity coordinates
@@ -509,6 +525,8 @@ private:
bool script_thrust;
/// impulse activated ejector
bool script_impulse;
+ /// explosion activated ejector
+ bool script_explosion;
/// ejector is attached to entity coordinates
bool script_attached;
/// ejector particles and speed are scaled according to modelscale