|
31 | 31 | #include "TDExplosive.h"
|
32 | 32 | #include "ThrownDevice.h"
|
33 | 33 | #include "Turret.h"
|
| 34 | +#include "PEmitter.h" |
34 | 35 |
|
35 | 36 | #include "DataModule.h"
|
36 | 37 | #include "GAScripted.h"
|
@@ -206,6 +207,7 @@ LUAENTITYCREATE(HDFirearm)
|
206 | 207 | LUAENTITYCREATE(ThrownDevice)
|
207 | 208 | LUAENTITYCREATE(TDExplosive)
|
208 | 209 | LUAENTITYCREATE(TerrainObject)
|
| 210 | +LUAENTITYCREATE(PEmitter) |
209 | 211 |
|
210 | 212 |
|
211 | 213 | //////////////////////////////////////////////////////////////////////////////////////////
|
@@ -250,6 +252,7 @@ LUAENTITYCLONE(HDFirearm)
|
250 | 252 | LUAENTITYCLONE(ThrownDevice)
|
251 | 253 | LUAENTITYCLONE(TDExplosive)
|
252 | 254 | LUAENTITYCLONE(TerrainObject)
|
| 255 | +LUAENTITYCLONE(PEmitter) |
253 | 256 |
|
254 | 257 | //////////////////////////////////////////////////////////////////////////////////////////
|
255 | 258 | // Explicit deletion of any Entity instance that Lua owns.. it will probably be handled
|
@@ -316,6 +319,7 @@ LUAENTITYCAST(HDFirearm)
|
316 | 319 | LUAENTITYCAST(ThrownDevice)
|
317 | 320 | LUAENTITYCAST(TDExplosive)
|
318 | 321 | LUAENTITYCAST(TerrainObject)
|
| 322 | +LUAENTITYCAST(PEmitter) |
319 | 323 |
|
320 | 324 |
|
321 | 325 | //////////////////////////////////////////////////////////////////////////////////////////
|
@@ -837,6 +841,24 @@ int LuaMan::Create() {
|
837 | 841 | .def("CanTriggerBurst", &AEmitter::CanTriggerBurst)
|
838 | 842 | .def_readwrite("Emissions", &AEmitter::m_EmissionList, return_stl_iterator),
|
839 | 843 |
|
| 844 | + CONCRETELUABINDING(PEmitter, MOSParticle) |
| 845 | + .def("IsEmitting", &PEmitter::IsEmitting) |
| 846 | + .def("EnableEmission", &PEmitter::EnableEmission) |
| 847 | + .property("BurstScale", &PEmitter::GetBurstScale, &PEmitter::SetBurstScale) |
| 848 | + .property("EmitAngle", &PEmitter::GetEmitAngle, &PEmitter::SetEmitAngle) |
| 849 | + .property("GetThrottle", &PEmitter::GetThrottle, &PEmitter::SetThrottle) |
| 850 | + .property("Throttle", &PEmitter::GetThrottle, &PEmitter::SetThrottle) |
| 851 | + .property("BurstSpacing", &PEmitter::GetBurstSpacing, &PEmitter::SetBurstSpacing) |
| 852 | + .property("EmitCountLimit", &PEmitter::GetEmitCountLimit, &PEmitter::SetEmitCountLimit) |
| 853 | + .property("FlashScale", &PEmitter::GetFlashScale, &PEmitter::SetFlashScale) |
| 854 | + .def("GetEmitVector", &PEmitter::GetEmitVector) |
| 855 | + .def("GetRecoilVector", &PEmitter::GetRecoilVector) |
| 856 | + .def("EstimateImpulse", &PEmitter::EstimateImpulse) |
| 857 | + .def("TriggerBurst", &PEmitter::TriggerBurst) |
| 858 | + .def("IsSetToBurst", &PEmitter::IsSetToBurst) |
| 859 | + .def("CanTriggerBurst", &PEmitter::CanTriggerBurst) |
| 860 | + .def_readwrite("Emissions", &PEmitter::m_EmissionList, return_stl_iterator), |
| 861 | + |
840 | 862 | CONCRETELUABINDING(Actor, MOSRotating)
|
841 | 863 | .enum_("Status")[
|
842 | 864 | value("STABLE", Actor::Status::STABLE),
|
|
0 commit comments