GameMonkey ScriptMod 1.1 is nearly finished, with alot of new functions, events, and hooks!
A little list of what you can expect in the new version:
- A re-organised script structure
- alot of new hooks:
//the extraVar is only used when the EV_OBITUARY event is called.
//all other variables are set -1 as default, and are overwritten IF used in that event.
global GMSM_GAME_EVENTS = function (event,otherEntityNum, otherEntityNum2, eventParm, extraVar){
};
global GAME_CLIENT_USERINFO_CHANGED = function(clientNum){
};
//called on end of map/level or server quitting, before actual exit.
global GAME_SHUTDOWN = function(restart){
};
//called on game load/startup.
global GAME_INIT = function(levelTime, randomSeed, restart){
};
// called when a client's connection is established, map loaded, and ready to start playing (i.e. supply user inputs).
global GAME_CLIENT_BEGIN = function(clientNum){
};
global GAME_CLIENT_THINK = function(clientNum){ //the GMSM runs this function every frame, for clientbound timers in example
};
global GAME_CLIENT_DISCONNECT = function(clientNum){ //clientdisconnect, clear out the playerList table for example
};
global GAME_RUN_FRAME = function(levelTime){ //handle general timers, for maybe advertising purposes
};
global GET_CLIENT_VELOCITY_Z_IMPACT=function(clientNum){ //this is called by GMSM when a player tries the /hjump command.
return 0;
};
and alot of more exiciting new features.
So stay tuned as we are going to release GMSM 1.1 this week!