Go to the source code of this file.
Classes | |
class | array< T > |
class | kStr |
String class functions. More... | |
class | kAngle |
Angle functions. More... | |
class | kVec3 |
Representation of 3D vectors and points. More... | |
class | kQuat |
Quaternions used to represent rotations. More... | |
class | kPlane |
Plane functions. More... | |
class | kColor |
< Not used (included automatically from kexengine) More... | |
class | kBitDelta |
< Not used (garbage included automatically from kexengine) More... | |
class | kexTranslation |
< Not used (garbage included automatically from kexengine) More... | |
class | ref |
class | kScriptObject |
class | ScriptObject |
class | ScriptObjectWeapon |
class | kDict |
Editable Dictionary object that holds keys and values. More... | |
class | kDictMem |
Read only Dictionary object that holds keys and values. More... | |
class | kSelectionListInt |
For selecting a int value based on weights. More... | |
class | kSelectionListFloat |
For selecting a float value based on weights. More... | |
class | kRenderModel |
class | kAnimState |
class | kActor |
Base type used by all actors. More... | |
class | kActorIterator |
The way to iterate through all actors in the map. Example code: More... | |
class | kWeapon |
class | kAI |
class | kPuppet |
class | kActorFactory |
For Spawning Actors. More... | |
class | kCamera |
class | kCModel |
The kCModel(CModel) global stores collision results when certain actor methods are called. Those methods are as follows: GetSectorIndexAtLocation const bool CanSee(kActor@, const uint = 0) MoveToPosition SpawnProjectile bool CheckPosition(const kVec3 &in) More... | |
class | kPlayLoop |
class | kSys |
class | kWorld |
class | kGame |
class | kPlayer |
Namespaces | |
namespace | kexVibrationPlayer |
namespace | Math |
namespace | kexColors |
< Not used (garbage included automatically from kexengine) | |
Functions | |
float | Math::Sin (float f) |
Returns the sine of angle f in radians. | |
float | Math::Cos (float f) |
Returns the cosine of angle f in radians. | |
float | Math::Tan (float f) |
Returns the tangent of angle f in radians. | |
float | Math::ATan2 (float y, float x) |
Returns the angle in radians whose Tan is y/x. | |
float | Math::Fabs (float f) |
Returns the absolute value of f. | |
float | Math::ACos (float f) |
Returns the arc-cosine of f - the angle in radians whose cosine is f. | |
float | Math::Sqrt (float f) |
Returns square root of f. | |
int | Math::Abs (int i) |
Returns the absolute value of i. | |
float | Math::Ceil (float f) |
Returns the smallest integer greater to or equal to f. | |
float | Math::Floor (float f) |
Returns the largest integer smaller to or equal to f. | |
float | Math::Log (float f) |
Returns the natural (base e) logarithm of a specified number. | |
float | Math::Pow (float x, float y) |
Returns f raised to power p. | |
float | Math::Deg2Rad (float degs) |
Degrees-to-radians conversion. | |
float | Math::Rad2Deg (float rads) |
Radians-to-Degrees conversion. | |
float | Math::InvSqrt (float f) |
Returns inverse square root of f. | |
float | Math::IncMax (const float val, const float inc, const float dest) |
returns val +(or minus) inc and never goes above or below dest value | |
int | Math::SysRand () |
Range 0..32767. | |
int | Math::Rand () |
Range 0..32767. | |
uint8 | Math::RandByte () |
Range 0..255. | |
int | Math::RandMax (const int max) |
Range 0..max-1. | |
float | Math::NLerp (const float a, const float b, const float t) |
Calculates the linear parameter t that produces the interpolant value within the range [a, b]. | |
float | Math::Accelerate (const float val, const float accel, const float max) |
return val that increases by accel in a weird way to the max value. | |
float | Math::RandFloat () |
Range 0..1. | |
float | Math::RandCFloat () |
Range -1..1. | |
float | Math::RandRange (const float min, const float max) |
Returns a random float number between and min [inclusive] and max [inclusive]. | |
int | Math::Clamp (const int i, const int min, const int max) |
Returns clamped value between min and max. | |
float | Math::Clampf (const float f, const float min, const float max) |
Returns clamped value between min and max. | |
float | Math::Lerp (float start, const float end, const float time) |
Linearly interpolates between start and end by time. | |
float | Math::CosTween (const float t) |
return (0.5f - (Cos(t * pi) * 0.5f)); | |
float | Math::CosArc (const float t) |
return (-((Cos(Deg2Rad(360.0f * t)) - 1.0f) * 0.5f)); | |
float | Math::SmoothStep (const float from, const float to, const float t) |
Interpolates between min and max with smoothing at the limits. | |
float | Math::HermiteBlend (const float a, const float b, const float t) |
float | Math::Min (const float a, const float b) |
Returns the smallest of the two values. | |
float | Math::Max (const float a, const float b) |
Returns the largest of the two values. | |
const int | Math::f2i (const float f) |
IEEE 754 float to int. | |
const float | Math::i2f (const int i) |
int to IEEE 754 float | |
kColor | kexColor_FromHSL (float hue, float sat, float lit) |
Not used. (garbage from kexengine) | |
kColor | kexColor_Random () |
Not used. (garbage from kexengine) | |
kColor | kexColor_Tab20 (uint i) |
Not used. (garbage from kexengine) | |
kColor | kexColor_Tab20Dark (uint i) |
Not used. (garbage from kexengine) | |
kColor | kexColor_Tab20Light (uint i) |
Not used. (garbage from kexengine) | |
kColor | kexColor_ViridisScale (float v) |
Not used. (garbage from kexengine) | |
kColor | kexColor_LerpRGB (const kColor &in from, const kColor &in to, float time) |
Not used. (garbage from kexengine) | |
void | delay (const float time) |
used in map scripts to delay execution of script | |
enum EnumActorFlags |
Definition at line 36 of file t1_scriptAPI.cpp.
enum EnumActorSpawnFlags1 |
Enumerator | ||
---|---|---|
ASF1_SOLID | 1 | |
ASF1_PROJECTILEATTACK1 | 2 | High Priest Flame Attack (anim_aiRangeAttack1) |
ASF1_LEADER | 4 | Flocker ai run toward Leaders to get attention. |
ASF1_SNAPTOFLOOR | 8 | |
ASF1_EXPLOSIONDEATH | 16 | NOT USED. |
ASF1_CLIMBWALLS | 32 | |
ASF1_PROJECTILEATTACK2 | 64 | Pistol Fire (anim_aiRangeAttack2) |
ASF1_NOREPEATEXPLOSION | 128 | NOT USED. |
ASF1_DIEONEXPLOSION | 256 | NOT USED. |
ASF1_FLOCKER | 512 | flocks to a leader kAI |
ASF1_SLOW | 1024 | NOT USED. |
ASF1_RANDOMRESURRECTION | 2048 | NOT USED. |
ASF1_RANDOMFEIGNDEATH | 4096 | NOT USED. |
ASF1_KAMIKAZE | 8192 | if has no target then targets player and sets agitation to 300 |
ASF1_AVOIDPLAYERS | 16384 | NOT USED. |
ASF1_FLOATINWATERONDEATH | 32768 | kAI will float up to the top of the water when they are dead |
ASF1_TELEPORT | 65536 | allows kAI to teleport on SetupAISpawnFlags |
ASF1_CASTSHADOW | 131072 | sets AF_CASTSHADOW on SetSpawnParams |
ASF1_TELEPORTWAIT | 262144 | allows enemy to move around for 1.5 - 4.5 seconds before teleporting back in. |
ASF1_USESTRONGATTACKS | 524288 | anim_aiMelee1 |
ASF1_USEWEAKATTACKS | 1048576 | anim_aiAltMelee1 |
ASF1_SNIPER | 2097152 | |
ASF1_MELTONDEATH | 4194304 | allows melt effect and regeneration |
ASF1_AVOIDWATER | 8388608 | sets AF_AVOIDWATER on SetSpawnParams |
ASF1_FLYING | 16777216 | NOT USED. |
ASF1_TELEPORTAVOIDWATER | 33554432 | |
ASF1_TELEPORTAVOIDCLIFFS | 67108864 | |
ASF1_TRIGGERSTUFF | 134217728 | Sets AF_TRIGGERSTUFF on SetupSpawnParams. |
ASF1_CANNOTCAUSEAFIGHT | 268435456 | if another actor was damaged by this actor with this flag set then other actor will not target this actor. |
ASF1_NOWALLCOLLISION | 536870912 | NOT USED. |
ASF1_SCREENSHAKE | 1073741824 | Used in floor mover scripts to shake screen. |
ASF1_RESPAWNANIMATION | -2147483648 | Enables respawning animation effect. |
Definition at line 72 of file t1_scriptAPI.cpp.
enum EnumActorSpawnFlags2 |
Definition at line 108 of file t1_scriptAPI.cpp.
enum EnumActorSpawnFlags3 |
Enumerator | ||
---|---|---|
ASF3_RETURNWARP | 1 | Used in portal scripts. |
ASF3_PLAYTRIGGERANIMONCE | 2 | MarkPersistentBit(false) when activated. |
ASF3_REGENERATEFROMSTART | 4 | Regen from starting position. |
ASF3_WALKINSTRAIGHTLINE | 8 | Set animation to Blend(ANIM_WALKING, (m_animSpeed * m_animScalar), 10, ANF_LOOP|ANF_ROOTMOTION); and do nothing else. |
ASF3_KILLOUTSIDEOFVIEW | 16 | NOT USED. |
ASF3_NOTHINKER | 32 | AI will not function. Actores will not update movement. Actors OnBeginLevel will set their animation to ANIM_SPECIAL_EVENT. |
ASF3_AVOIDPLAYERS2 | 64 | NOT USED. |
ASF3_NOVIOLENTDEATH | 128 | ANIM_AIDEATHSTAND and ANIM_DEATHSTANDALT will not play when kAI is killed. |
ASF3_PROJECTILEATTACK9 | 256 | Demon chest Hadoken (anim_aiRangeAttack9) |
ASF3_PROJECTILEATTACK10 | 512 | High Priest Lightning Red Flames (anim_aiRangeAttack10) |
ASF3_MAKESPAWNANIMVISIBLE | 1024 | clears actor flags: ~(AF_HIDDEN|AF_DISABLED) |
ASF3_NODRAWONCAMERA | 2048 | Will not draw this actor when viewing from camera unless camera flags has CMF_SHOW_HIDDEN_OBJECTS. |
Definition at line 144 of file t1_scriptAPI.cpp.
enum EnumAnimStateFlags |
Enumerator | ||
---|---|---|
ANF_BLEND | 1 | |
ANF_LOOP | 2 | |
ANF_STOPPED | 4 | |
ANF_NOINTERRUPT | 8 | |
ANF_ROOTMOTION | 16 | |
ANF_PAUSED | 32 | |
ANF_CYCLECOMPLETED | 64 | |
ANF_LINEARBLEND | 128 |
Definition at line 24 of file t1_scriptAPI.cpp.
enum EnumAreaFlags |
Enumerator | ||
---|---|---|
AAF_WATER | 1 | |
AAF_BLOCK | 2 | |
AAF_TOGGLE | 4 | if on and AAF_BLOCK is on then sectors won't be marked on automap until it's unblocked. Used for door areas. |
AAF_CLIFF | 8 | is a wall |
AAF_CLIMB | 16 | climb up sectors faster than AAF_LADDER |
AAF_ONESIDED | 32 | Bridge. |
AAF_CEILING | 64 | |
AAF_CRAWL | 128 | |
AAF_ENTERCRAWL | 256 | Exactly the same as AAF_CRAWL. |
AAF_HIDDEN | 512 | |
AAF_ENTERED | 1024 | Not shown in Editor. Used in kex editor only for fill sector commands. When map is saved in kex editor all sectors will have this flag off. |
AAF_SECRET | 2048 | |
AAF_RESTRICTED | 4096 | kAI can't enter the area |
AAF_SLOPETEST | 8192 | overrides AAF_CLIFF flag. If the sectors floor plane up direction is <= 0.5 then is a wall (a wall is the same as the AAF_CLIFF flag). |
AAF_DEATHPIT | 16384 | |
AAF_MAPPED | 32768 | |
AAF_EVENT | 65536 | |
AAF_REPEATABLE | 131072 | Unused. |
AAF_TELEPORT | 262144 | |
AAF_DAMAGE | 524288 | |
AAF_DRAWSKY | 1048576 | |
AAF_TELEPORTAIR | 2097152 | |
AAF_LAVA | 4194304 | |
AAF_EVENTSOUND | 8388608 | |
AAF_ANTIGRAVITY | 16777216 | |
AAF_LADDER | 33554432 | climb up sectors slower than AAF_CLIMB |
AAF_CHECKPOINT | 67108864 | |
AAF_SAVEGAME | 134217728 | |
AAF_WARPRETURN | 268435456 | Unused. |
AAF_SHALLOWWATER | 536870912 | |
AAF_DRAWSUN | 1073741824 | |
AAF_STOREWARPRETURN | -2147483648 | Unused. |
Definition at line 429 of file t1_scriptAPI.cpp.
enum EnumCameraFlags |
Definition at line 405 of file t1_scriptAPI.cpp.
enum EnumCameraLerpType |
Lerp type when doing AutoPlayPositionTrack, AutoPlayRotationTrack, or AutoPlayBlendTrack. When a view has one of those active the view's time variable is then increased by GAME_DELTA_TIME.
Definition at line 396 of file t1_scriptAPI.cpp.
enum EnumCameraStates |
Enumerator | ||
---|---|---|
CAMS_IDLE | 0 | |
CAMS_FADEOUT | 1 | |
CAMS_FADEIN | 2 | |
CAMS_ACTIVE | 3 | |
CAMS_ACTIVE_TO_FADEOUT | 4 | |
CAMS_FADEBACK_TO_CLIENT | 5 | |
CAMS_RESTORE_TO_CLIENT | 6 |
Definition at line 418 of file t1_scriptAPI.cpp.
enum EnumClipFlags |
Definition at line 350 of file t1_scriptAPI.cpp.
enum EnumClipResultFlags |
Definition at line 241 of file t1_scriptAPI.cpp.
enum EnumGameButtonEvents |
Enumerator | ||
---|---|---|
GBE_MENU_UP | 1 | |
GBE_MENU_RIGHT | 2 | |
GBE_MENU_DOWN | 4 | |
GBE_MENU_LEFT | 8 | |
GBE_MENU_SELECT | 16 | |
GBE_MENU_CANCEL | 32 | |
GBE_MENU_BACK | 64 | |
GBE_MENU_ACTIVATE | 128 | |
GBE_MENU_DESELECT | 256 | |
GBE_MENU_MOUSESELECT | 512 |
Definition at line 328 of file t1_scriptAPI.cpp.
enum EnumGameFontType |
Enumerator | ||
---|---|---|
GFT_BIG | 0 | |
GFT_SMALL | 1 | |
GFT_NUMBERS | 2 | |
GFT_TTF | 3 |
Definition at line 233 of file t1_scriptAPI.cpp.
enum EnumImpactType |
Enumerator | ||
---|---|---|
IT_DEFAULT | 0 | |
IT_WATER | 1 | |
IT_METAL | 2 | |
IT_STONE | 3 | |
IT_FLESH_HUMAN | 4 | |
IT_FLESH_CREATURE | 5 | |
IT_FLESH_UNDEAD | 6 | AKA IT_FLESH_WATER. |
IT_LAVA | 7 | |
IT_SLIME | 8 | |
IT_FORCEFIELD | 9 |
Definition at line 219 of file t1_scriptAPI.cpp.
enum EnumInputActions |
Enumerator | ||
---|---|---|
IA_ATTACK | 0 | |
IA_JUMP | 1 | |
IA_FORWARD | 2 | |
IA_BACKWARD | 3 | |
IA_STRAFELEFT | 4 | |
IA_STRAFERIGHT | 5 | |
IA_WEAPNEXT | 6 | |
IA_WEAPPREV | 7 | |
IA_MAPZOOMIN | 8 | |
IA_MAPZOOMOUT | 9 | |
IA_CUSTOM1 | 10 | |
IA_CUSTOM2 | 11 |
Definition at line 266 of file t1_scriptAPI.cpp.
enum EnumPlaneSide |
Enumerator | ||
---|---|---|
PSIDE_FRONT | 0 | |
PSIDE_BACK | 1 | |
PSIDE_ON | 2 |
Definition at line 1 of file t1_scriptAPI.cpp.
enum EnumPlayerButtons |
Enumerator | ||
---|---|---|
BC_ATTACK | 1 | |
BC_JUMP | 2 | |
BC_FORWARD | 4 | |
BC_BACKWARD | 8 | |
BC_STRAFELEFT | 16 | |
BC_STRAFERIGHT | 32 | |
BC_WEAPONRIGHT | 64 | |
BC_WEAPONLEFT | 128 | |
BC_MAPZOOMIN | 256 | |
BC_MAPZOOMOUT | 512 | |
BC_CUSTOM1 | 1024 | |
BC_CUSTOM2 | 2048 |
Definition at line 282 of file t1_scriptAPI.cpp.
enum EnumPlayerConButtons |
Definition at line 298 of file t1_scriptAPI.cpp.
enum EnumPlayerFlags |
Definition at line 160 of file t1_scriptAPI.cpp.
enum EnumPlayerFlags |
Definition at line 180 of file t1_scriptAPI.cpp.
enum EnumWaterLevel |
Definition at line 384 of file t1_scriptAPI.cpp.
enum EnumWeaponStates |
Definition at line 253 of file t1_scriptAPI.cpp.
enum kexLocPlatform_e |
< Not used (garbage included automatically from kexengine)
Definition at line 8 of file t1_scriptAPI.cpp.
void delay | ( | const float | time | ) |
used in map scripts to delay execution of script
kColor kexColor_FromHSL | ( | float | hue, |
float | sat, | ||
float | lit ) |
Not used. (garbage from kexengine)
Not used. (garbage from kexengine)
kColor kexColor_Random | ( | ) |
Not used. (garbage from kexengine)
kColor kexColor_Tab20 | ( | uint | i | ) |
Not used. (garbage from kexengine)
kColor kexColor_Tab20Dark | ( | uint | i | ) |
Not used. (garbage from kexengine)
kColor kexColor_Tab20Light | ( | uint | i | ) |
Not used. (garbage from kexengine)
kColor kexColor_ViridisScale | ( | float | v | ) |
Not used. (garbage from kexengine)
kActorFactory ActorFactory |
Definition at line 1930 of file t1_scriptAPI.cpp.
enum EnumPlayerFlags AIF_ATTACKING = 1 |
playing an attacking animation
enum EnumPlayerFlags AIF_AWAYFROMLEASH = 131072 |
enum EnumPlayerFlags AIF_BLOWNAWAY = 16 |
being blown away by explosion
enum EnumPlayerFlags AIF_DAMAGEPANIC |
become aggressive when target is outside it's active threshold (good for forcing AI to attack their target)
enum EnumPlayerFlags AIF_FEIGNDEATH = 128 |
enum EnumPlayerFlags AIF_FIRSTATTACK = 4 |
enum EnumPlayerFlags AIF_GETATTENTION = 16384 |
enum EnumPlayerFlags AIF_GOBACKTOLEASH = 32 |
enum EnumPlayerFlags AIF_HEARDLOUDNOISE = 8 |
enum EnumPlayerFlags AIF_HEARDQUIETNOISE = 65536 |
enum EnumPlayerFlags AIF_NOCHASE = 1024 |
disable chase logic
enum EnumPlayerFlags AIF_NOTHINK = 4096 |
don't run ai logic
enum EnumPlayerFlags AIF_REGENANIMDELAY = 32768 |
enum EnumPlayerFlags AIF_REGENERATE = 256 |
enum EnumPlayerFlags AIF_REGENERATEANIM = 2048 |
enum EnumPlayerFlags AIF_RESSURECT = 64 |
enum EnumPlayerFlags AIF_RUNNING = 8192 |
Is playing running animation.
enum EnumPlayerFlags AIF_SEETARGET = 512 |
enum EnumPlayerFlags AIF_TELEPORTAWAY = 262144 |
playing teleport out animation
enum EnumPlayerFlags AIF_TELEPORTIN = 2097152 |
playing teleport in animation
enum EnumPlayerFlags AIF_TELEPORTING = 1048576 |
in teleport state. ignore all chase logic
enum EnumPlayerFlags AIF_TELEPORTMOVESLOW = 524288 |
chasing while underground
enum EnumPlayerFlags AIF_WAITFORCYCLE = 4194304 |
prevent other animations from interrupting until the current one finishes
enum EnumPlayerFlags AIF_WASSOLID = 2 |
kCamera Camera |
Definition at line 1933 of file t1_scriptAPI.cpp.
kCModel CModel |
Definition at line 1935 of file t1_scriptAPI.cpp.
enum EnumGameButtonEvents DIFFICULTY_EASY = 0 |
enum EnumGameButtonEvents DIFFICULTY_HARD = 2 |
enum EnumGameButtonEvents DIFFICULTY_HARDCORE |
enum EnumGameButtonEvents DIFFICULTY_NORMAL = 1 |
kGame Game |
Definition at line 1929 of file t1_scriptAPI.cpp.
const float GAME_DELTA_TIME = 0.016666668f |
Definition at line 1922 of file t1_scriptAPI.cpp.
const float GAME_FRAME_TIME = 0.25f |
Definition at line 1921 of file t1_scriptAPI.cpp.
const float GAME_FRAME_UNIT = 4.0f |
Definition at line 1923 of file t1_scriptAPI.cpp.
const float GAME_SCALE = 10.24f |
Definition at line 1925 of file t1_scriptAPI.cpp.
const float GAME_SECONDS = 0.06666667f |
Definition at line 1924 of file t1_scriptAPI.cpp.
kDict GameModFileData |
Use with Game.SaveModFile and Game.LoadModFile.
Definition at line 1928 of file t1_scriptAPI.cpp.
kDict GameVariables |
Definition at line 1927 of file t1_scriptAPI.cpp.
kPlayer Player |
Definition at line 1932 of file t1_scriptAPI.cpp.
kPlayLoop PlayLoop |
Definition at line 1931 of file t1_scriptAPI.cpp.
kSys Sys |
Definition at line 1926 of file t1_scriptAPI.cpp.
kWorld World |
Definition at line 1934 of file t1_scriptAPI.cpp.