JK Patcher & CogExt.dll
== JK.exe Patch ==
The JK.exe Patch is changes to the main executable of Jedi Knight, to allow expansion of the engine itself.
Patches and the program to apply them can be found at the [http://www.jkhub.net/project/show.php?projid=212 JK Patcher Project].
== Limit Expanders ==
As of right now (04-04-06) the only limits that have been 'removed' (Increased is more like it) are Adjoins in view, Thing Limit, and Cog Verbs. You can have 5000 adjoins in view, 187144 things, and 16384 cog verbs/cog messages.
In order to have more things in your level, one only need apply the patch and edit your level.jkl, however, this will soon be changed so that no modifying of a level.jkl is needed.
Also, pretty soon, Sige will have cracked the Resource Loading Limit.
== Extended Cog Dll ==
This is where new cog verbs are coded in.
New cog verbs:
GetPlayerPitch(); - returns local player headpitch in degrees (limited by min & maxheadpitch in template)
GetPlayerLVec(); - returns local player headpitch as an LVec, so using FireProjectile and grabbing the LVec of that thing is obsolete now
HeapSave(string "Path\filename.ext"); - Saves the calling cogs heap to the path and filename specified
HeapLoad(string "Path\filename.ext"); - Loads the heap into the calling cogs heap array. Automatically creates heap, returns 1 for success, 0 for failure.
Sqrt(float any_number); - Square Root
Sin(float radians); - Sine
Cos(float radians); - Cosine
AIGetAlignment(thing AI_thing); - Gets alignment of AI thing
AISetAlignment(thing AI_thing, float alignment); - Sets alignment of AI thing