engine
get_screen_width()
Returns the width of your screen
get_screen_height()
Returns the height of your screen
get_level_name()
Returns the full name of the map
get_level_name_short()
Returns the short name of the map
get_local_player_index()
Returns your index
get_map_group_name()
Returns the name of the map group
get_player_for_user_id( int index )
Returns the player by index
get_player_info( int index )
Returns the following table:
Variable | Value |
---|---|
name | "name" |
bot | true/false |
steam_id | "STEAM_0:?:?" |
get_view_angles()
Return your view angle
set_view_angles( Vector view_angles )
is_connected()
is_hltv()
is_in_game()
is_paused()
is_playing_demo()
is_recording_demo()
is_taking_screenshot()
trace_line( Vector from, Vector to, (optional) skip, (optional) mask, (optional) number )
from
- Vector to start tracing from.to
- Vector to trace to.skip
- Entity skipping options.mask
- Trace mask.number
- 0 - Trace everything, 1 - Trace world only, 2 - Trace entities only, 3 - Trace everything filter props
trace_hull( Vector from, Vector to, Vector mins, Vector maxs, Vector to, (optional) skip, (optional) mask, (optional) number )
from
- Vector to start tracing from.to
- Vector to trace to.mins
- Hull mins.maxs
- Hull maxs.skip
- Entity skipping options.mask
- Trace mask.number
- 0 - Trace everything, 1 - Trace world only, 2 - Trace entities only, 3 - Trace everything filter props
trace_bullet( Entity from_entity, Vector from, Vector to, (optional) skip )
from_entity
- Player whose weapon will be used for this trace.from
- Vector to trace from.to
- Vector to trace to.skip
- Entity skipping options.