-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the CS:GO.Tips wiki! This page is for users hoping to contribute throws, callouts, or maps to CS:GO.Tips.
There are two ways to upload a throw (A or B):
Use a game-capturing program of your choice to film the grenade throw. The video should be as short as possible, and under 15 seconds. It can also be edited after filming. Upload to gfycat, or other compatible video host.
Use gfycat's "From a URL" upload feature to select a section of a video, then upload.
Throws are represented in the following way:
{
"from": "X-Box",
"to": "CT Spawn",
"team": "T",
"speed": "still",
"height": "standing",
"throw_speed": "full throw",
"loc": [-272, 1356, -589, 1695, -229, 2113],
"webm": "http:\/\/zippy.gfycat.com\/LegitimateTartGallinule.webm",
"mp4": "http:\/\/fat.gfycat.com\/LegitimateTartGallinule.mp4",
"gif": "http:\/\/giant.gfycat.com\/LegitimateTartGallinule.gif"
}
-
from(string) - Start location of throw -
to(string) - End location of throw -
team("T","CT", or"Both") - Team the throw is useful for -
speed("still","crouch","walk","sprint", plus"backwards"if applicable) - Player's speed while throwing the grenade -
height("crouch","stand","jump") - Player's height during the throw."jump"assumes a jump-throw bind. -
throw_speed("full throw","half throw", or"toss") - The speed the grenade is thrown at (m1,m1+m2, andm2respectively)
The next bits are a bit more tricky.
-
loc(number array) - In-game coordinates of the grenade trajectory. Must have an even length since each pair represents anx,ycoordinate.
To get the loc values, go in-game to where the grenade is thrown from. Type getpos into the console. The first two numbers represent the x,y coordinates, put these in the loc array. Repeat for any significant intermediate points, and for the grenade's final position. Round coordinates to the nearest integer.
-
webm,mp4, andgif(url string) - Online url of the video.
If you used gfycat to host the video, it is a bit tricky to find the urls. Go to http://gfycat.com/cajax/get/<GFYCAT_NAME_HERE>, with the proper gfy name (ex: http://gfycat.com/cajax/get/LegitimateTartGallinule). The returned JSON document will supply mp4Url, webmUrl, and gifUrl, which correspond to the urls of the video.
In the repository, go to the corresponding maps/<MAP_NAME>.json file. Click edit, then paste the now-complete throw JSON at the end of the corresponding array (smokes, fires, or flashes) with a comma. Save, and submit a pull request.
Callouts are represented in a separate SVG file. See the existing callouts/<MAP_NAME>.svg files, and see how they are done. Edit (or add) a callout file, then submit a pull request.
If you don't know how to edit SVG files, callouts can be submitted via an 'issues' ticket.
maps/<MAP_NAME>.json files are in the following format (callouts can be blank if none exist):
{
"name": "Zoo",
"minimap": "http://i.imgur.com/G0mx85Z.png",
"callouts": "callouts/zoo.svg",
"thumb": "http://i.imgur.com/faj55sM.jpg",
"pos_x": -2435,
"pos_y": 6116,
"scale": 7,
"smokes": [ ... ],
"fires": [ ... ],
"flashes": [ ... ]
}
The following paths are relative to your CS:GO folder, which is something like: C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive
-
thumbis found incsgo/maps/de_mapname.png, and needs to be uploaded to an imagehost such as imgur. -
minimapis found incsgo/resource/overviews/de_mapname_radar.ddsand needs to be converted topngusing something like this and uploaded to an imagehost. -
pos_x,pos_y, andscaleare found incsgo/resource/overviews/de_mapname.txt