Purple Martians
Technical Code Descriptions
Netgame - Config
Overview
Settings you can change
Settings you probably shouldn't change!
Overview
There are a number of variables in the file 'pm.cfg' used to setup and control netgame.
Some of these can also be changed in 'Settings' -> 'Netgame'
[NETWORK]
server_IP = 192.168.1.3
player_vs_player_shots=1
player_vs_player_shot_damage=5
player_vs_self_shots=1
client_chase_offset= -0.02
client_chase_offset_auto_offset= -0.005
client_chase_offset_mode=2
Settings you can change
server_IP
This is for the clients only. They need to know the server hostname or IP address to connect to.
This value is completely ignored by the server. A server doesn't need to have anything set for clients.
valid entries:
server_IP=192.168.1.3
server_IP=myhostname
player_vs_player_shots
Controls whether player's shots affect other players.
valid entries:
player_vs_player_shots=0
player_vs_player_shots=1
default:
player_vs_player_shots=1
player_vs_self_shots
Controls whether player's shots affect the same player that shot them.
This can happen if a player shoots, then immediately takes a door to where the shot is headed.
It can also happen when shooting upwards, then jumping on a spring.
valid entries:
player_vs_self_shots=0
player_vs_self_shots=1
default:
player_vs_self_shots=1
player_vs_player_shot_damage
Used to set the amount of damage player's shots do othee players and themselves
The value is the amount of health lost when shot by another player.
100 will instantly kill. 50 will take 50 health...etc.
Note: If set to zero, shots will not take any health, but will still cause the player to recoil.
Note: If set to a negative value, shots will actually give health!
valid entries:
player_vs_player_shot_damage=100
player_vs_player_shot_damage=50
player_vs_player_shot_damage=10
player_vs_player_shot_damage=0
player_vs_player_shot_damage=-10
default:
player_vs_player_shot_damage=5
Settings you probably shouldn't change!
For the variables below, it is not recommended to change them from their default values.
client_chase_offset_mode
How client chase offset is adjusted.
valid entries:
client_chase_offset_mode=0 // do not automatically adjust 'client_chase_offset'
client_chase_offset_mode=1 // automatically adjust 'client_chase_offset'
default:
client_chase_offset_mode=1 // automatically adjust 'client_chase_offset'
client_chase_offset
When not automatically set, use the value set here.
default:
client_chase_offset= -0.02
client_chase_offset_auto_offset
In automatic mode, use this value with ping_avg to set 'client_chase_offset'
default:
client_chase_offset_auto_offset= -0.005