Incomplete Documentation (CS2D)
From Unreal Software English Wiki
This page lists console commands, map entities and parts of CS2D's Lua API that are currently not (completely) documented on cs2d.com.
Contents |
Console Commands
v1.0.0.7
- mp_anticlock - detect local time/clock related hacks.
- menu_voxelweapons - enable/disable spinning 3D voxel weapons in buy menu
- effect - supports new particle types "blood" and "sparkles"
Kill cam settings
- "killcam"
- "killcam_spectator"
- "killcam_fx"
- "killcam_victimtime"
- "killcam_scrolltime"
v1.0.0.4[2]
- sv_assist
- sv_mvp
- sb_avatars
- sb_shortcuts
- sb_id
- sb_score
- sb_assists
- sb_death
- sb_ranks
- sb_ping
- sb_mvp
- sb_flags
- sb_mutevoice
- sb_hidehud
- sb_maxresolution
- hud_autoscale option (enabled by default)
- ch_autoscale enables automatic pointer scaling
- ch_manualscale scales cursor by the value (when using ch_autoscale 0)
v1.0.0.3[3]
- Added setbackground
- Added setbackgroundscroll
- Added setbackgroundtiles (set map background image, its scrolling speed and scrolling-as-tiles mode)
Lua API
- Currently, when a script in /sys/lua/autorun/ folder contains a syntax error, it will not be reported to console and the script will NOT be loaded.
v1.0.0.7[4]
- Changed require() now automatically searches for files in sys/lua/?.lua; sys/lua/?/init.lua; mods/?.lua; mods/?/init.lua. Please refer to package.path variable.
- Added os.millisecs() - gets the number of milliseconds since the game's start. (Similar to os.clock() but has a different source)
- Added os.info() - gets information about the server's OS. E.g.: os.info().family = "win", os.info().version = "6"[5] for Windows 7.
- Added image: now allows to spawn lights by using "<light>" as path value
- Added hook "turretscan" - when a turret searches for a target. No futher information
v1.0.0.4[6]
- [player]: "steamid", "steamname" parameters to get information about connected Steam user
- Added player: now has "mousex" and "mousey" parameters to get cursor position in 850*480 view space
- Added player: now has "usgnname"
v1.0.0.2[7]
- Added _CS2DVERSION global variable
- New image mode: player images with X >= 2 wiggle with the player (documentation states X == 2)
- Added io.enumdir([dir]) iterator for all files in a directory (including "." and "..")
- Added io.isdir(dir): check if a given path points to a directory (true/false)
v0.1.2.7 & 1.0.0.0
- Bug: die-hook had swapped position of victim and killer parameters: die(killer, victim) instead of die(victim, killer); fixed in 1.0.0.1[8]
Map Editor
v1.0.0.3
- Env_Sprite and Env_Image have a 3D height parameter[9]
- Env_Cube3D: "entity allowing to place 3D cubes in the map"
- ch_red
- ch_green
- ch_blue
- ch_size
- ch_thickness
- ch_bordersize: commands to control the style of the dynamic crosshair
- Removed shadowz_wall
- Removed shadowz_obstacle (both commands are now deprecated as each tile has a defined height)
v1.0.0.2
- Added "Info_RadarIcon": allows to place icons for the advanced radar on the map
- New settings for Env_Room:
-> Display Room Shadows?
-> Daylight influences color?
-> Offset X, Y in pixels
- New settings for Env_Light:
-> Additive (0.0-1.0), default value: 0.4
-> X/Y Offset
- New settings for Env_LightStripe:
-> Additive (0.0-1.0), default value: 0
-> Daylight influences color? default: Yes
-> X/Y Offset
-> Shadow height (Z): 0
References
- ↑ http://www.unrealsoftware.de/forum_posts.php?post=411387 Changelog for version 1.0.0.3
- ↑ http://www.unrealsoftware.de/forum_posts.php?post=416448 Changelog for version 1.0.0.4
- ↑ http://www.unrealsoftware.de/forum_posts.php?post=411387 Changelog for version 1.0.0.3
- ↑ http://unrealsoftware.de/forum_posts.php?post=420145
- ↑ http://www.geoffchappell.com/studies/windows/km/ntoskrnl/history/index.htm
- ↑ http://www.unrealsoftware.de/forum_posts.php?post=416448 Changelog for version 1.0.0.4
- ↑ http://www.unrealsoftware.de/forum_posts.php?post=402274 Changelog for version 1.0.0.2
- ↑ http://www.unrealsoftware.de/forum_posts.php?post=397039 Changelog for version 1.0.0.1
- ↑ http://www.unrealsoftware.de/forum_posts.php?post=411387 Changelog for version 1.0.0.3