Showing posts with label counter-strike. Show all posts
Showing posts with label counter-strike. Show all posts

Sunday, February 26, 2012

How do I get HLDS to work over the internet?

Question

I'm trying to make counter-strike 1.6 dedicated server.

When I run HLDS.exe, I choose Internet but the server is only running on a local IP address.

How do I get it to work over the internet, not just my local network?

Asked by user525717

Answer

On most home networks, there's only one "public" IP address, and it's assigned to whatever's connected directly to your cable or DSL modem. This device is usually a router of some sort.

This router box "shares" the single IP with all the devices on your local network through a set of technologies and protocols called Network Address Translation, or NAT.

NAT works seamlessly when computers on your local network are making connections to the internet, but it usually requires configuration if computers on the internet want to make connections to your local network. This configuration is typically referred to as "port forwarding."

For every server port you wish to make available to the internet on one of your local machines, you'll need to set up a port forwarding rule. The way you do this depends on your router make and model, so you'll want to read the documentation that came with your router. I believe some people have used PortForward.com when their documentation wasn't readily available.

The port you'll want to forward is probably 27015, although this is configurable on the command line to HLDS.exe, so it might vary. You'll want to forward it to the IP address of the local machine that is running the server.

For instance, if your local machine's IP is 192.168.0.50, and you've got HLDS set up on 27015, you'd need to set the router up to forward both TCP and UDP on 27015 to IP address 192.168.0.50.

Then, your friends over the internet could connect to your server by specifying your internet IP address (which is the IP address your router is getting from the modem) and port 27015.

There are a lot of thorny network issues that can also get in the way here. Be prepared to do some experimentation, as this is likely to be a learning experience for you :)

Answered by agent86

Thursday, November 10, 2011

Load more maps for counter strike 1.6

Question

How to add more maps to counter strike stream 1.6 ?

I am playing that on my local desktop against bots.

Answer

First, you must download the maps. There are several good online sources for them.

To install them, follow the instructions in this faq

Most maps you just extract in your counter strike 1.6 folder, which is located at:

\Steam\SteamApps\ yourusername \counter-strike\cstrike

If the map is not packaged properly, then you'll have to place the individual files into their respective folders.

  • \counter-strike\cstrike .wad
  • \counter-strikee\cstrike\maps .bsp | .bsp.ztmp | .txt | .res
  • \counter-strike\cstrike\sound .wav
  • \counter-strike\cstrike\models .mdl
  • \counter-strike\cstrike\sprites .spr
  • \counter-strike\cstrike\gfx\env .tga
  • \counter-strike\cstrike\overviews .bmp

Monday, October 17, 2011

In CS, what does it mean when someone gets accused of being an `interp`

Question

I've been playing for a while, but I've never managed to get an answer other than "NOOOOOOB" to the question "What does interp" mean. Does anyone know what interp is? Is it a hack? and if so, why doesn't VAC ban interpers

Answer

Interp is short for interpolation, a computer science term (technically math, but that's unrelated).

In Counter-Strike and CS Source the server interpolates based on your previous position your next position. Since the server determines 'where' you are the decision of this calculation determines where you can get hit from. Likewise your client also makes a similar calculation as to where you and other players are. The result is by tweaking the interpolation coefficients you can trick your client into showing the various players in different positions than the server believes them to be.

Since interpolation is a guess, and its effect changes your viewing experience, players often change it for optimal performance. It is possible to change it to cheat, but since interpolation errors occur regardless it is harder to detect. In reality anyone accusing another person of interp is just accusing them of cheating; often an inane accusation.


A longer discussion of interpolation techniques can be found here, however I'll give you a simple example of linear interpolation:

yn=y0+ n * dy / dt

As the acceleration in the y direction may have changed between y0 and yn it is possible this equation produces inaccurate results. To prevent this often times low values of t are used, in CS this is typically .01, though some players set it to .009

Tuesday, July 12, 2011

Which variable of Counter-Strike 1.6 controlled the “Voice Transmit/Send Volume”?

Question

I know that voice_scale controlls voice receive volume, but which one is for voice transmit volume?

Answer

I think I got the answer.

It's the Microphone Volume in Control Panel controlls the voice transmit volume.

But they are not synchonized. When adjusting one volume, the other one does not changed at the same time.

  • When adjusting from Control Panel, you need re-open CS option dialog to see the new voice transmit volumne.
  • When adjusting from CS, the new volume will synchronized to Control Panel only after click "OK" in the CS option dialog.