Jump to content

User:MIDIMan/Ringslinger Revolution/Constants

From SRB2 Wiki
To do
Add documentation for more constants

This is a comprehensive list of most constants available in Ringslinger Revolution.

Please note that all constants must be accessed with the RSR namespace. For example, to use WEAPON_BASIC, it must be written as RSR.WEAPON_BASIC to get the value of the variable.

Weapons (WEAPON_*)

Value Name Description
0 WEAPON_NONE No weapon
1 WEAPON_BASIC Red ring weapon
2 WEAPON_SCATTER Scatter ring weapon
3 WEAPON_AUTO Automatic ring weapon
4 WEAPON_BOUNCE Bounce ring weapon
5 WEAPON_GRENADE Grenade ring weapon
6 WEAPON_BOMB Explosion ring weapon
7 WEAPON_HOMING Homing ring weapon
8 WEAPON_RAIL Rail ring weapon

Ammo (AMMO_*)

Value Name Description
1 AMMO_BASIC Red ring ammo
2 AMMO_SCATTER Scatter ring ammo
3 AMMO_AUTO Automatic ring ammo
4 AMMO_BOUNCE Bounce ring ammo
5 AMMO_GRENADE Grenade ring ammo
6 AMMO_BOMB Explosion ring ammo
7 AMMO_HOMING Homing ring ammo
8 AMMO_RAIL Rail ring ammo

Hit Sounds (HITSOUND_*)

Value Name Description
1 HITSOUND_HIT Used when the player hits an opposing player
2 HITSOUND_ARMOR Used when the player hits an opposing player with armor
3 HITSOUND_BREAK Used when the player breaks an opposing player's armor
4 HITSOUND_INVIN Used when the player hits an opposing player with invincibility
5 HITSOUND_ASSIST Used when the player assists in the death of an opposing player
6 HITSOUND_KILL Used when the player kills an opposing player

Death Flags (DEATH_*)

Value Name Description
1 DEATH_REMOVEDEATHMASK Removes the DMG_DEATHMASK flag from the damage type when printing a death message to the killfeed
2 DEATH_MAKESPECTATOR Forces the damage type to be DMG_SPECTATOR when printing a death message to the killfeed