GithubHelp home page GithubHelp logo

cs's Introduction

CS

Counter-Strike 1.6 implementation in JavaScript utilizing state of the art browser APIs.

Please note: I am no longer (and have not been for a long time) hacking on this project. Some stuff may still work, some stuff may not work!

Current state

  • Parses and renders .bsp files (version 30) containing map data
  • Parses and renders .mdl files (version 10) with textures
  • Camera movement, yaw and pitch fully implemented
  • Collision detection implemented
  • Naive gravity implemented

Getting started
The following files are needed in the root of the project for the game to load:

  • data/maps/cs_assault.bsp
  • data/models/v_m3.mdl
  • data/player/arctic/arctic.mdl
  • data/sounds/weapons/m3-1.wav
  • data/sprites/weapon_m3.txt

All of which can be found in your local installation of Counter Strike 1.6 if downloaded off Steam. Please note: Don't just go and fetch these files from the first hit on Google or the likes - most of these models will be modified versions which won't be parsed successfully.

Hacking on the codebase

  • A fully updated version of Chrome is recommended when hacking around in the code. (Firefox not yet supported)
  • When debugging locally use the Chrome flag: "--allow-file-access-from-files" so that Chrome can load data files from the local file system.

Commiting changes

  • Please note: No actual data (maps, models, textures, etc.) is included in the project, due to copyright reasons!

Screenshot

cs's People

Contributors

mathiasvp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.