This commit is contained in:
Robert MacGregor 2015-06-27 14:01:45 -04:00
commit e40490e698
2 changed files with 4 additions and 24 deletions

View file

@ -1,25 +1,4 @@
TSExtension
WatchDog
=====
A general extension to the Torque Scripting language.
Additions
====
#### GrenadeProjectile.getVelocity()
This function did not exist before in Torque Script. It returns the current velocity vector of a GrenadeProjectile.
#### GrenadeProjectile.getPosition()
This function already existed to return the position of a GrenadeProjectile object but it is now much more accurate.
#### Player.isJetting()
This function did not exist before in Torque Script, it returns whether or not the Player is currently jetting.
#### Player.isJumping()
This function did not exist before in Torque Script, it returns whether or not the Player is currently jumping.
#### sprintf(format, ...)
This function did not exist before in Torque Script. It returns a formatted string according to format with all variable
arguments up to a total of twenty filled in. Refer to C's sprintf for more information.
Note: Only %s should be used in the format as Torque Script passes all data around as strings.
A dog that watches your game. In essence, all it does is spawns a secondary thread that awaits to be "petted" by the main thread from its ServerProcess method. In the event that the main thread takes too long to pet the dog (by default, around 8 seconds), the entire process is terminated by the watchdog thread. Tribes 2 is apparently prone to a lot of lockups, many with no apparent cause. This Watchdog makes it possible for the game to detect that it has been caught in an infinite loop somewhere and could potentially be modified to take corrective action.

View file

@ -21,7 +21,7 @@ What is it?
Tribes 2 C++ (T2CPP) provides a C++ API on top of the existing API left by [Linker](http://www.the-construct.net/forums/showthread.php?t=500&highlight=Linker).
This is all provided from a custom built replacement IFC22.dll replacement for the game which was reverse engineered from the [IFC22.dll implementation](http://rdb.internectual.net/t2) of [TribesNext](http://www.tribesnext.com) by LouCypher.
The template coding for my IFC22.dll can be found [[https://github.com/Ragora/T2-IFC22Template|here]] and the project page for T2CPP itself is [[https://github.com/Ragora/T2-CPP|here]].
The template coding for my IFC22.dll can be found [here](https://github.com/Ragora/T2-IFC22Template|here) and the project page for T2CPP itself is [here](https://github.com/Ragora/T2-CPP|here).
In this Repository
====
@ -33,6 +33,7 @@ The T2CPP project also contains sources for three different mods, which are list
| [Template Mod](https://github.com/Ragora/T2-CPP/tree/master/Mod%20Sources/BaseMod) |
| [TSExtension](https://github.com/Ragora/T2-CPP/tree/master/Mod%20Sources/TSExtension) |
| [Random Mod](https://github.com/Ragora/T2-CPP/tree/master/Mod%20Sources/RandomMod) |
| [Watchdog](https://github.com/Ragora/T2-CPP/tree/master/Mod%20Sources/Watchdog) |
Usage
====