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 | kScriptObjectFx |
| class | ScriptObject |
| Actor script classes must inherit from this class. More... | |
| class | ScriptObjectWeapon |
| Weapon script classes must inherit from this class. More... | |
| class | ScriptObjectPlayer |
| Player script class must inherit from this class. More... | |
| class | ScriptObjectFx |
| Fx script class must inherit from this class. More... | |
| 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 |
| class | kScriptTMap |
| A map/dictionary that stores key/values as kStr. Example code to iterate each key/value: More... | |
Namespaces | |
| namespace | kexVibrationPlayer |
| namespace | kexColors |
| < Not used (garbage included automatically from kexengine) | |
Functions | |
| class kScriptTMap | Sin (float f) |
| Returns the sine of angle f in radians. | |
| void | ItBegin () |
| Resets the iterator back to the first key/value. | |
| bool | ItNext (kStr &out key, kStr &out value) |
| key and value is set to the next key/value in the iterator. Returns false if reached the end. | |
| bool | Add (const kStr &in key, const kStr &in value) |
| if the key doesn't exist then adds the key/value and returns false. If the key already exists then sets the value and returns true. | |
| bool | Find (const kStr &in key, kStr &out value) |
| if the key exists then sets value and returns true. If key was not found then returns false. | |
| bool | HasKey (const kStr &in key) |
| Returns true if the key exists. | |
| bool | Remove (const kStr &in key) |
| Removes the key if it exists and returns true. | |
| void | Clear () |
| bool | IsEmpty () |
| uint | Count () |
| float | Cos (float f) |
| Returns the cosine of angle f in radians. | |
| float | Tan (float f) |
| Returns the tangent of angle f in radians. | |
| float | ATan2 (float y, float x) |
| Returns the angle in radians whose Tan is y/x. | |
| float | Fabs (float f) |
| Returns the absolute value of f. | |
| float | ACos (float f) |
| Returns the arc-cosine of f - the angle in radians whose cosine is f. | |
| float | Sqrt (float f) |
| Returns square root of f. | |
| int | Abs (int i) |
| Returns the absolute value of i. | |
| float | Ceil (float f) |
| Returns the smallest integer greater to or equal to f. | |
| float | Floor (float f) |
| Returns the largest integer smaller to or equal to f. | |
| float | Log (float f) |
| Returns the natural (base e) logarithm of a specified number. | |
| float | Pow (float x, float y) |
| Returns f raised to power p. | |
| float | Deg2Rad (float degs) |
| Degrees-to-radians conversion. | |
| float | Rad2Deg (float rads) |
| Radians-to-Degrees conversion. | |
| float | InvSqrt (float f) |
| Returns inverse square root of f. | |
| float | IncMax (const float val, const float inc, const float dest) |
| returns val +(or minus) inc and never goes above or below dest value | |
| int | SysRand () |
| Range 0..32767. | |
| int | Rand () |
| Range 0..32767. | |
| uint8 | RandByte () |
| Range 0..255. | |
| int | RandMax (const int max) |
| Range 0..max-1. | |
| float | 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 | 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 | RandFloat () |
| Range 0..1. | |
| float | RandCFloat () |
| Range -1..1. | |
| float | RandRange (const float min, const float max) |
| Returns a random float number between and min [inclusive] and max [inclusive]. | |
| int | Clamp (const int i, const int min, const int max) |
| Returns clamped value between min and max. | |
| float | Clampf (const float f, const float min, const float max) |
| Returns clamped value between min and max. | |
| float | Lerp (float start, const float end, const float time) |
| Linearly interpolates between start and end by time. | |
| float | CosTween (const float t) |
| return (0.5f - (Cos(t * pi) * 0.5f)); | |
| float | CosArc (const float t) |
| return (-((Cos(Deg2Rad(360.0f * t)) - 1.0f) * 0.5f)); | |
| float | SmoothStep (const float from, const float to, const float t) |
| Interpolates between min and max with smoothing at the limits. | |
| float | HermiteBlend (const float a, const float b, const float t) |
| float | Min (const float a, const float b) |
| Returns the smallest of the two values. | |
| float | Max (const float a, const float b) |
| Returns the largest of the two values. | |
| const int | f2i (const float f) |
| IEEE 754 float to int. | |
| const float | 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. | |
| void | GameVarsSetAdd (const kStr &in key, const kStr &in value) |
| Adds the key and value to GameVariables if it doesn't exist otherwise sets the existing keys value. | |
| void | GameModFileDataSetAdd (const kStr &in key, const kStr &in value) |
| Adds the key and value to GameModFileData if it doesn't exist otherwise sets the existing keys value. | |
| 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 () |
| Range 0..4294967295. | |
| 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 << 0 | |
| ASF1_PROJECTILEATTACK1 | 1 << 1 | High Priest Flame Attack (anim_aiRangeAttack1) |
| ASF1_LEADER | 1 << 2 | Flocker ai run toward Leaders to get attention. |
| ASF1_SNAPTOFLOOR | 1 << 3 | |
| ASF1_EXPLOSIONDEATH | 1 << 4 | NOT USED. |
| ASF1_CLIMBWALLS | 1 << 5 | |
| ASF1_PROJECTILEATTACK2 | 1 << 6 | Pistol Fire (anim_aiRangeAttack2) |
| ASF1_NOREPEATEXPLOSION | 1 << 7 | NOT USED. |
| ASF1_DIEONEXPLOSION | 1 << 8 | NOT USED. |
| ASF1_FLOCKER | 1 << 9 | flocks to a leader kAI |
| ASF1_SLOW | 1 << 10 | NOT USED. |
| ASF1_RANDOMRESURRECTION | 1 << 11 | NOT USED. |
| ASF1_RANDOMFEIGNDEATH | 1 << 12 | NOT USED. |
| ASF1_KAMIKAZE | 1 << 13 | if has no target then targets player and sets agitation to 300 |
| ASF1_AVOIDPLAYERS | 1 << 14 | NOT USED. |
| ASF1_FLOATINWATERONDEATH | 1 << 15 | kAI will float up to the top of the water when they are dead |
| ASF1_TELEPORT | 1 << 16 | allows kAI to teleport on SetupAISpawnFlags |
| ASF1_CASTSHADOW | 1 << 17 | sets AF_CASTSHADOW on SetSpawnParams |
| ASF1_TELEPORTWAIT | 1 << 18 | allows enemy to move around for 1.5 - 4.5 seconds before teleporting back in. |
| ASF1_USESTRONGATTACKS | 1 << 19 | anim_aiMelee1 |
| ASF1_USEWEAKATTACKS | 1 << 20 | anim_aiAltMelee1 |
| ASF1_SNIPER | 1 << 21 | |
| ASF1_MELTONDEATH | 1 << 22 | allows melt effect and regeneration |
| ASF1_AVOIDWATER | 1 << 23 | sets AF_AVOIDWATER on SetSpawnParams |
| ASF1_FLYING | 1 << 24 | NOT USED. |
| ASF1_TELEPORTAVOIDWATER | 1 << 25 | |
| ASF1_TELEPORTAVOIDCLIFFS | 1 << 26 | |
| ASF1_TRIGGERSTUFF | 1 << 27 | Sets AF_TRIGGERSTUFF on SetupSpawnParams. |
| ASF1_CANNOTCAUSEAFIGHT | 1 << 28 | if another actor was damaged by this actor with this flag set then other actor will not target this actor. |
| ASF1_NOWALLCOLLISION | 1 << 29 | NOT USED. |
| ASF1_SCREENSHAKE | 1 << 30 | Used in floor mover scripts to shake screen. |
| ASF1_RESPAWNANIMATION | 1 << 31 | 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 << 0 | Used in portal scripts. |
| ASF3_PLAYTRIGGERANIMONCE | 1 << 1 | MarkPersistentBit(false) when activated. |
| ASF3_REGENERATEFROMSTART | 1 << 2 | Regen from starting position. |
| ASF3_WALKINSTRAIGHTLINE | 1 << 3 | Set animation to Blend(ANIM_WALKING, (m_animSpeed * m_animScalar), 10, ANF_LOOP|ANF_ROOTMOTION); and do nothing else. |
| ASF3_KILLOUTSIDEOFVIEW | 1 << 4 | NOT USED. |
| ASF3_NOTHINKER | 1 << 5 | AI will not function. Actors will not update movement. Actors OnBeginLevel will set their animation to ANIM_SPECIAL_EVENT. |
| ASF3_AVOIDPLAYERS2 | 1 << 6 | NOT USED. |
| ASF3_NOVIOLENTDEATH | 1 << 7 | ANIM_AIDEATHSTAND and ANIM_DEATHSTANDALT will not play when kAI is killed. |
| ASF3_PROJECTILEATTACK9 | 1 << 8 | Demon chest Hadoken (anim_aiRangeAttack9) |
| ASF3_PROJECTILEATTACK10 | 1 << 9 | High Priest Lightning Red Flames (anim_aiRangeAttack10) |
| ASF3_MAKESPAWNANIMVISIBLE | 1 << 10 | clears actor flags: ~(AF_HIDDEN|AF_DISABLED) |
| ASF3_NODRAWONCAMERA | 1 << 11 | 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 << 0 | |
| ANF_LOOP | 1 << 1 | |
| ANF_STOPPED | 1 << 2 | |
| ANF_NOINTERRUPT | 1 << 3 | |
| ANF_ROOTMOTION | 1 << 4 | |
| ANF_PAUSED | 1 << 5 | |
| ANF_CYCLECOMPLETED | 1 << 6 | |
| ANF_LINEARBLEND | 1 << 7 | |
Definition at line 24 of file t1_scriptAPI.cpp.
| enum EnumAreaFlags |
| Enumerator | ||
|---|---|---|
| AAF_WATER | 1 << 0 | |
| AAF_BLOCK | 1 << 1 | |
| AAF_TOGGLE | 1 << 2 | 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 | 1 << 3 | is a wall |
| AAF_CLIMB | 1 << 4 | climb up sectors faster than AAF_LADDER |
| AAF_ONESIDED | 1 << 5 | Bridge. |
| AAF_CEILING | 1 << 6 | |
| AAF_CRAWL | 1 << 7 | |
| AAF_ENTERCRAWL | 1 << 8 | Exactly the same as AAF_CRAWL except actors won't collide with this sector when CF_ALLOWCRAWL is not set. |
| AAF_HIDDEN | 1 << 9 | |
| AAF_ENTERED | 1 << 10 | 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 | 1 << 11 | |
| AAF_RESTRICTED | 1 << 12 | kAI can't enter the area |
| AAF_SLOPETEST | 1 << 13 | 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 | 1 << 14 | |
| AAF_MAPPED | 1 << 15 | |
| AAF_EVENT | 1 << 16 | |
| AAF_REPEATABLE | 1 << 17 | Unused. In the original game this is used in combination with AAF_EVENT and will only trigger the event if the actor has also collided with a wall. |
| AAF_TELEPORT | 1 << 18 | |
| AAF_DAMAGE | 1 << 19 | |
| AAF_DRAWSKY | 1 << 20 | |
| AAF_TELEPORTAIR | 1 << 21 | |
| AAF_LAVA | 1 << 22 | |
| AAF_EVENTSOUND | 1 << 23 | |
| AAF_ANTIGRAVITY | 1 << 24 | |
| AAF_LADDER | 1 << 25 | climb up sectors slower than AAF_CLIMB |
| AAF_CHECKPOINT | 1 << 26 | |
| AAF_SAVEGAME | 1 << 27 | |
| AAF_WARPRETURN | 1 << 28 | In Remaster it's used as a PlayerBlocking sector. used with clipflag CF_COLLIDEPLAYERBLOCKER. |
| AAF_SHALLOWWATER | 1 << 29 | |
| AAF_DRAWSUN | 1 << 30 | |
| AAF_STOREWARPRETURN | 1 << 31 | Unused. |
Definition at line 448 of file t1_scriptAPI.cpp.
| enum EnumCameraFlags |
Definition at line 423 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 414 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 437 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 EnumCustomHUDFlags |
Definition at line 500 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 |
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 |
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 |
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.
Definition at line 484 of file t1_scriptAPI.cpp.
| enum EnumWaterLevel |
Definition at line 402 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.
| int Abs | ( | int | i | ) |
Returns the absolute value of i.
| float 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 ACos | ( | float | f | ) |
Returns the arc-cosine of f - the angle in radians whose cosine is f.
if the key doesn't exist then adds the key/value and returns false. If the key already exists then sets the value and returns true.
| float ATan2 | ( | float | y, |
| float | x ) |
Returns the angle in radians whose Tan is y/x.
| float Ceil | ( | float | f | ) |
Returns the smallest integer greater to or equal to f.
| int Clamp | ( | const int | i, |
| const int | min, | ||
| const int | max ) |
Returns clamped value between min and max.
| float Clampf | ( | const float | f, |
| const float | min, | ||
| const float | max ) |
Returns clamped value between min and max.
| void Sin::Clear | ( | ) |
| float Cos | ( | float | f | ) |
Returns the cosine of angle f in radians.
| float CosArc | ( | const float | t | ) |
return (-((Cos(Deg2Rad(360.0f * t)) - 1.0f) * 0.5f));
| float CosTween | ( | const float | t | ) |
return (0.5f - (Cos(t * pi) * 0.5f));
| uint Sin::Count | ( | ) |
| float Deg2Rad | ( | float | degs | ) |
Degrees-to-radians conversion.
| void delay | ( | const float | time | ) |
used in map scripts to delay execution of script
| const int f2i | ( | const float | f | ) |
IEEE 754 float to int.
| float Fabs | ( | float | f | ) |
Returns the absolute value of f.
if the key exists then sets value and returns true. If key was not found then returns false.
| float Floor | ( | float | f | ) |
Returns the largest integer smaller to or equal to f.
Adds the key and value to GameModFileData if it doesn't exist otherwise sets the existing keys value.
Adds the key and value to GameVariables if it doesn't exist otherwise sets the existing keys value.
| bool Sin::HasKey | ( | const kStr &in | key | ) |
Returns true if the key exists.
| float HermiteBlend | ( | const float | a, |
| const float | b, | ||
| const float | t ) |
| const float i2f | ( | const int | i | ) |
int to IEEE 754 float
| float IncMax | ( | const float | val, |
| const float | inc, | ||
| const float | dest ) |
returns val +(or minus) inc and never goes above or below dest value
| float InvSqrt | ( | float | f | ) |
Returns inverse square root of f.
| bool Sin::IsEmpty | ( | ) |
| void Sin::ItBegin | ( | ) |
Resets the iterator back to the first key/value.
key and value is set to the next key/value in the iterator. Returns false if reached the end.
| 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 | ( | ) |
Range 0..4294967295.
| 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
| float Lerp | ( | float | start, |
| const float | end, | ||
| const float | time ) |
Linearly interpolates between start and end by time.
| float Log | ( | float | f | ) |
Returns the natural (base e) logarithm of a specified number.
| float Max | ( | const float | a, |
| const float | b ) |
Returns the largest of the two values.
| float Min | ( | const float | a, |
| const float | b ) |
Returns the smallest of the two values.
| float 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 Pow | ( | float | x, |
| float | y ) |
Returns f raised to power p.
| float Rad2Deg | ( | float | rads | ) |
Radians-to-Degrees conversion.
| int Rand | ( | ) |
Range 0..32767.
| uint8 RandByte | ( | ) |
Range 0..255.
| float RandCFloat | ( | ) |
Range -1..1.
| float RandFloat | ( | ) |
Range 0..1.
| int RandMax | ( | const int | max | ) |
Range 0..max-1.
| float RandRange | ( | const float | min, |
| const float | max ) |
Returns a random float number between and min [inclusive] and max [inclusive].
| bool Sin::Remove | ( | const kStr &in | key | ) |
Removes the key if it exists and returns true.
| class kScriptTMap Sin | ( | float | f | ) |
Returns the sine of angle f in radians.
| float SmoothStep | ( | const float | from, |
| const float | to, | ||
| const float | t ) |
Interpolates between min and max with smoothing at the limits.
| float Sqrt | ( | float | f | ) |
Returns square root of f.
| int SysRand | ( | ) |
Range 0..32767.
| float Tan | ( | float | f | ) |
Returns the tangent of angle f in radians.
| kActorFactory ActorFactory |
Definition at line 2601 of file t1_scriptAPI.cpp.
| kCamera Camera |
Definition at line 2604 of file t1_scriptAPI.cpp.
| kCModel CModel |
Definition at line 2606 of file t1_scriptAPI.cpp.
| kGame Game |
Definition at line 2600 of file t1_scriptAPI.cpp.
| const float GAME_DELTA_TIME = 0.016666668f |
Definition at line 2593 of file t1_scriptAPI.cpp.
| const float GAME_FRAME_TIME = 0.25f |
Definition at line 2592 of file t1_scriptAPI.cpp.
| const float GAME_FRAME_UNIT = 4.0f |
Definition at line 2594 of file t1_scriptAPI.cpp.
| const float GAME_SCALE = 10.24f |
Definition at line 2596 of file t1_scriptAPI.cpp.
| const float GAME_SECONDS = 0.06666667f |
Definition at line 2595 of file t1_scriptAPI.cpp.
| kDict GameModFileData |
Use with Game.SaveModFile, Game.LoadModFile, and Game.LoadModDataFile.
Definition at line 2599 of file t1_scriptAPI.cpp.
| kDict GameVariables |
Definition at line 2598 of file t1_scriptAPI.cpp.
| const float pi = 3.1415927f |
Definition at line 2521 of file t1_scriptAPI.cpp.
| kPlayer Player |
Definition at line 2603 of file t1_scriptAPI.cpp.
| kPlayLoop PlayLoop |
Definition at line 2602 of file t1_scriptAPI.cpp.
| kSys Sys |
Definition at line 2597 of file t1_scriptAPI.cpp.
| const float tau = 6.2831855f |
pi * 2
Definition at line 2522 of file t1_scriptAPI.cpp.
| const kVec3 vecZero(0.0f, 0.0f, 0.0f) | ( | 0. | 0f, |
| 0. | 0f, | ||
| 0. | 0f ) |
| kWorld World |
Definition at line 2605 of file t1_scriptAPI.cpp.