codemp/game/w_saber.h File Reference

#include "../namespace_begin.h"
#include "../namespace_end.h"

Go to the source code of this file.

Defines

#define ARMOR_EFFECT_TIME   500
#define SEF_HITENEMY   0x1
#define SEF_HITOBJECT   0x2
#define SEF_HITWALL   0x4
#define SEF_PARRIED   0x8
#define SEF_DEFLECTED   0x10
#define SEF_BLOCKED   0x20
#define SEF_EVENTS   (SEF_HITENEMY|SEF_HITOBJECT|SEF_HITWALL|SEF_PARRIED|SEF_DEFLECTED|SEF_BLOCKED)
#define SEF_LOCKED   0x40
#define SEF_INWATER   0x80
#define SEF_LOCK_WON   0x100
#define SES_LEAVING   1
#define SES_HOVERING   1
#define SES_RETURNING   1
#define JSF_AMBUSH   16
#define SABER_RADIUS_STANDARD   3.0f
#define SABER_REFLECT_MISSILE_CONE   0.2f
#define FORCE_POWER_MAX   100
#define MAX_GRIP_DISTANCE   256
#define MAX_TRICK_DISTANCE   512
#define FORCE_JUMP_CHARGE_TIME   6400
#define GRIP_DRAIN_AMOUNT   30
#define FORCE_LIGHTNING_RADIUS   300
#define MAX_DRAIN_DISTANCE   512
#define SABERMINS_X   -3.0f
#define SABERMINS_Y   -3.0f
#define SABERMINS_Z   -3.0f
#define SABERMAXS_X   3.0f
#define SABERMAXS_Y   3.0f
#define SABERMAXS_Z   3.0f
#define SABER_MIN_THROW_DIST   80.0f

Enumerations

enum  {
  FJ_FORWARD, FJ_BACKWARD, FJ_RIGHT, FJ_LEFT,
  FJ_UP
}
enum  evasionType_t {
  EVASION_NONE = 0, EVASION_PARRY, EVASION_DUCK_PARRY, EVASION_JUMP_PARRY,
  EVASION_DODGE, EVASION_JUMP, EVASION_DUCK, EVASION_FJUMP,
  EVASION_CARTWHEEL, EVASION_OTHER, NUM_EVASION_TYPES
}

Variables

vmCvar_t g_MaxHolocronCarry
int forcePowerNeeded [NUM_FORCE_POWER_LEVELS][NUM_FORCE_POWERS]
float forceJumpHeight [NUM_FORCE_POWER_LEVELS]
float forceJumpStrength [NUM_FORCE_POWER_LEVELS]
float forcePushPullRadius [NUM_FORCE_POWER_LEVELS]


Define Documentation

#define ARMOR_EFFECT_TIME   500
 

Definition at line 1 of file w_saber.h.

Referenced by NPC_BSGM_Attack().

#define FORCE_JUMP_CHARGE_TIME   6400
 

Definition at line 30 of file w_saber.h.

Referenced by ForceJump(), and ForceJumpCharge().

#define FORCE_LIGHTNING_RADIUS   300
 

Definition at line 32 of file w_saber.h.

Referenced by ForceShootLightning(), and StandardBotAI().

#define FORCE_POWER_MAX   100
 

Definition at line 27 of file w_saber.h.

Referenced by WP_SpawnInitForcePowers().

#define GRIP_DRAIN_AMOUNT   30
 

Definition at line 31 of file w_saber.h.

Referenced by WP_DoSpecificPower().

#define JSF_AMBUSH   16
 

Definition at line 22 of file w_saber.h.

Referenced by Jedi_WaitingAmbush(), and NPC_SetMiscDefaultData().

#define MAX_DRAIN_DISTANCE   512
 

Definition at line 33 of file w_saber.h.

Referenced by ForceShootDrain(), and StandardBotAI().

#define MAX_GRIP_DISTANCE   256
 

Definition at line 28 of file w_saber.h.

Referenced by DoGripAction(), ForceGrip(), and StandardBotAI().

#define MAX_TRICK_DISTANCE   512
 

Definition at line 29 of file w_saber.h.

Referenced by ForceTelepathy(), ForceTelepathyCheckDirectNPCTarget(), and StandardBotAI().

#define SABER_MIN_THROW_DIST   80.0f
 

Definition at line 67 of file w_saber.h.

Referenced by PM_WeaponLightsaber().

#define SABER_RADIUS_STANDARD   3.0f
 

Definition at line 24 of file w_saber.h.

Referenced by WP_SaberSetDefaults().

#define SABER_REFLECT_MISSILE_CONE   0.2f
 

Definition at line 25 of file w_saber.h.

Referenced by WP_SaberStartMissileBlockCheck().

#define SABERMAXS_X   3.0f
 

Definition at line 64 of file w_saber.h.

Referenced by PM_WeaponLightsaber(), and WP_SaberPositionUpdate().

#define SABERMAXS_Y   3.0f
 

Definition at line 65 of file w_saber.h.

Referenced by PM_WeaponLightsaber(), and WP_SaberPositionUpdate().

#define SABERMAXS_Z   3.0f
 

Definition at line 66 of file w_saber.h.

Referenced by PM_WeaponLightsaber(), and WP_SaberPositionUpdate().

#define SABERMINS_X   -3.0f
 

Definition at line 61 of file w_saber.h.

Referenced by PM_WeaponLightsaber(), and WP_SaberPositionUpdate().

#define SABERMINS_Y   -3.0f
 

Definition at line 62 of file w_saber.h.

Referenced by PM_WeaponLightsaber(), and WP_SaberPositionUpdate().

#define SABERMINS_Z   -3.0f
 

Definition at line 63 of file w_saber.h.

Referenced by PM_WeaponLightsaber(), and WP_SaberPositionUpdate().

#define SEF_BLOCKED   0x20
 

Definition at line 9 of file w_saber.h.

#define SEF_DEFLECTED   0x10
 

Definition at line 8 of file w_saber.h.

Referenced by G_MissileImpact().

#define SEF_EVENTS   (SEF_HITENEMY|SEF_HITOBJECT|SEF_HITWALL|SEF_PARRIED|SEF_DEFLECTED|SEF_BLOCKED)
 

Definition at line 10 of file w_saber.h.

#define SEF_HITENEMY   0x1
 

Definition at line 4 of file w_saber.h.

#define SEF_HITOBJECT   0x2
 

Definition at line 5 of file w_saber.h.

#define SEF_HITWALL   0x4
 

Definition at line 6 of file w_saber.h.

#define SEF_INWATER   0x80
 

Definition at line 12 of file w_saber.h.

#define SEF_LOCK_WON   0x100
 

Definition at line 13 of file w_saber.h.

Referenced by PM_SaberLockBreak().

#define SEF_LOCKED   0x40
 

Definition at line 11 of file w_saber.h.

#define SEF_PARRIED   0x8
 

Definition at line 7 of file w_saber.h.

#define SES_HOVERING   1
 

Definition at line 16 of file w_saber.h.

#define SES_LEAVING   1
 

Definition at line 15 of file w_saber.h.

#define SES_RETURNING   1
 

Definition at line 17 of file w_saber.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
FJ_FORWARD 
FJ_BACKWARD 
FJ_RIGHT 
FJ_LEFT 
FJ_UP 

Definition at line 35 of file w_saber.h.

00036 {
00037         FJ_FORWARD,
00038         FJ_BACKWARD,
00039         FJ_RIGHT,
00040         FJ_LEFT,
00041         FJ_UP
00042 };

enum evasionType_t
 

Enumeration values:
EVASION_NONE 
EVASION_PARRY 
EVASION_DUCK_PARRY 
EVASION_JUMP_PARRY 
EVASION_DODGE 
EVASION_JUMP 
EVASION_DUCK 
EVASION_FJUMP 
EVASION_CARTWHEEL 
EVASION_OTHER 
NUM_EVASION_TYPES 

Definition at line 44 of file w_saber.h.

Referenced by Jedi_CheckFlipEvasions(), and Jedi_SaberBlockGo().


Variable Documentation

float forceJumpHeight[NUM_FORCE_POWER_LEVELS]
 

Definition at line 71 of file w_saber.h.

float forceJumpStrength[NUM_FORCE_POWER_LEVELS]
 

Definition at line 72 of file w_saber.h.

Referenced by ForceJump(), ForceJumpCharge(), Jedi_CheckFlipEvasions(), and WPConstantRoutine().

int forcePowerNeeded[NUM_FORCE_POWER_LEVELS][NUM_FORCE_POWERS]
 

Definition at line 70 of file w_saber.h.

float forcePushPullRadius[NUM_FORCE_POWER_LEVELS]
 

Definition at line 73 of file w_saber.h.

vmCvar_t g_MaxHolocronCarry
 

Definition at line 59 of file w_saber.h.

Referenced by HolocronTouch(), HolocronUpdate(), JediMasterUpdate(), and WP_ForcePowersUpdate().