Pre-defined gamevars: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
Removed some gamevars(they are constantly updated), added a table.
Line 3: Line 3:
{| cellpadding="0" cellspacing="0" border="0" width="100%"
{| cellpadding="0" cellspacing="0" border="0" width="100%"
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |
| width="33%" valign="top" style="border-right: none; padding: 0.6em;" |
*gamevar [[WEAPONx_WORKSLIKE|WEAPON0_WORKSLIKE]] 0 1
*gamevar [[WEAPONx_CLIP|WEAPON0_CLIP]] 0 1
*gamevar [[WEAPONx_RELOAD|WEAPON0_RELOAD]] 30 1
*gamevar [[WEAPONx_FIREDELAY|WEAPON0_FIREDELAY]] 7 1
*gamevar [[WEAPONx_TOTALTIME|WEAPON0_TOTALTIME]] 14 1
*gamevar [[WEAPONx_HOLDDELAY|WEAPON0_HOLDDELAY]] 14 1
*gamevar [[WEAPONx_FLAGS|WEAPON0_FLAGS]] 292 1
*gamevar [[WEAPONx_SHOOTS|WEAPON0_SHOOTS]] 2521 1
*gamevar [[WEAPONx_SPAWNTIME|WEAPON0_SPAWNTIME]] 0 1
*gamevar [[WEAPONx_SPAWN|WEAPON0_SPAWN]] 0 1
*gamevar [[WEAPONx_SHOTSPERBURST|WEAPON0_SHOTSPERBURST]] 0 1
*gamevar [[WEAPONx_INITIALSOUND|WEAPON0_INITIALSOUND]] 0 1
*gamevar [[WEAPONx_FIRESOUND|WEAPON0_FIRESOUND]] 0 1
*gamevar [[WEAPONx_FIRESOUND|WEAPON0_SOUND2TIME]] 0 1
*gamevar [[WEAPONx_SOUND2TIME|WEAPON0_SOUND2SOUND]] 0 1
*gamevar [[WEAPONx_RELOADSOUND1|WEAPON0_RELOADSOUND1]] 4 1
*gamevar [[WEAPONx_RELOADSOUND2|WEAPON0_RELOADSOUND2]] 5 1
*gamevar WEAPON1_WORKSLIKE 1 1
*gamevar WEAPON1_CLIP 12 1
*gamevar WEAPON1_RELOAD 27 1
*gamevar WEAPON1_FIREDELAY 2 1
*gamevar WEAPON1_TOTALTIME 6 1
*gamevar WEAPON1_HOLDDELAY 0 1
*gamevar WEAPON1_FLAGS 4 1
*gamevar WEAPON1_SHOOTS 2595 1
*gamevar WEAPON1_SPAWNTIME 2 1
*gamevar WEAPON1_SPAWN 2533 1
*gamevar WEAPON1_SHOTSPERBURST 0 1
*gamevar WEAPON1_INITIALSOUND 0 1
*gamevar WEAPON1_FIRESOUND 3 1
*gamevar WEAPON1_SOUND2TIME 0 1
*gamevar WEAPON1_SOUND2SOUND 0 1
*gamevar WEAPON1_RELOADSOUND1 4 1
*gamevar WEAPON1_RELOADSOUND2 5 1
*gamevar WEAPON2_WORKSLIKE 2 1
*gamevar WEAPON2_CLIP 0 1
*gamevar WEAPON2_RELOAD 13 1
*gamevar WEAPON2_FIREDELAY 4 1
*gamevar WEAPON2_TOTALTIME 31 1
*gamevar WEAPON2_HOLDDELAY 0 1
*gamevar WEAPON2_FLAGS 1024 1
*gamevar WEAPON2_SHOOTS 2613 1
*gamevar WEAPON2_SPAWNTIME 24 1
*gamevar WEAPON2_SPAWN 2535 1
*gamevar WEAPON2_SHOTSPERBURST 7 1
*gamevar WEAPON2_INITIALSOUND 0 1
*gamevar WEAPON2_FIRESOUND 109 1
*gamevar WEAPON2_SOUND2TIME 15 1
*gamevar WEAPON2_SOUND2SOUND 169 1
*gamevar WEAPON2_RELOADSOUND1 4 1
*gamevar WEAPON2_RELOADSOUND2 5 1
*gamevar WEAPON3_WORKSLIKE 3 1
*gamevar WEAPON3_CLIP 0 1
*gamevar WEAPON3_RELOAD 0 1
*gamevar WEAPON3_FIREDELAY 1 1
*gamevar WEAPON3_TOTALTIME 12 1
*gamevar WEAPON3_HOLDDELAY 0 1
*gamevar WEAPON3_FLAGS 84 1
*gamevar WEAPON3_SHOOTS 2536 1
*gamevar WEAPON3_SPAWNTIME 0 1
*gamevar WEAPON3_SPAWN 2533 1
*gamevar WEAPON3_SHOTSPERBURST 0 1
*gamevar WEAPON3_INITIALSOUND 0 1
*gamevar WEAPON3_FIRESOUND 6 1
*gamevar WEAPON3_SOUND2TIME 0 1
*gamevar WEAPON3_SOUND2SOUND 0 1
*gamevar WEAPON3_RELOADSOUND1 4 1
*gamevar WEAPON3_RELOADSOUND2 5 1
*gamevar WEAPON4_WORKSLIKE 4 1
*gamevar WEAPON4_CLIP 0 1
*gamevar WEAPON4_RELOAD 30 1
*gamevar WEAPON4_FIREDELAY 4 1
*gamevar WEAPON4_TOTALTIME 20 1
*gamevar WEAPON4_HOLDDELAY 0 1
*gamevar WEAPON4_FLAGS 0 1
*gamevar WEAPON4_SHOOTS 2605 1
*gamevar WEAPON4_SPAWNTIME 0 1
*gamevar WEAPON4_SPAWN 0 1
*gamevar WEAPON4_SHOTSPERBURST 0 1
*gamevar WEAPON4_INITIALSOUND 0 1
*gamevar WEAPON4_FIRESOUND 0 1
*gamevar WEAPON4_SOUND2TIME 0 1
*gamevar WEAPON4_SOUND2SOUND 0 1
*gamevar WEAPON4_RELOADSOUND1 4 1
*gamevar WEAPON4_RELOADSOUND2 5 1
*gamevar WEAPON5_WORKSLIKE 5 1
*gamevar WEAPON5_CLIP 0 1
*gamevar WEAPON5_RELOAD 30 1
*gamevar WEAPON5_FIREDELAY 6 1
*gamevar WEAPON5_TOTALTIME 19 1
*gamevar WEAPON5_HOLDDELAY 12 1
*gamevar WEAPON5_FLAGS 512 1
*gamevar WEAPON5_SHOOTS 26 1
*gamevar WEAPON5_SPAWNTIME 0 1
*gamevar WEAPON5_SPAWN 0 1
*gamevar WEAPON5_SHOTSPERBURST 0 1
*gamevar WEAPON5_INITIALSOUND 0 1
*gamevar WEAPON5_FIRESOUND 0 1
*gamevar WEAPON5_SOUND2TIME 0 1
*gamevar WEAPON5_SOUND2SOUND 0 1
*gamevar WEAPON5_RELOADSOUND1 4 1
*gamevar WEAPON5_RELOADSOUND2 5 1
*gamevar WEAPON6_WORKSLIKE 6 1
*gamevar WEAPON6_CLIP 0 1
*gamevar WEAPON6_RELOAD 0 1
*gamevar WEAPON6_FIREDELAY 3 1
*gamevar WEAPON6_TOTALTIME 12 1
*gamevar WEAPON6_HOLDDELAY 0 1
*gamevar WEAPON6_FLAGS 2 1
*gamevar WEAPON6_SHOOTS 2556 1
*gamevar WEAPON6_SPAWNTIME 0 1
*gamevar WEAPON6_SPAWN 0 1
*gamevar WEAPON6_SHOTSPERBURST 0 1
*gamevar WEAPON6_INITIALSOUND 11 1
*gamevar WEAPON6_FIRESOUND 0 1
*gamevar WEAPON6_SOUND2TIME 0 1
*gamevar WEAPON6_SOUND2SOUND 0 1
*gamevar WEAPON6_RELOADSOUND1 4 1
*gamevar WEAPON6_RELOADSOUND2 5 1
*gamevar WEAPON7_WORKSLIKE 7 1
*gamevar WEAPON7_CLIP 0 1
*gamevar WEAPON7_RELOAD 30 1
*gamevar WEAPON7_FIREDELAY 3 1
*gamevar WEAPON7_TOTALTIME 5 1
*gamevar WEAPON7_HOLDDELAY 5 1
*gamevar WEAPON7_FLAGS 72 1
*gamevar WEAPON7_SHOOTS 2605 1
*gamevar WEAPON7_SPAWNTIME 0 1
*gamevar WEAPON7_SPAWN 0 1
*gamevar WEAPON7_SHOTSPERBURST 2 1
*gamevar WEAPON7_INITIALSOUND 10 1
*gamevar WEAPON7_FIRESOUND 0 1
*gamevar WEAPON7_SOUND2TIME 0 1
*gamevar WEAPON7_SOUND2SOUND 0 1
*gamevar WEAPON7_RELOADSOUND1 4 1
*gamevar WEAPON7_RELOADSOUND2 5 1
*gamevar WEAPON8_WORKSLIKE 8 1
*gamevar WEAPON8_CLIP 0 1
*gamevar WEAPON8_RELOAD 30 1
*gamevar WEAPON8_FIREDELAY 3 1
*gamevar WEAPON8_TOTALTIME 40 1
*gamevar WEAPON8_HOLDDELAY 7 1
*gamevar WEAPON8_FLAGS 2048 1
*gamevar WEAPON8_SHOOTS 2563 1
*gamevar WEAPON8_SPAWNTIME 0 1
*gamevar WEAPON8_SPAWN 0 1
*gamevar WEAPON8_SHOTSPERBURST 0 1
*gamevar WEAPON8_INITIALSOUND 0 1
*gamevar WEAPON8_FIRESOUND 0 1
*gamevar WEAPON8_SOUND2TIME 0 1
*gamevar WEAPON8_SOUND2SOUND 0 1
*gamevar WEAPON8_RELOADSOUND1 4 1
*gamevar WEAPON8_RELOADSOUND2 5 1
*gamevar WEAPON9_WORKSLIKE 9 1
*gamevar WEAPON9_CLIP 0 1
*gamevar WEAPON9_RELOAD 0 1
*gamevar WEAPON9_FIREDELAY 3 1
*gamevar WEAPON9_TOTALTIME 8 1
*gamevar WEAPON9_HOLDDELAY 0 1
*gamevar WEAPON9_FLAGS 20 1
*gamevar WEAPON9_SHOOTS 1641 1
*gamevar WEAPON9_SPAWNTIME 0 1
*gamevar WEAPON9_SPAWN 0 1
*gamevar WEAPON9_SHOTSPERBURST 0 1
*gamevar WEAPON9_INITIALSOUND 10 1
*gamevar WEAPON9_FIRESOUND 10 1
*gamevar WEAPON9_SOUND2TIME 0 1
*gamevar WEAPON9_SOUND2SOUND 0 1
*gamevar WEAPON9_RELOADSOUND1 4 1
*gamevar WEAPON9_RELOADSOUND2 5 1
*gamevar WEAPON10_WORKSLIKE 10 1
*gamevar WEAPON10_CLIP 0 1
*gamevar WEAPON10_RELOAD 10 1
*gamevar WEAPON10_FIREDELAY 2 1
*gamevar WEAPON10_TOTALTIME 10 1
*gamevar WEAPON10_HOLDDELAY 0 1
*gamevar WEAPON10_FLAGS 384 1
*gamevar WEAPON10_SHOOTS 0 1
*gamevar WEAPON10_SPAWNTIME 0 1
*gamevar WEAPON10_SPAWN 0 1
*gamevar WEAPON10_SHOTSPERBURST 0 1
*gamevar WEAPON10_INITIALSOUND 0 1
*gamevar WEAPON10_FIRESOUND 0 1
*gamevar WEAPON10_SOUND2TIME 0 1
*gamevar WEAPON10_SOUND2SOUND 0 1
*gamevar WEAPON10_RELOADSOUND1 4 1
*gamevar WEAPON10_RELOADSOUND2 5 1
*gamevar WEAPON11_WORKSLIKE 11 1
*gamevar WEAPON11_CLIP 0 1
*gamevar WEAPON11_RELOAD 0 1
*gamevar WEAPON11_FIREDELAY 2 1
*gamevar WEAPON11_TOTALTIME 5 1
*gamevar WEAPON11_HOLDDELAY 0 1
*gamevar WEAPON11_FLAGS 2 1
*gamevar WEAPON11_SHOOTS 2448 1
*gamevar WEAPON11_SPAWNTIME 0 1
*gamevar WEAPON11_SPAWN 0 1
*gamevar WEAPON11_SHOTSPERBURST 0 1
*gamevar WEAPON11_INITIALSOUND 388 1
*gamevar WEAPON11_FIRESOUND 388 1
*gamevar WEAPON11_SOUND2TIME 0 1
*gamevar WEAPON11_SOUND2SOUND 0 1
*gamevar WEAPON11_RELOADSOUND1 4 1
*gamevar WEAPON11_RELOADSOUND2 5 1
The WEAPONx_ [[gamevar|gamevars]] are weapon flags. Here is the default list of what the "x" stands for:
<ins>'''0:'''</ins> Mighty Foot<br/>
<ins>'''1:'''</ins> Pistol<br/>
<ins>'''2:'''</ins> Shotgun<br/>
<ins>'''3:'''</ins> Chaingun Cannon - Ripper<br/>
<ins>'''4:'''</ins> RPG<br/>
<ins>'''5:'''</ins> Pipebomb<br/>
<ins>'''6:'''</ins> Shrinker<br/>
<ins>'''7:'''</ins> Devastator<br/>
<ins>'''8:'''</ins> Laser Tripbomb<br/>
<ins>'''9:'''</ins> Freezethrower - Freezer<br/>
<ins>'''10:'''</ins> Pipebomb Detonator '''(NOTE: It is advised that you do not alter the values for this.)'''<br/>
<ins>'''11:'''</ins> Expander
| width="33%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |
*gamevar [[GRENADE_LIFETIME]] 120 1  
*gamevar [[GRENADE_LIFETIME]] 120 1  
*gamevar [[GRENADE_LIFETIME_VAR]] 30 1  
*gamevar [[GRENADE_LIFETIME_VAR]] 30 1  
Line 231: Line 11:
*gamevar [[LOGO_FLAGS]] 255 0
*gamevar [[LOGO_FLAGS]] 255 0
*gamevar [[PLR_MORALE]] -1 1
*gamevar [[PLR_MORALE]] -1 1
*gamevar [[MENU_TILE]] 0 0
*gamevar [[MENU_TILE]] 2456 0 // 3281 in Polymost
 
| width="33%" valign="top" style="border-right: none; border-left: none; padding: 0.6em;" |
 
*gamevar [[WEAPON]] 0 0 // (read only)
*gamevar [[WEAPON]] 0 0 // (read only)
*gamevar [[WORKSLIKE]] 0 0 // (read only)
*gamevar [[WORKSLIKE]] 0 0 // (read only)
Line 244: Line 23:
*gamevar [[TEXTURE]] 0 0 // (read only)
*gamevar [[TEXTURE]] 0 0 // (read only)
*gamevar [[THISACTOR]] 0 0 // (read only)
*gamevar [[THISACTOR]] 0 0 // (read only)
|}




The following variables aren't pre-defined, they are defined as direct pointers to internal variables in the game. They should be at [[constantly updated gamevars]].
The WEAPONx_ gamevars are weapon properties. Here is the default values for weapons.
*gamevar [[RESPAWN_MONSTERS]] 0 0  
{|border="1" style="font-size:75%;"
*gamevar [[RESPAWN_ITEMS]] 0 0  
! !! Kick !! Pistol !! Shotgun !! Chaingun !! Rpg !!Pipebomb !! Shrinker !! Devastator !! Tripbomb !! Freezer !! Detonator !! Expander
*gamevar [[RESPAWN_INVENTORY]] 0 0  
|- align="right"
*gamevar [[MONSTERS_OFF]] 0 0  
|align="left"|[[WEAPONx_WORKSLIKE]]
*gamevar [[MARKER]] 0 0  
|0
*gamevar [[FFIRE]] 0 0  
|1
*gamevar [[LEVEL]] 0 0 // (read only)
|2
*gamevar [[VOLUME]] 0 0 // (read only)
|3
*gamevar [[COOP]] 0 0  
|4
*gamevar [[MULTIMODE]] 0 0  
|5
 
|6
[[Category:Gamevar manipulation]]
|7
|8
|9
|10
|12
|- align="right"
|align="left"|[[WEAPONx_CLIP]]
|0
|12
|0
|0
|0
|0
|0
|0
|0
|0
|0
|0
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_RELOAD]]
|0
|27
|13
|0
|0
|30
|0
|0
|16
|0
|10
|0
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_FIREDELAY]]
|7
|2
|4
|3
|4
|6
|10
|3
|3
|3
|2
|3
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_TOTALTIME]]
|14
|5
|30
|12
|20
|19
|12
|6
|16
|5
|10
|5
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_HOLDDELAY]]
|0
|0
|0
|3
|0
|12
|0
|5
|7
|0
|0
|0
|-
|[[WEAPONx_FLAGS]]
|Novisible<Br>Randomrestart<Br>Automatic
|Reload_Timing
|Checkatreload
|Automatic<Br>Fireeverythird<Br>Ammopershot<Br>Spawntype3<Br>Reset
|align="right"|0
|Throwit
|Glows
|Fireeveryother<Br>Ammopershot
|Standstill<Br>Checkatreload
|Reset
|Bomb_Trigger<Br>Novisible
|Glows
|-
|[[WEAPONx_SHOOTS]]
|KNEE
|SHOTSPARK1
|SHOTGUN
|CHAINGUN
|RPG
|HEAVYHBOMB
|SHRINKER
|RPG
|HANDHOLDINGLASER
|FREEZEBLAST
|align="right"|0
|GROWSPARK
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_SPAWNTIME]]
|0
|2
|24
|1
|0
|0
|0
|0
|0
|0
|0
|0
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_SPAWN]]
|0
|align="left"|SHELL
|align="left"|SHOTGUNSHELL
|align="left"|SHELL
|0
|0
|0
|0
|0
|0
|0
|0
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_SHOTSPERBURST]]
|0
|0
|7
|0
|0
|0
|0
|2
|0
|0
|0
|0
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_INITIALSOUND]]
|0
|0
|0
|0
|0
|0
|align="left"|SHRINKER_FIRE
|align="left"|CAT_FIRE
|0
|align="left"|CAT_FIRE
|0
|0
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_FIRESOUND]]
|0
|align="left"|PISTOL_FIRE
|align="left"|SHOTGUN_FIRE
|align="left"|CHAINGUN_FIRE
|0
|0
|0
|0
|0
|align="left"|CAT_FIRE
|0
|align="left"|[[EXPANDERSHOOT]]
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_SOUND2TIME]]
|0
|0
|15
|0
|0
|0
|0
|0
|0
|0
|0
|0
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_SOUND2SOUND]]
|0
|0
|SHOTGUN_COCK
|0
|0
|0
|0
|0
|0
|0
|0
|0
|-
|[[WEAPONx_RELOADSOUND1]]
|EJECT_CLIP
|EJECT_CLIP
|EJECT_CLIP
|EJECT_CLIP
|EJECT_CLIP
|EJECT_CLIP
|EJECT_CLIP
|EJECT_CLIP
|EJECT_CLIP
|EJECT_CLIP
|EJECT_CLIP
|EJECT_CLIP
|-
|[[WEAPONx_RELOADSOUND2]]
|INSERT_CLIP
|INSERT_CLIP
|INSERT_CLIP
|INSERT_CLIP
|INSERT_CLIP
|INSERT_CLIP
|INSERT_CLIP
|INSERT_CLIP
|INSERT_CLIP
|INSERT_CLIP
|INSERT_CLIP
|INSERT_CLIP
|}

Revision as of 09:33, 21 April 2008

Each gamevar below is listed along with its default value and flag. These pre-defined gamevars may be altered without giving them the standard gamevar definition shown below. Giving them a gamevar definition, however, alters their default values. See also constantly updated gamevars.


The WEAPONx_ gamevars are weapon properties. Here is the default values for weapons.

Kick Pistol Shotgun Chaingun Rpg Pipebomb Shrinker Devastator Tripbomb Freezer Detonator Expander
WEAPONx_WORKSLIKE 0 1 2 3 4 5 6 7 8 9 10 12
WEAPONx_CLIP 0 12 0 0 0 0 0 0 0 0 0 0
WEAPONx_RELOAD 0 27 13 0 0 30 0 0 16 0 10 0
WEAPONx_FIREDELAY 7 2 4 3 4 6 10 3 3 3 2 3
WEAPONx_TOTALTIME 14 5 30 12 20 19 12 6 16 5 10 5
WEAPONx_HOLDDELAY 0 0 0 3 0 12 0 5 7 0 0 0
WEAPONx_FLAGS Novisible
Randomrestart
Automatic
Reload_Timing Checkatreload Automatic
Fireeverythird
Ammopershot
Spawntype3
Reset
0 Throwit Glows Fireeveryother
Ammopershot
Standstill
Checkatreload
Reset Bomb_Trigger
Novisible
Glows
WEAPONx_SHOOTS KNEE SHOTSPARK1 SHOTGUN CHAINGUN RPG HEAVYHBOMB SHRINKER RPG HANDHOLDINGLASER FREEZEBLAST 0 GROWSPARK
WEAPONx_SPAWNTIME 0 2 24 1 0 0 0 0 0 0 0 0
WEAPONx_SPAWN 0 SHELL SHOTGUNSHELL SHELL 0 0 0 0 0 0 0 0
WEAPONx_SHOTSPERBURST 0 0 7 0 0 0 0 2 0 0 0 0
WEAPONx_INITIALSOUND 0 0 0 0 0 0 SHRINKER_FIRE CAT_FIRE 0 CAT_FIRE 0 0
WEAPONx_FIRESOUND 0 PISTOL_FIRE SHOTGUN_FIRE CHAINGUN_FIRE 0 0 0 0 0 CAT_FIRE 0 EXPANDERSHOOT
WEAPONx_SOUND2TIME 0 0 15 0 0 0 0 0 0 0 0 0
WEAPONx_SOUND2SOUND 0 0 SHOTGUN_COCK 0 0 0 0 0 0 0 0 0
WEAPONx_RELOADSOUND1 EJECT_CLIP EJECT_CLIP EJECT_CLIP EJECT_CLIP EJECT_CLIP EJECT_CLIP EJECT_CLIP EJECT_CLIP EJECT_CLIP EJECT_CLIP EJECT_CLIP EJECT_CLIP
WEAPONx_RELOADSOUND2 INSERT_CLIP INSERT_CLIP INSERT_CLIP INSERT_CLIP INSERT_CLIP INSERT_CLIP INSERT_CLIP INSERT_CLIP INSERT_CLIP INSERT_CLIP INSERT_CLIP INSERT_CLIP