Skip to content
Mingwei Samuel edited this page Jun 12, 2015 · 12 revisions

Welcome to the CS:GO.Tips wiki! This page is for users hoping to contribute throws, callouts, or maps to CS:GO.Tips.

Contents

Grenade Throws

Capturing

There are two ways to upload a throw (A or B):

A: Film yourself

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.

B: Upload via YouTube or other service

Use gfycat's "From a URL" upload feature to select a section of a video, then upload.

Creating the Throw JSON

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, and m2 respectively)

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 an x,y coordinate.

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, and gif (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.

Submitting

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

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

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

  • thumb is found in csgo/maps/de_mapname.png, and needs to be uploaded to an imagehost such as imgur.
  • minimap is found in csgo/resource/overviews/de_mapname_radar.dds and needs to be converted to png using something like this and uploaded to an imagehost.
  • pos_x, pos_y, and scale are found in csgo/resource/overviews/de_mapname.txt

Clone this wiki locally