q2w bsp format support.

automatic lightmap texture scaling to retain more performance on large maps.
r_clutter preliminary implementation should probably fix up the shader still.
CSQC_Parse_Damage implemented.
finally implement q2 inventory.
fix mixer overflow crash.
glsl can now use s_diffuse etc to force inclusion of a diffuse sampler/texture, meaning shaders don't need to include them.
fix issue with writeip

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4841 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2015-03-03 00:14:43 +00:00
parent 02ab57490e
commit bed989f529
100 changed files with 3502 additions and 2204 deletions

View file

@ -51,28 +51,28 @@ typedef struct plugin_s {
int blockcloses;
void *inputptr;
unsigned int inputbytes;
size_t inputbytes;
int tick;
int executestring;
qintptr_t tick;
qintptr_t executestring;
#ifndef SERVERONLY
int consolelink;
int consolelinkmouseover;
int conexecutecommand;
int menufunction;
int sbarlevel[3]; //0 - main sbar, 1 - supplementry sbar sections (make sure these can be switched off), 2 - overlays (scoreboard). menus kill all.
int reschange;
qintptr_t consolelink;
qintptr_t consolelinkmouseover;
qintptr_t conexecutecommand;
qintptr_t menufunction;
qintptr_t sbarlevel[3]; //0 - main sbar, 1 - supplementry sbar sections (make sure these can be switched off), 2 - overlays (scoreboard). menus kill all.
qintptr_t reschange;
//protocol-in-a-plugin
int connectionlessclientpacket;
qintptr_t connectionlessclientpacket;
//called to discolour console input text if they spelt it wrongly
int spellcheckmaskedtext;
qintptr_t spellcheckmaskedtext;
#endif
int svmsgfunction;
int chatmsgfunction;
int centerprintfunction;
int shutdown;
qintptr_t svmsgfunction;
qintptr_t chatmsgfunction;
qintptr_t centerprintfunction;
qintptr_t shutdown;
struct plugin_s *next;
} plugin_t;
@ -372,7 +372,7 @@ static qintptr_t VARGS Plug_Sys_CloseLibrary(void *offset, quintptr_t mask, cons
static qintptr_t VARGS Plug_ExportToEngine(void *offset, quintptr_t mask, const qintptr_t *arg)
{
char *name = (char*)VM_POINTER(arg[0]);
unsigned int functionid = VM_LONG(arg[1]);
quintptr_t functionid = arg[1];
if (!strcmp(name, "Tick")) //void(int realtime)
currentplug->tick = functionid;