Jump to content

User:MIDIMan/Ringslinger Revolution/Constants

From SRB2 Wiki
To do
- Add documentation for more constants

- Remove "v2.1 nightly" warnings when v2.1 gets released.

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.

Miscellaneous constants

Name Value Description
HOMING_THRESHOLD_THOK 28 The maximum amount of damage the player can take during a homing thok before it breaks.
HOMING_THRESHOLD_ATTRACT 27 The maximum amount of damage the player can take during an Attraction homing attack before it breaks.
DEATHCAM_SPEED_MAX 96*FRACUNIT
Currently only exists in v2.1 nightly.

The maximum speed that a player can have before the rsrinfo_t.deathcam is spawned.

WARN_COOLDOWN TICRATE
Currently only exists in v2.1 nightly.

The cooldown time for the EHP HUD flashing when the player is at critical health.

MINOR_COOLDOWN TICRATE/2
Currently only exists in v2.1 nightly.

The cooldown time for the EHP HUD flashing when the player gets hit while they have the flag, they are a hider, or if their damagepercent is not the default.

ATTACKER_TIMER_MAX 10*TICRATE
Currently only exists in v2.1 nightly.

The default time value that the player's rsrinfo_t.attackerTimer gets set to when they get hurt by another player.

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.
8 HITSOUND_NOQUAKEMASK
Currently only exists in v2.1 nightly.

Used when the player is killed by a non-Object hazard. Prevents the Quake-esque sound (sfx_rsrquk) from playing.

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.
4 DEATH_SWITCHEDTEAMS
Currently only exists in v2.1 nightly.

Forces the icon killfeed to display the "switched teams" icon and an appropriate message to the text killfeed.

8 DEATH_GOTBURNT
Currently only exists in v2.1 nightly.

Makes the player look burnt. Automatically added when the player gets killed by explosions or fire-based hazards.

16 DEATH_GOTTAGGED
Currently only exists in v2.1 nightly.

Takes away 100 points from the attacker in Tag since killing a hider already awards them points.

32 DEATH_FLIPSPRITEROLL
Currently only exists in v2.1 nightly.

Flips the direction the player's sprite rotates when active. Automatically set randomly.

64 DEATH_USEDKILLCMD
Currently only exists in v2.1 nightly.

Displays a special killfeed message when the player uses the rsr_kill command.

128 DEATH_USEDEXPLODECMD
Currently only exists in v2.1 nightly.

Displays a special killfeed message when the player uses the rsr_explode command.

256 DEATH_USEDDISTINTEGRATECMD
Currently only exists in v2.1 nightly.

Displays a special killfeed message when the player uses the rsr_disintegrate command.