User:MIDIMan/Ringslinger Revolution/Global variables
Appearance
This is a list of all pre-defined global variables and tables that are accessible in Ringslinger Revolution.
Please note that all variables must be accessed with the RSR
namespace. For example to use MAX_HEALTH
, it must be written as RSR.MAX_HEALTH
to get the value of the variable.
Variables
This is a list of all non-table global variables.
Name | Variable type | Description |
---|---|---|
MAX_HEALTH
|
number | Maximum health that a player can have with normal health pickups (100). |
MAX_ARMOR
|
number | Maximum armor that a player can have with normal armor pickups (100). |
MAX_HYPE
|
number | Maximum hype that a player can have (3000). |
MAX_HEALTH_BONUS
|
number | Maximum health that a player can have with bonus health pickups (200). |
TRIGGER_HYPE
|
number | Minimum hype need to turn super (1750). |
CURRENT_BOSS
|
mobj_t
|
The currently active boss in the map. |
Tables
This is a list of all global variables that are tables.
Name | Array type | Usage | Description |
---|---|---|---|
RSR_GAMETYPES
|
boolean | RSR_GAMETYPES[GT_NAME]
|
This table is used to look up whether a gametype uses RSR-logic or not. |
MOBJ_INFO
|
rsrmobjinfo_t
|
MOBJ_INFO[MT_NAME]
|
This table is used to look up or modify attributes for a specific Object type, where MT_NAME is an integer that is expected to be the MT_* constant for the Object type in question.
Example usage:RSR.MOBJ_INFO[MT_RSR_PROJECTILE_RAIL].railring = true
local crawlaHealth = RSR.MOBJ_INFO[MT_BLUECRAWLA].health
MOBJ_INFO[] can be recreated from scratch if needed (see Userdata structures).
|
KILLFEED_DMG_TO_ICON
|
string | KILLFEED_DMG_TO_ICON[DMG_NAME]
|
Converts a damage type number to a string corresponding to the patch name used for the damage type in the killfeed. DMG_NAME is an integer that is expected to be the DMG_* constant for the damage type number in question.
|
KILLFEED_MOBJ_TO_ICON
|
string | KILLFEED_MOBJ_TO_ICON[MT_NAME]
|
Converts an Object type number to a string corresponding to the patch name used for the Object type in the killfeed. MT_NAME is an integer that is expected to be the MT_* constant for the Object type number in question.
|
POWERUP_INFO
|
rsrpowerupinfo_t
|
POWERUP_INFO[RSR.POWERUP_NAME]
|
This table is used to look up or modify attributes for a specific powerup, where RSR.POWERUP_NAME is an integer that is expected to be the RSR.POWERUP_* constant for the powerup in question.
Whole entries for |
SKIN_INFO
|
rsrskininfo_t
|
SKIN_INFO["skinname"]
|
This table is used to look up and modify attributes for a specific skin, where skinname is the skin’s name attribute. See Userdata structures#rsrskininfo_t for more information.
|
AMMO_INFO
|
rsrammoinfo_t
|
AMMO_INFO[RSR.AMMO_NAME]
|
This table is used to look up and modify attributes for a specific ammo type, where RSR.AMMO_NAME is an integer that is expected to be the AMMO_* constant for the ammo type in question.
Whole entries for |
WEAPON_INFO
|
rsrweaponinfo_t
|
WEAPON_INFO[RSR.WEAPON_NAME]
|
This table is used to look up and modify attributes for a specific weapon type, where RSR.WEAPON_NAME is an integer that is expected to be the WEAPON_* constant for the ammo type in question.
Whole entries for |