halflife-thewastes-sdk/cl_dll
2023-09-09 05:00:07 +03:00
..
hl Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
thewastes client: add const where it needs to be 2023-09-09 02:58:37 +03:00
ammo_secondary.cpp Replace min/max macros by Q_min/Q_max to make newer C++ stdlib happy 2023-09-06 05:01:28 +03:00
ammo.cpp Replace min/max macros by Q_min/Q_max to make newer C++ stdlib happy 2023-09-06 05:01:28 +03:00
ammo.h Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
ammohistory.cpp Replace min/max macros by Q_min/Q_max to make newer C++ stdlib happy 2023-09-06 05:01:28 +03:00
ammohistory.h Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
battery.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
camera.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
cdll_int.cpp client: use correct export attribute depending on the compiler 2023-09-09 02:55:30 +03:00
cl_dll.dsp commit The Wastes 1.5 changes built on top of Half-Life SDK 2.2 2023-09-04 13:46:18 -07:00
cl_dll.h client: use correct export attribute depending on the compiler 2023-09-09 02:55:30 +03:00
cl_util.h client: fix DECLARE/HOOK macros 2023-09-09 03:01:47 +03:00
com_weapons.cpp client: add const where it needs to be 2023-09-09 02:58:37 +03:00
com_weapons.h client: add const where it needs to be 2023-09-09 02:58:37 +03:00
death.cpp client: fix Stupid MSVC6 Bug variable declaration 2023-09-09 03:00:16 +03:00
demo.cpp client: use correct export attribute depending on the compiler 2023-09-09 02:55:30 +03:00
demo.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
dmc_bspfile.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
entity.cpp client: use correct export attribute depending on the compiler 2023-09-09 02:55:30 +03:00
env_fog.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
ev_common.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
ev_hldm.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
ev_hldm.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
ev_thewastes.cpp client: add const where it needs to be 2023-09-09 02:58:37 +03:00
ev_thewastes.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
events.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
eventscripts.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
flashlight.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
GameStudioModelRenderer_Sample.cpp client: use correct export attribute depending on the compiler 2023-09-09 02:55:30 +03:00
GameStudioModelRenderer_Sample.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
GameStudioModelRenderer.cpp client: use correct export attribute depending on the compiler 2023-09-09 02:55:30 +03:00
GameStudioModelRenderer.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
geiger.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
health.cpp client: probably somewhere iso646.h got included, I don't want to search where, just rename or and other variables 2023-09-09 03:06:07 +03:00
health.h Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
hud_iface.h client: use correct export attribute depending on the compiler 2023-09-09 02:55:30 +03:00
hud_msg.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
hud_redraw.cpp client: hud_redraw: fix variable declaration 2023-09-09 04:09:11 +03:00
hud_servers_priv.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
hud_servers.cpp client: use correct standard library includes 2023-09-09 03:01:15 +03:00
hud_servers.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
hud_spectator.cpp client: fix weird crash in spectator code during engine initialize 2023-09-09 04:09:11 +03:00
hud_spectator.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
hud_update.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
hud.cpp client: fix Stupid MSVC6 Bug variable declaration 2023-09-09 03:00:16 +03:00
hud.h client: add const where it needs to be 2023-09-09 02:58:37 +03:00
in_camera.cpp client: reimplement input with SDL2, link client.dll with SDL2. 2023-09-09 04:08:51 +03:00
in_defs.h client: use correct export attribute depending on the compiler 2023-09-09 02:55:30 +03:00
input_goldsource.cpp client: add input code from FWGS's hlsdk-portable 2023-09-09 05:00:07 +03:00
input_mouse.cpp client: add input code from FWGS's hlsdk-portable 2023-09-09 05:00:07 +03:00
input_mouse.h client: add input code from FWGS's hlsdk-portable 2023-09-09 05:00:07 +03:00
input_xash3d.cpp client: add input code from FWGS's hlsdk-portable 2023-09-09 05:00:07 +03:00
input.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
inputw32.cpp client: reimplement input with SDL2, link client.dll with SDL2. 2023-09-09 04:08:51 +03:00
kbutton.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
menu.cpp client: fix Stupid MSVC6 Bug variable declaration 2023-09-09 03:00:16 +03:00
message.cpp client: add const where it needs to be 2023-09-09 02:58:37 +03:00
overview.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
overview.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
parsebsp.cpp client: use correct standard library includes 2023-09-09 03:01:15 +03:00
ParseBsp.h client: add const where it needs to be 2023-09-09 02:58:37 +03:00
ParseBspEnt.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
ParseBspEnt.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
parsemsg.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
parsemsg.h Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
ParticleBase.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
ParticleBase.h client: use correct standard library includes 2023-09-09 03:01:15 +03:00
r_studioint.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
readme.txt as released 1999-04-07 1999-04-07 00:00:00 +00:00
saytext.cpp client: fix Stupid MSVC6 Bug variable declaration 2023-09-09 03:00:16 +03:00
soundsystem.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
status_icons.cpp client: fix sizeof usage for some reason ??? 2023-09-09 04:09:11 +03:00
statusbar.cpp Replace min/max macros by Q_min/Q_max to make newer C++ stdlib happy 2023-09-06 05:01:28 +03:00
studio_util.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
studio_util.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
studioevent.cpp client: use correct export attribute depending on the compiler 2023-09-09 02:55:30 +03:00
StudioModelRenderer.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
StudioModelRenderer.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
text_message.cpp client: add const where it needs to be 2023-09-09 02:58:37 +03:00
tf_defs.h Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
thewastes_hud.cpp client: convert libc headers to lowercase 2023-09-06 22:51:11 +03:00
train.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
tri.cpp client: fix Stupid MSVC6 Bug variable declaration 2023-09-09 03:00:16 +03:00
tri.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
tw_vgui.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
twm.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
twmmanager.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
util_vector.h client: util_vector: add include guards 2023-09-09 04:59:38 +03:00
util.cpp client: convert libc headers to lowercase 2023-09-06 22:51:11 +03:00
vgui_ClassMenu.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
vgui_ConsolePanel.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
vgui_ConsolePanel.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
vgui_ControlConfigPanel.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
vgui_ControlConfigPanel.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
vgui_CustomObjects.cpp client, game_shared: fix includes case 2023-09-09 02:52:17 +03:00
vgui_int.cpp Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
vgui_int.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
vgui_ItemSelection.cpp client: fix Stupid MSVC6 Bug variable declaration 2023-09-09 03:00:16 +03:00
vgui_MOTDWindow.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
vgui_SchemeManager.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
vgui_SchemeManager.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
vgui_ScorePanel.cpp client: fix Stupid MSVC6 Bug variable declaration 2023-09-09 03:00:16 +03:00
vgui_ScorePanel.h client, game_shared: fix includes case 2023-09-09 02:52:17 +03:00
vgui_ServerBrowser.cpp client: add const where it needs to be 2023-09-09 02:58:37 +03:00
vgui_ServerBrowser.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
vgui_TeamFortressViewport.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
vgui_TeamFortressViewport.h client: add const where it needs to be 2023-09-09 02:58:37 +03:00
vgui_teammenu.cpp Convert all C/C++ source files to LF line endings 2023-09-06 03:25:39 +03:00
vgui_TheWastesViewport.cpp client: add input code from FWGS's hlsdk-portable 2023-09-09 05:00:07 +03:00
vgui_TheWastesViewport.h client: add const where it needs to be 2023-09-09 02:58:37 +03:00
view.cpp Replace min/max macros by Q_min/Q_max to make newer C++ stdlib happy 2023-09-06 05:01:28 +03:00
view.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
wrect.h Convert all C/C++ source files to UTF-8 encoding 2023-09-06 03:27:45 +03:00
wscript client: add input code from FWGS's hlsdk-portable 2023-09-09 05:00:07 +03:00

  client dll readme.txt
-------------------------

This file details the structure of the half-life client dll,  and
how it communicates with the half-life game engine.


Engine callback functions:

Drawing functions:
	HSPRITE SPR_Load( char *picname );
		Loads a sprite into memory, and returns a handle to it.

	int  SPR_Frames( HSPRITE sprite );
		Returns the number of frames stored in the specified sprite.

	int  SPR_Height( HSPRITE x, int frame )
		Returns the height, in pixels, of a sprite at the specified frame.  
		Returns 0 is the frame number or the sprite handle is invalid.

	int  SPR_Width( HSPRITE x, int f )
		Returns the width, in pixels, of a sprite at the specified frame.  
		Returns 0 is the frame number or the sprite handle is invalid.

	int  SPR_Set( HSPRITE sprite, int r, int g, int b );
		Prepares a sprite about to be drawn.  RBG color values are applied to the sprite at this time.


	void  SPR_Draw( int frame, int x, int y );
		Precondition:  SPR_Set has already been called for a sprite.
		Draws the currently active sprite to the screen,  at position (x,y), where (0,0) is
		the top left-hand corner of the screen.


	void  SPR_DrawHoles( int frame, int x, int y );
		Precondition:  SPR_Set has already been called for a sprite.
		Draws the currently active sprite to the screen.  Color index #255 is treated as transparent.

	void  SPR_DrawAdditive( int frame, int x, int y );
		Precondition:  SPR_Set has already been called for a sprite.
		Draws the currently active sprite to the screen,  adding it's color values to the background.

	void  SPR_EnableScissor( int x, int y, int width, int height );
		Creates a clipping rectangle.  No pixels will be drawn outside the specified area.  Will
		stay in effect until either the next frame,  or SPR_DisableScissor is called.

	void  SPR_DisableScissor( void );
		Disables the effect of an SPR_EnableScissor call.

	int	 IsHighRes( void );
		returns 1 if the res mode is 640x480 or higher;  0 otherwise.

	int	 ScreenWidth( void );
		returns the screen width, in pixels.

	int	 ScreenHeight( void );
		returns the screen height, in pixels.

// Sound functions
	void PlaySound( char *szSound, int volume )
		plays the sound 'szSound' at the specified volume.  Loads the sound if it hasn't been cached.
		If it can't find the sound,  it displays an error message and plays no sound.

	void PlaySound( int iSound, int volume )
		Precondition:  iSound has been precached.
		Plays the sound, from the precache list.


// Communication functions
	void  SendClientCmd( char *szCmdString );
		sends a command to the server,  just as if the client had typed the szCmdString at the console.

	char *GetPlayerName( int entity_number );
		returns a pointer to a string, that contains the name of the specified client.  
		Returns NULL if the entity_number is not a client.
		

	DECLARE_MESSAGE(),  HOOK_MESSAGE()
		These two macros bind the message sending between the entity DLL and the client DLL to
		the CHud object.

		HOOK_MESSAGE( message_name )
			 This is used inside CHud::Init().  It calls into the engine to hook that message
			 from the incoming message stream.
			 Precondition:  There must be a function of name UserMsg_message_name declared
			 for CHud.  Eg,  CHud::UserMsg_Health() must be declared if you want to 
			 use HOOK_MESSAGE( Health );

		DECLARE_MESSAGE( message_name )
			For each HOOK_MESSAGE you must have an equivalent DECLARE_MESSAGE.  This creates
			a function which passes the hooked messages into the CHud object.


	HOOK_COMMAND(),  DECLARE_COMMAND()
		These two functions declare and hook console commands into the client dll.
		
		HOOK_COMMAND( char *command, command_name )
			Whenever the user types the 'command' at the console,  the function 'command_name'
			will be called.
			Precondition: There must be a function of the name UserCmd_command_name declared
			for CHud. Eg,  CHud::UserMsg_ShowScores() must be declared if you want to
			use HOOK_COMMAND( "+showscores", ShowScores );

		DECLARE_COMMAND( command_name )
			For each HOOK_COMMAND you must have an equivelant DECLARE_COMMAND.  This creates
			a function which passes the hooked commands into the CHud object.