GitXplorerGitXplorer
M

CS

public
103 stars
11 forks
2 issues

Commits

List of commits on branch master.
Verified
0ef2bc768bfc1ed192f533c3fcd1c95bf278f1f1

Update README.md

committed 6 years ago
Verified
eddf4066c45f8c42157606b832fb82f4928c4e4a

Update README.md

committed 6 years ago
Verified
3b965ed60dc1dbcf391bcdd2e2c94aaa7e6688be

Update README.md

committed 7 years ago
Unverified
a2119023103aca1c347b81ebe459a6b531090230

Old code I forgot to commit. Might still be unstable.

committed 10 years ago
Unverified
64c32d02e55a09759566677ae92b7368cfa9ccb0

Uploaded image to readme

committed 11 years ago
Unverified
046104af686227b4fd3b4cd1954e88ef213e26a5

Preparation for peerJS including

committed 11 years ago

README

The README file for this repository.

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