Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <vector>
#include <string>
#include "vec.h"
#include "matrix.h"
#include "cmd/unit_generic.h"
#include "halo_system.h"
#include "universe.h"
#include <stdlib.h>
#include <stdio.h>
#include "vegastrike.h"
#include "mesh.h"
#include "vs_globals.h"
#include "xml_support.h"
#include "config_xml.h"
#include "gfx/particle.h"
#include "lin_time.h"
#include "animation.h"
#include "car_assist.h"
#include "cmd/collide2/CSopcodecollider.h"
#include "cmd/unit_collide.h"
Go to the source code of this file.
Macros | |
#define | HALO_SMOOTHING_UP_FACTOR (0.02) |
#define | HALO_SMOOTHING_DOWN_FACTOR (0.01) |
#define | HALO_STEERING_UP_FACTOR (0.00) |
#define | HALO_STEERING_DOWN_FACTOR (0.01) |
#define | HALO_STABILIZATION_RANGE (0.25) |
Functions | |
static float | ffmax (float a, float b) |
void | DoParticles (QVector pos, float percent, const Vector &velocity, float radial_size, float particle_size, int faction) |
void | LaunchOneParticle (const Matrix &mat, const Vector &vel, unsigned int seed, Unit *mush, float hull, int faction) |
static float | mymin (float a, float b) |
static float | mymax (float a, float b) |
static float | HaloAccelSmooth (float linaccel, float olinaccel, float maxlinaccel) |
#define HALO_SMOOTHING_DOWN_FACTOR (0.01) |
Definition at line 24 of file halo_system.cpp.
Referenced by HaloAccelSmooth().
#define HALO_SMOOTHING_UP_FACTOR (0.02) |
Definition at line 23 of file halo_system.cpp.
Referenced by HaloAccelSmooth().
#define HALO_STABILIZATION_RANGE (0.25) |
Definition at line 27 of file halo_system.cpp.
#define HALO_STEERING_DOWN_FACTOR (0.01) |
Definition at line 26 of file halo_system.cpp.
Referenced by HaloAccelSmooth().
#define HALO_STEERING_UP_FACTOR (0.00) |
Definition at line 25 of file halo_system.cpp.
Referenced by HaloAccelSmooth().
void DoParticles | ( | QVector | pos, |
float | percent, | ||
const Vector & | velocity, | ||
float | radial_size, | ||
float | particle_size, | ||
int | faction | ||
) |
Definition at line 33 of file halo_system.cpp.
References GFXColor::a, ParticleTrail::AddParticle(), GFXColor::b, ParticlePoint::col, ffmax(), float, GFXColor::g, FactionUtil::GetSparkColor(), VegaConfig::getVariable(), i, ParticlePoint::loc, XMLSupport::parse_bool(), XMLSupport::parse_float(), particleTrail, QVector, GFXColor::r, UniverseUtil::sqrt(), and vs_config.
Referenced by HaloSystem::Draw(), and LaunchOneParticle().
Definition at line 162 of file halo_system.cpp.
References GetElapsedTime(), HALO_SMOOTHING_DOWN_FACTOR, HALO_SMOOTHING_UP_FACTOR, HALO_STEERING_DOWN_FACTOR, HALO_STEERING_UP_FACTOR, mymax(), and mymin.
Referenced by HaloSystem::Draw(), and HaloSystem::ShouldDraw().
void LaunchOneParticle | ( | const Matrix & | mat, |
const Vector & | vel, | ||
unsigned int | seed, | ||
Unit * | mush, | ||
float | hull, | ||
int | faction | ||
) |
Definition at line 63 of file halo_system.cpp.
References Unit::colTrees, done, DoParticles(), StarSystemGent::faction, csOPCODECollider::getNumVertex(), VegaConfig::getVariable(), csOPCODECollider::getVertex(), int, XMLSupport::parse_float(), QVector, collideTrees::rapidColliders, Unit::rSize(), Transform(), collideTrees::usingColTree(), v, and vs_config.
Referenced by GameUnit< UnitType >::Draw().