One being the viewing of the inventory screen is controlled via an addstat, this passes the value of a float when it should be using an integer to represent whether the inventory is on or off, to fix this and press TAB (as it should) to view the inventory open up the file:
sv_main.qc
go to the line that says this:
Code: Select all
SV_AddStatFloat(36, 8, ToggleInventory);
Code: Select all
SV_AddStatFloat(36, 2, ToggleInventory);
but alas! Another issue once fixing this is previously with DP required you to do your own math to figure out the mouse location correctly. This is in the client side QC. Right now if you compile and run it it should look like the mouse can never leave the bottom right quadrant of the screen, so lets fix that.
open up: CL_GenericCollision.qc located in QC_Source/client/cl_inventory/
find this function:
Code: Select all
vector() GetCursorPos =
{
local vector pos, vid_size;
vid_size_x = cvar("vid_conwidth");
vid_size_y = cvar("vid_conheight");
pos = vid_size*0.5 + getmousepos();
return pos;
};
Code: Select all
vector() GetCursorPos =
{
return getmousepos();
};
To compile the progs/csprogs requires of course your own qc compiler (I used fteqcc).
place one in the QC_Source directory and run it to compile the progs,
and do the same in the QC_Source/client/ directory and run it to compile the csprogs
good luck!