Temp Entity Events (Half-Life 1)

From AlliedModders Wiki
Revision as of 03:24, 1 February 2006 by Vittu (talk | contribs) (Started to add list of HL const.h TempEnts)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Add Main Description Here.


Message Types

Sets the type of message the temp entity is transmitted in.

MSG_ types that can be used for dest in message_begin are listed below:

#define MSG_BROADCAST		0	// unreliable to all
#define MSG_ONE			1	// reliable to one (msg_entity)
#define MSG_ALL			2	// reliable to all
#define MSG_INIT			3	// write to the init string
#define MSG_PVS			4	// Ents in PVS of org
#define MSG_PAS			5	// Ents in PAS of org
#define MSG_PVS_R			6	// Reliable to PVS
#define MSG_PAS_R			7	// Reliable to PAS
#define MSG_ONE_UNRELIABLE	8	// Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)
#define MSG_SPEC			9	// Sends to all spectator proxies


TempEnt Events

Add Description Here.


0: TE_BEAMPOINTS

Creates a beam between two points.


Options

Option Range Default Description
Start X Y Z (coords) Origin of primary entity, or 0 0 0 Starting point of the beam
End X Y Z (coords) Origin of secondary entity, or 0 0 0 Ending point of the beam
Sprite sprite path "sprites/laserbeam.spr" The sprite to use in the beam
FrameStart 0-255 0 The frame to start with in the sprite
FrameRate 0-255 0 The frame rate to show the sprite at, in 0.1s (10 = 1 fps)
Life 0-255 50 The length of time the beam shall remain, in 0.1s (50 = 5 seconds)
Width 0-255 10 The width of the beam in 0.1s
Noise 0-255 10 The noise amplitude of the beam, this controls how much the beam distorts, again in 0.1s
Color R G B 255 255 255 The color of the beam in the RBG triplet value
Brightness 0-255 127 The brightness of the beam
Scroll 0-255 0 The scroll speed of the beam, in 0.1s (??)


Format

#define TE_BEAMPOINTS 0			// beam effect between two points 

message_begin(MSG_ ,SVC_TEMPENTITY)	// message begin 
write_byte(TE_BEAMPOINTS) 
write_coord()	// start position 
write_coord() 
write_coord() 
write_coord()	// end position 
write_coord() 
write_coord() 
write_short()	// sprite index 
write_byte()	// starting frame 
write_byte()	// frame rate in 0.1's 
write_byte()	// life in 0.1's 
write_byte()	// line width in 0.1's 
write_byte()	// noise amplitude in 0.01's 
write_byte()	// Red 
write_byte()	// Green 
write_byte()	// Blue 
write_byte()	// brightness
write_byte()	// scroll speed in 0.1's 
message_end()


1: TE_BEAMENTPOINT

Creates a beam between the primary entity and a point.


Options

Option Range Default Description


Format