Definegametype: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Fox (talk | contribs)
No edit summary
Line 1: Line 1:
'''definegametype''' <gametypenum> <flags> <name>
'''definegametype''' <gametypenum> <flags> <name>


Define a new game type (like Deathmatch, Coop, ...) available in multiplayer.
Define a new game type available in multiplayer.




Line 11: Line 11:
'''<flags>'''
'''<flags>'''


{| {{simpletable}}
:'''1''' - Gametype is Cooperative like
! Flag !! Description !! Value !! Dukematch !! Cooperative !! Dukematch<br />(no spawn) !! Team Dm!! Team Dm<br />(no spawn)
:'''2''' - Weapons stay (like coop)
|- align=center valign=top
:'''4''' - Show frag bar (on top of the screen)
| 1
:'''8''' - Show scoresheet (in statusbar)
| align=left | Gametype is Cooperative like
:'''16''' - Spawn the Deathmatch switches (switches with a spritepal other than 0)
| 1
:'''32''' - Use coop player start points
| No
:'''64''' - Spawn accesscard sprites
| Yes
:'''128''' - Allow coopview
| No
:'''256''' - Activate coop sounds
| No
:'''512''' - Show other players in map
| No
:'''1024''' - Items can respawn
|- align=center valign=top
:'''2048''' - Enable markers option
| 2
:'''4096''' - Enable friendly fire option
| align=left | Weapons stay (like coop)
:'''8192''' - Fixed player start position
| 2
:'''16384''' - Players have all accesscards at spawn
| No
:'''32768''' - Players keep their inventory even if they die
| Yes
:'''65536''' - Gametype is Team Deathmatch like
| No
:'''131072''' - Use TDM spawns
| No
| No
|- align=center valign=top
| 3
| align=left | Show frag bar (on top of the screen)
| 4
| Yes
| No
| Yes
| Yes
| Yes
|- align=center valign=top
| 4
| align=left | Show scoresheet (in statusbar)
| 8
| Yes
| No
| Yes
| Yes
| Yes
|- align=center valign=top
| 5
| align=left | Spawn the Deathmatch switches (switches with a spritepal other than 0)
| 16
| Yes
| No
| Yes
| Yes
| Yes
|- align=center valign=top
| 6
| align=left | Use coop player start points
| 32
| No
| Yes
| No
| No
| No
|- align=center valign=top
| 7
| align=left | Spawn accesscard sprites
| 64
| No
| Yes
| No
| No
| No
|- align=center valign=top
| 8
| align=left | Allow coopview
| 128
| No
| Yes
| No
| No
| No
|- align=center valign=top
| 9
| align=left | Activate coop sounds
| 256
| No (?)
| Yes (?)
| No (?)
| No (?)
| No (?)
|- align=center valign=top
| 10
| align=left | Show other players in map
| 512
| No
| Yes
| No
| No
| No
|- align=center valign=top
| 11
| align=left | Items can respawn
| 1024
| Yes (?)
| No (?)
| No (?)
| Yes (?)
| No (?)
|- align=center valign=top
| 12
| align=left | Enable markers option
| 2048
| Yes
| Yes
| No
| Yes
| No
|- align=center valign=top
| 13
| align=left | Enable friendly fire option
| 4096
| No
| Yes
| No
| Yes
| Yes
|- align=center valign=top
| 14
| align=left | Fixed player start position
| 8192
| No
| Yes
| No
| No
| No
|- align=center valign=top
| 15
| align=left | Players have all accesscards at spawn
| 16384
| Yes
| No
| Yes
| Yes
| Yes
|- align=center valign=top
| 16
| align=left | Players keep their inventory even if they die
| 32768
| No (?)
| No (?)
| No (?)
| No (?)
| No (?)
|- align=center valign=top
| 16
| align=left | Gametype is Team Deathmatch like
| 65536
| No
| No
| No
| Yes
| Yes
|- align=center valign=top
| 17
| align=left | Use TDM spawns
| 131072
| No
| No
| No
| Yes?
| Yes?
|}




Line 181: Line 34:


Define the gametype name.
Define the gametype name.
==Default values==
:definegametype 0 19480 Dukematch
:definegametype 1 46051 Cooperative
:definegametype 2 16410 Dukematch (no spawn)
:definegametype 3 216088 Team Dukematch
:definegametype 4 213018 Team Dukematch (no spawn)


[[Category:EDuke32 specific commands]]
[[Category:EDuke32 specific commands]]
[[Category:Game manipulation]]
[[Category:Game manipulation]]

Revision as of 15:47, 15 June 2013

definegametype <gametypenum> <flags> <name>

Define a new game type available in multiplayer.


<gametypenum>

Define the gametype number. Numbers 0-4 are already defined. Maximum is 16.


<flags>

1 - Gametype is Cooperative like
2 - Weapons stay (like coop)
4 - Show frag bar (on top of the screen)
8 - Show scoresheet (in statusbar)
16 - Spawn the Deathmatch switches (switches with a spritepal other than 0)
32 - Use coop player start points
64 - Spawn accesscard sprites
128 - Allow coopview
256 - Activate coop sounds
512 - Show other players in map
1024 - Items can respawn
2048 - Enable markers option
4096 - Enable friendly fire option
8192 - Fixed player start position
16384 - Players have all accesscards at spawn
32768 - Players keep their inventory even if they die
65536 - Gametype is Team Deathmatch like
131072 - Use TDM spawns


<name>

Define the gametype name.

Default values

definegametype 0 19480 Dukematch
definegametype 1 46051 Cooperative
definegametype 2 16410 Dukematch (no spawn)
definegametype 3 216088 Team Dukematch
definegametype 4 213018 Team Dukematch (no spawn)