Fun
Content:
Notes
The Fun module is enabled by default. It is totally rewritten from the original one developed by OLO, and is maintained by Johnny Got His Gun. Its purpose is to provide extra "cheating" functions that the Core does not provide - functions that modify gameplay rules such as health, armor, and player properties.

The Fun module has one include:
Fun Module has only a few constants:
Hitzone Constants:
HIT_GENERIC		0
HIT_HEAD		1
HIT_CHEST		2
HIT_STOMACH		3
HIT_LEFTARM		4
HIT_RIGHTARM		5
HIT_LEFTLEG		6
HIT_RIGHTLEG		7

Rendering Constants:
enum {	
	kRenderNormal = 0,		/* src */
	kRenderTransColor,		/* c*a+dest*(1-a) */
	kRenderTransTexture,		/* src*a+dest*(1-a) */
	kRenderGlow,			/* src*a+dest -- No Z buffer checks */
	kRenderTransAlpha,		/* src*srca+dest*(1-srca) */
	kRenderTransAdd,		/* src*a+dest */
}

FX Constants:
enum {	
	kRenderFxNone = 0, 
	kRenderFxPulseSlow, 
	kRenderFxPulseFast, 
	kRenderFxPulseSlowWide, 
	kRenderFxPulseFastWide, 
	kRenderFxFadeSlow, 
	kRenderFxFadeFast, 
	kRenderFxSolidSlow, 
	kRenderFxSolidFast, 	   
	kRenderFxStrobeSlow, 
	kRenderFxStrobeFast, 
	kRenderFxStrobeFaster, 
	kRenderFxFlickerSlow, 
	kRenderFxFlickerFast,
	kRenderFxNoDissipation,
	kRenderFxDistort,		/* Distort/scale/translate flicker */
	kRenderFxHologram,		/* kRenderFxDistort + distance fade */
	kRenderFxDeadPlayer,		/* kRenderAmt is the player index */
	kRenderFxExplode,		/* Scale up really big! */
	kRenderFxGlowShell,		/* Glowing Shell */
	kRenderFxClampMinScale,		/* Keep this sprite from getting very small (SPRITES only!) */
}
Functions
get_client_listen - Returns 1 if receiver hears sender via voice communication.
get_user_godmode - Returns 1 if godmode is set.
get_user_gravity - Returns users gravity
get_user_hitzones - Get user hitzones.
get_user_maxspeed - Returns users max. speed.
get_user_noclip - Returns 1 if noclip is set on a player.
give_item - Gives an item to a player.
set_client_listen - Sets who can listen who.
set_user_armor - Sets player armor.
set_user_footsteps - Gives player silent footsteps if set is 1.
set_user_godmode - Sets player godmode. If you want to disable godmode set only first parameter.
set_user_gravity - Sets users gravity
set_user_health - Sets player health.
set_user_hitzones - Sets hit zones for player.
set_user_maxspeed - Sets a user's maxspeed
set_user_noclip - Sets player noclip. If you want to disable noclip set only first parameter.
set_user_origin - Move player to origin
set_user_rendering - Sets player rendering mode.
spawn - Spawns entity.
strip_user_weapons - Strips all weapons from user
User Contributed Notes
mobsterbob769 at netscape dot net Aug-21-05 21:03:23
68.190.40.105:27014