1.0.2 • Published 6 years ago

csgo-integration-record-playback v1.0.2

Weekly downloads
10
License
MIT
Repository
github
Last release
6 years ago

CSGO Game Integration Record Playback

A morckup of csgo Game State Integration, that can record a match, and save, then you can playback the match as offen as you what. It good for making somfing whit the CSGO Game State Integration

Installation

$ npm install csgo-integration-record-playback

Usage

With record you just set the server port and a folderName and just start that file node log.js

Example log.js:

var http = require('http');
var Mock = require('csgo-integration-record-playback')['record'];

server = http.createServer( 
  Mock( {dirname:'folderName'},
    function(req, res) { 
      console.log('save');
      res.writeHead(200, {'Content-Type': 'text/html'});
      req.on('end', function () {
        res.end( '' );
      });
    }
  )
);

server.listen(1337);

using playback, fist parameter is the folderName and next the ip to send the data, and last the port Example playback.js:

var Mock = require('csgo-integration-record-playback')['playback'];
Mock('selv3', '127.0.0.1', 1337);

Authors

  • Lasse Pedersen

License

(The MIT License)

Copyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.