I am sorry for this silly question, but I never played/used multiplayer syntax before.
Working on something new at the moment I also have to take multiplayer in account.
There are these 2 multiplayer variables everywhere in the QuakeC source:
- coop
- deathmatch
Sometimes it checks for "deathmatch == 2", sometimes for "deathmatch == 1"
What is the meaning of "1" and "2" ?
And are there others besides "0" ? (maybe "3" ?)
Has "coop" also different values ?
I never see a check for "coop ==1" or "coop ==2".
Or is only "0" and "1" possible for "coop" ?
Then my next question (once I understood the syntax above):
If I want to check if the current running game is ANY multiplayer game variation.
Can I do it same this ?
Code: Select all
if (deathmatch == 1 || deathmatch == 2 || coop)
*do this cause game is multiplayer*
else // then it must be single player
*do that cause game is single player*
Code: Select all
if (coop || deathmatch)
*do this cause game is multiplayer*
else // then it must be single player
*do that cause game is single player*
The reason why I ask is, because of respawn function.
I *think* only multiplayer games (deathmatch "1" or "2" or coop) in original QC 1.06 have powerup respawn, right ?
Thank you for your answers and helping me to understand multiplayer and how to check for it.
Seven