Pre-defined gamevars: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Cleanup, and the chart no longer scrolls horizontally on 1280x1024.
Fox (talk | contribs)
→‎Weapon Properties: Leav on pre-defined values for now
(10 intermediate revisions by 3 users not shown)
Line 30: Line 30:
==Weapon Properties==
==Weapon Properties==


The weapon properties come in the format WEAPON'''x'''_FIELD, where '''x''' is the [[curr_weapon|weapon ID number]] and FIELD is the property that needs modification.
The weapon properties come in the format WEAPON'''x'''_FIELD, where '''x''' is the [[WEAPON|weapon ID number]] and FIELD is the property of the weapon that the gamevar refers to.


{|border="1" style="font-size:75%;"
{|border="1" style="font-size:75%;" class="wikitable"
! WEAPONx_ !! Mighty Foot !! Pistol !! Shotgun !! Chaingun !! RPG !! Pipebomb !! Shrinker !! Devastator !! Tripbomb !! Freezer !! Detonator !! Expander
! WEAPONx_ !! Mighty Foot !! Pistol !! Shotgun !! Chaingun !! RPG !! Pipebomb !! Shrinker !! Devastator !! Tripbomb !! Freezer !! Detonator !! Expander
|- align="right"
|- align="right"
|align="left"|[[WEAPONx_WORKSLIKE|WORKSLIKE]]
!align="left"|[[WEAPONx_WORKSLIKE|WORKSLIKE]]
|0
|0
|1
|1
Line 49: Line 49:
|11
|11
|- align="right"
|- align="right"
|align="left"|[[WEAPONx_CLIP|CLIP]]
!align="left"|[[WEAPONx_CLIP|CLIP]]
|0
|0
|12
|12
Line 63: Line 63:
|0
|0
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_RELOAD|RELOAD]]
!align="left"|[[WEAPONx_RELOAD|RELOAD]]
|0
|0
|27
|27
Line 77: Line 77:
|0
|0
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_FIREDELAY|FIREDELAY]]
!align="left"|[[WEAPONx_FIREDELAY|FIREDELAY]]
|7
|7
|2
|2
Line 91: Line 91:
|3
|3
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_TOTALTIME|TOTALTIME]]
!align="left"|[[WEAPONx_TOTALTIME|TOTALTIME]]
|14
|14
|5
|5
Line 105: Line 105:
|5
|5
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_HOLDDELAY|HOLDDELAY]]
!align="left"|[[WEAPONx_HOLDDELAY|HOLDDELAY]]
|0
|0
|0
|0
Line 119: Line 119:
|0
|0
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
| align="left" rowspan="2" | [[WEAPONx_FLAGS|FLAGS]]
! align="left" rowspan="2" | [[WEAPONx_FLAGS|FLAGS]]
| 292
| 292
| 32768
| 32768
Line 133: Line 133:
| 2
| 2
|-
|-
| valign="top" | Novisible<Br>Randomrestart<Br>Automatic
| valign="top" | <p style="line-height: 90%;">No visible</p><p style="line-height: 90%;">Random restart</p><p style="line-height: 90%;">Automatic</p>
| valign="top" | Reload_Timing
| valign="top" | <p style="line-height: 90%;">Reload timing</p>
| valign="top" | Checkatreload
| valign="top" | <p style="line-height: 90%;">Check at reload</p>
| valign="top" | Automatic<Br>Fireeverythird<Br>Ammopershot<Br>Spawntype3<Br>Reset
| valign="top" | <p style="line-height: 90%;">Automatic</p><p style="line-height: 90%;">Fire every third</p><p style="line-height: 90%;">Ammo per shot</p><p style="line-height: 90%;">Spawn type 3</p><p style="line-height: 90%;">Reset</p>
| valign="top" | None
| valign="top" | <p style="line-height: 90%;">None</p>
| valign="top" | Throwit
| valign="top" | <p style="line-height: 90%;">Throw it</p>
| valign="top" | Glows
| valign="top" | <p style="line-height: 90%;">Glows</p>
| valign="top" | Fireeveryother<Br>Ammopershot
| valign="top" | <p style="line-height: 90%;">Fire every other</p><p style="line-height: 90%;">Ammo per shot</p>
| valign="top" | Standstill<Br>Checkatreload
| valign="top" | <p style="line-height: 90%;">Stand still</p><p style="line-height: 90%;">Check at reload</p>
| valign="top" | Reset
| valign="top" | <p style="line-height: 90%;">Reset</p>
| valign="top" | Bomb_Trigger<Br>Novisible
| valign="top" | <p style="line-height: 90%;">Bomb trigger</p><p style="line-height: 90%;">No visible</p>
| valign="top" | Glows
| valign="top" | <p style="line-height: 90%;">Glows</p>
|-
|-
|[[WEAPONx_SHOOTS|SHOOTS]]
![[WEAPONx_SHOOTS|SHOOTS]]
|KNEE
|KNEE
|SHOTSPARK1
|SHOTSPARK1
Line 160: Line 160:
|GROWSPARK
|GROWSPARK
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_SPAWNTIME|SPAWNTIME]]
!align="left"|[[WEAPONx_SPAWNTIME|SPAWNTIME]]
|0
|0
|2
|2
Line 174: Line 174:
|0
|0
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_SPAWN|SPAWN]]
!align="left"|[[WEAPONx_SPAWN|SPAWN]]
|0
|0
|align="left"|SHELL
|align="left"|SHELL
Line 188: Line 188:
|0
|0
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_SHOTSPERBURST|SHOTSPERBURST]]
!align="left"|[[WEAPONx_SHOTSPERBURST|SHOTSPERBURST]]
|0
|0
|0
|0
Line 202: Line 202:
|0
|0
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_INITIALSOUND|INITIALSOUND]]
!align="left"|[[WEAPONx_INITIALSOUND|INITIALSOUND]]
|0
|0
|0
|0
Line 216: Line 216:
|0
|0
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_FIRESOUND|FIRESOUND]]
!align="left"|[[WEAPONx_FIRESOUND|FIRESOUND]]
|0
|0
|align="left"|PISTOL_FIRE
|align="left"|PISTOL_FIRE
Line 230: Line 230:
|align="left"|EXPANDERSHOOT
|align="left"|EXPANDERSHOOT
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_SOUND2TIME|SOUND2TIME]]
!align="left"|[[WEAPONx_SOUND2TIME|SOUND2TIME]]
|0
|0
|0
|0
Line 244: Line 244:
|0
|0
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_SOUND2SOUND|SOUND2SOUND]]
!align="left"|[[WEAPONx_SOUND2SOUND|SOUND2SOUND]]
|0
|0
|0
|0
Line 258: Line 258:
|0
|0
|- align="center"
|- align="center"
|align="left"|[[WEAPONx_RELOADSOUND1|RELOADSOUND1]]
!align="left"|[[WEAPONx_RELOADSOUND1|RELOADSOUND1]]
|EJECT_CLIP
|colspan="12"|EJECT_CLIP
|==
|==
|==
|==
|==
|==
|==
|==
|==
|==
|EJECT_CLIP
|- align="center"
|- align="center"
|align="left"|[[WEAPONx_RELOADSOUND2|RELOADSOUND2]]
!align="left"|[[WEAPONx_RELOADSOUND2|RELOADSOUND2]]
|INSERT_CLIP
|colspan="12"|INSERT_CLIP
|==
|- ALIGN="RIGHT"
|==
!align="left"|[[WEAPONx_SELECTSOUND|SELECTSOUND]]
|==
|0
|==
|==
|==
|==
|==
|==
|==
|INSERT_CLIP
|INSERT_CLIP
|SHOTGUN_COCK
|SELECT_WEAPON
|SELECT_WEAPON
|0
|SELECT_WEAPON
|SELECT_WEAPON
|0
|SELECT_WEAPON
|0
|SELECT_WEAPON
|- ALIGN="RIGHT"
|- ALIGN="RIGHT"
|align="left"|[[WEAPONx_FLASHCOLOR|FLASHCOLOR]]
!align="left"|[[WEAPONx_FLASHCOLOR|FLASHCOLOR]]
|0
|0
|24575
|24575
Line 302: Line 294:


[[Category:Gamevar manipulation]]
[[Category:Gamevar manipulation]]
[[Category:Scripting documentation]]

Revision as of 14:14, 15 December 2019

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.

Weapon Properties

The weapon properties come in the format WEAPONx_FIELD, where x is the weapon ID number and FIELD is the property of the weapon that the gamevar refers to.

WEAPONx_ Mighty Foot Pistol Shotgun Chaingun RPG Pipebomb Shrinker Devastator Tripbomb Freezer Detonator Expander
WORKSLIKE 0 1 2 3 4 5 6 7 8 9 10 11
CLIP 0 12 0 0 0 0 0 0 0 0 0 0
RELOAD 0 27 13 0 0 30 0 0 16 0 10 0
FIREDELAY 7 2 4 3 4 6 10 3 3 3 2 3
TOTALTIME 14 5 30 12 20 19 12 6 16 5 10 5
HOLDDELAY 0 0 0 3 0 12 0 5 7 0 0 0
FLAGS 292 32768 1024 73812 0 512 2 72 3072 65536 384 2

No visible

Random restart

Automatic

Reload timing

Check at reload

Automatic

Fire every third

Ammo per shot

Spawn type 3

Reset

None

Throw it

Glows

Fire every other

Ammo per shot

Stand still

Check at reload

Reset

Bomb trigger

No visible

Glows

SHOOTS KNEE SHOTSPARK1 SHOTGUN CHAINGUN RPG HEAVYHBOMB SHRINKER RPG HANDHOLDINGLASER FREEZEBLAST 0 GROWSPARK
SPAWNTIME 0 2 24 1 0 0 0 0 0 0 0 0
SPAWN 0 SHELL SHOTGUNSHELL SHELL 0 0 0 0 0 0 0 0
SHOTSPERBURST 0 0 7 0 0 0 0 2 0 0 0 0
INITIALSOUND 0 0 0 0 0 0 SHRINKER_FIRE CAT_FIRE 0 CAT_FIRE 0 0
FIRESOUND 0 PISTOL_FIRE SHOTGUN_FIRE CHAINGUN_FIRE 0 0 0 0 0 CAT_FIRE 0 EXPANDERSHOOT
SOUND2TIME 0 0 15 0 0 0 0 0 0 0 0 0
SOUND2SOUND 0 0 SHOTGUN_COCK 0 0 0 0 0 0 0 0 0
RELOADSOUND1 EJECT_CLIP
RELOADSOUND2 INSERT_CLIP
SELECTSOUND 0 INSERT_CLIP SHOTGUN_COCK SELECT_WEAPON SELECT_WEAPON 0 SELECT_WEAPON SELECT_WEAPON 0 SELECT_WEAPON 0 SELECT_WEAPON
FLASHCOLOR 0 24575 24575 24575 24575 0 8454016 24575 0 16744576 0 24575