FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "freespace2/freespace.h"
#include "gamesnd/gamesnd.h"
#include "hud/hudets.h"
#include "io/joy_ff.h"
#include "io/timer.h"
#include "network/multi.h"
#include "object/object.h"
#include "parse/scripting.h"
#include "render/3d.h"
#include "ship/afterburner.h"
#include "ship/ship.h"
Go to the source code of this file.
Macros | |
#define | MIN_AFTERBURNER_FUEL_TO_ENGAGE 10 |
#define | AFTERBURNER_DEFAULT_VOL 0.5f |
#define | AFTERBURNER_PERCENT_VOL_ATTENUATE 0.30f |
#define | AFTERBURNER_PERCENT_FOR_LOOP_SND 0.33f |
#define | AFTERBURNER_VOLUME_UPDATE 250 |
#define | AFTERBURNER_LOOP_DELAY 200 |
#define | DISENGAGE_TIME 1500 |
Functions | |
void | afterburner_level_init () |
void | afterburners_start (object *objp) |
void | afterburners_update (object *objp, float fl_frametime) |
void | afterburners_stop (object *objp, int key_released) |
void | afterburner_stop_sounds () |
#define AFTERBURNER_DEFAULT_VOL 0.5f |
Definition at line 41 of file afterburner.cpp.
#define AFTERBURNER_LOOP_DELAY 200 |
Definition at line 45 of file afterburner.cpp.
#define AFTERBURNER_PERCENT_FOR_LOOP_SND 0.33f |
Definition at line 43 of file afterburner.cpp.
#define AFTERBURNER_PERCENT_VOL_ATTENUATE 0.30f |
Definition at line 42 of file afterburner.cpp.
#define AFTERBURNER_VOLUME_UPDATE 250 |
Definition at line 44 of file afterburner.cpp.
#define DISENGAGE_TIME 1500 |
Definition at line 47 of file afterburner.cpp.
#define MIN_AFTERBURNER_FUEL_TO_ENGAGE 10 |
Definition at line 39 of file afterburner.cpp.
void afterburner_level_init | ( | ) |
Call at the start of a mission
Definition at line 53 of file afterburner.cpp.
void afterburner_stop_sounds | ( | ) |
Terminates any looping afterburner sounds. This should only be called when the game decides to stop all looping sounds.
Definition at line 332 of file afterburner.cpp.
Called when a ship engages the afterburners. This function should only be called once when afterburners first start. This is to start an appropriate sound effect and do any one-time initializations.
*objp | pointer to the object starting afterburners |
Definition at line 68 of file afterburner.cpp.
Called when a ship disengages the afterburners.
*objp | pointer to the object starting afterburners |
key_released | OPTIONAL parameter (default value 0) This is only used for the player object, to manage starting/stopping |
Definition at line 279 of file afterburner.cpp.
Update the state of the afterburner fuel remaining for an object using the afterburner.
For the player ship, key_up_time() is called for the afterburner key to detect when afterburners disengage.
*objp | pointer to the object starting afterburners |
fl_frametime | time in seconds of the last frame |
Definition at line 168 of file afterburner.cpp.