Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-10-13 20:14:17 +0000
committerStijn Buys <ingar@osirion.org>2013-10-13 20:14:17 +0000
commitd6471bf0f398257cb379944323cf85e8115491a5 (patch)
treea65de7dfe769d12fc88bb56f16bffc7f330e1d08 /src/render/particleejectorscript.h
parentd192894dc60562c04a98ea0ba361045178e096d7 (diff)
Axded explosion trigger for particle ejecotrs, fixed explosion particles for destroyed entities.
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