ingame text output


(germanaia) #1

hi all

i looking for a solution how put some text ingame out but i dont want the output on the console
i very interested on that wm_announce command or any familier command, but it seems only working as a map.script
what i am looking for is how to output a text in the corner leftdown of the screen

…like this text left down -> “no teamkilling, or u will be get kicked”

thanks to all
regards


(Elite) #2

Take a look at these functions from the et sdk, there are many examples of each and how to use it in the code as well. Perhaps for this particular situation you may want to try the CG_DrawSmallString or CG_DrawSmallStringColor functions:


void CG_DrawString( float x, float y, const char *string, 
				   float charWidth, float charHeight, const float *modulate );


void CG_DrawStringExt( int x, int y, const char *string, float *setColor, 
		qboolean forceColor, qboolean shadow, int charWidth, int charHeight, int maxChars );
// JOSEPH 4-17-00
void CG_DrawStringExt2( int x, int y, const char *string, const float *setColor, 
		qboolean forceColor, qboolean shadow, int charWidth, int charHeight, int maxChars );
void CG_DrawStringExt_Shadow( int x, int y, const char *string, const float *setColor, 
		qboolean forceColor, int shadow, int charWidth, int charHeight, int maxChars );
// END JOSEPH
void CG_DrawBigString( int x, int y, const char *s, float alpha );
void CG_DrawBigStringColor( int x, int y, const char *s, vec4_t color );
void CG_DrawSmallString( int x, int y, const char *s, float alpha );
void CG_DrawSmallStringColor( int x, int y, const char *s, vec4_t color );
// JOSEPH 4-25-00
void CG_DrawBigString2( int x, int y, const char *s, float alpha );
void CG_DrawBigStringColor2( int x, int y, const char *s, vec4_t color );
// END JOSEPH
int CG_DrawStrlen( const char *str );

(germanaia) #3

ok thanks all for helping me out

i get some more information from the developer who has created this ingame message but he is not telling me mutch what he did exactly

first he said he created a own C-Libraby and loaded his own libraby with the LD_PRELOAD function … his library replaces some string function from the etded.x86

so now my question is how can i see what function doing this action and how can i also send the new function to the client ? maybe some nice c-coder can give me an example ? this would be really nice cause i am new at c-coding…

thanks all for the nice help

regards