|
resonance 1.0.1
|
Crippler effect that flies along a path and hits a set of players. More...
#include <tnlcripplefx.h>
Public Member Functions | |
| TnlCrippleFX (int nIndex, float flRate) | |
| Resolve the view, path, and system of one crippler and hide the view. | |
| void | Start (const std::vector< TnlPlayer * > &targets, float flFrame) |
| Launch the crippler at a set of players. | |
| void | SetFrame (float flFrame) |
| Advance the crippler through its launch, return, and hit phases. | |
Friends | |
| class | AppTunnel |
Crippler effect that flies along a path and hits a set of players.
The class is not polymorphic and emits no RTTI, and no allocation tag or file path identifies it. The name is inferred from the objects it drives, "cripfx<n>.view", "cripfx<n>.path", and "cripfx<n>.ps", and from the "SND_CRIPPLER_HIT" sound the frame routine plays.
AppTunnel allocates two, 0x28 bytes each, and stores them in its vector at +0x30. The destructor at 0x00456810 is the implicit one and is not written.
| TnlCrippleFX::TnlCrippleFX | ( | int | nIndex, |
| float | flRate ) |
Resolve the view, path, and system of one crippler and hide the view.
| nIndex | The crippler. |
| flRate | The view rate. AppTunnel passes its +0x144. |
| void TnlCrippleFX::Start | ( | const std::vector< TnlPlayer * > & | targets, |
| float | flFrame ) |
Launch the crippler at a set of players.
The path runs at 6 * mRate and is offset to arrive at frame flFrame at song frame flFrame. AppTunnel's message handler inlines this at 0x00448898, and the out-of-line copy has no caller.
| targets | The players to hit. |
| flFrame | The launch frame. |
| void TnlCrippleFX::SetFrame | ( | float | flFrame | ) |
Advance the crippler through its launch, return, and hit phases.
The view always runs at mRate times flFrame, and the path runs from flFrame while the crippler is not idle. Once the path frame is more than 6500 frames ahead of the song, the path rate becomes -3 * mRate and the crippler returns. Once the path frame falls behind the song, each target plays "SND_CRIPPLER_HIT", starts its crippler paths from flFrame, and receives the crippler rumble through the world's ForceFeedbackMgr. The next call hides the view and releases the particles. AppTunnel::SetFrame() calls it for every crippler.
| flFrame | The current frame. |
|
friend |