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 | kFx |
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 | kFxIterator |
The way to iterate through all Fx in the map. Example code: More... | |
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 | |
void | kStrSplit (const kStr &in s, const kStr &in sep) |
kStr | kStrSplitGet (const int index) |
returns the string at index | |
uint | kStrSplitLength () |
returns the amount of strings that were split | |
void | kStrSplitClear () |
clear the list of split strings after your done. Not required to call because it gets cleared when you call kStrSplit but if you don't want those strings still hanging around you can clear them now. | |
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) | |
int | kexRandInt () |
Range -2147483648..2147483647. | |
uint | kexRandUInt () 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. Actors 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 EnumAIFlags |
Definition at line 208 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 446 of file t1_scriptAPI.cpp.
enum EnumCameraFlags |
Definition at line 422 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 413 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 435 of file t1_scriptAPI.cpp.
enum EnumCheatFlags |
Definition at line 192 of file t1_scriptAPI.cpp.
enum EnumClipFlags |
Definition at line 367 of file t1_scriptAPI.cpp.
enum EnumClipResultFlags |
Definition at line 258 of file t1_scriptAPI.cpp.
enum EnumDifficulty |
Enumerator | ||
---|---|---|
DIFFICULTY_EASY | 0 | |
DIFFICULTY_NORMAL | 1 | |
DIFFICULTY_HARD | 2 | |
DIFFICULTY_HARDCORE | 3 |
Definition at line 359 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 345 of file t1_scriptAPI.cpp.
enum EnumGameFontType |
Enumerator | ||
---|---|---|
GFT_BIG | 0 | |
GFT_SMALL | 1 | |
GFT_NUMBERS | 2 | |
GFT_TTF | 3 |
Definition at line 250 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 236 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 283 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 299 of file t1_scriptAPI.cpp.
enum EnumPlayerConButtons |
Definition at line 315 of file t1_scriptAPI.cpp.
enum EnumPlayerFlags |
Definition at line 160 of file t1_scriptAPI.cpp.
enum EnumPlayerStates |
Enumerator | ||
---|---|---|
PS_WALKING | 0 | |
PS_JUMPING | 1 | |
PS_CLIMBING | 2 | |
PS_SWIMMING | 3 | |
PS_UNDERWATER | 4 | |
PS_FALLDEATH | 5 | |
PS_ANTIGRAVITY | 6 |
Definition at line 181 of file t1_scriptAPI.cpp.
enum EnumWaterLevel |
Definition at line 401 of file t1_scriptAPI.cpp.
enum EnumWeaponStates |
Definition at line 270 of file t1_scriptAPI.cpp.
enum kexLocPlatform_e |
< Not used (garbage included automatically from kexengine)
Definition at line 8 of file t1_scriptAPI.cpp.
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)
int kexRandInt | ( | ) |
Range -2147483648..2147483647.
uint kexRandUInt | ( | ) | const |
used in map scripts to delay execution of script
s | the string you want to split |
sep | the separators you want to use to split the string kStr myString = "Hello,World!";
kStrSplit(myString, ",");
for(uint i = 0; i < kStrSplitLength(); i++)
{
kStr stringPart = kStrSplitGet(i);
}
void kStrSplit(const kStr &in s, const kStr &in sep) void kStrSplitClear() clear the list of split strings after your done. Not required to call because it gets cleared when yo... |
void kStrSplitClear | ( | ) |
clear the list of split strings after your done. Not required to call because it gets cleared when you call kStrSplit but if you don't want those strings still hanging around you can clear them now.
kStr kStrSplitGet | ( | const int | index | ) |
returns the string at index
uint kStrSplitLength | ( | ) |
returns the amount of strings that were split
kActorFactory ActorFactory |
Definition at line 2357 of file t1_scriptAPI.cpp.
kCamera Camera |
Definition at line 2360 of file t1_scriptAPI.cpp.
kCModel CModel |
Definition at line 2362 of file t1_scriptAPI.cpp.
kGame Game |
Definition at line 2356 of file t1_scriptAPI.cpp.
const float GAME_DELTA_TIME = 0.016666668f |
Definition at line 2349 of file t1_scriptAPI.cpp.
const float GAME_FRAME_TIME = 0.25f |
Definition at line 2348 of file t1_scriptAPI.cpp.
const float GAME_FRAME_UNIT = 4.0f |
Definition at line 2350 of file t1_scriptAPI.cpp.
const float GAME_SCALE = 10.24f |
Definition at line 2352 of file t1_scriptAPI.cpp.
const float GAME_SECONDS = 0.06666667f |
Definition at line 2351 of file t1_scriptAPI.cpp.
kDict GameModFileData |
Use with Game.SaveModFile, Game.LoadModFile, and Game.LoadModDataFile.
Definition at line 2355 of file t1_scriptAPI.cpp.
kDict GameVariables |
Definition at line 2354 of file t1_scriptAPI.cpp.
kPlayer Player |
Definition at line 2359 of file t1_scriptAPI.cpp.
kPlayLoop PlayLoop |
Definition at line 2358 of file t1_scriptAPI.cpp.
kSys Sys |
Definition at line 2353 of file t1_scriptAPI.cpp.
kWorld World |
Definition at line 2361 of file t1_scriptAPI.cpp.