Jump to content

User:MIDIMan/Ringslinger Revolution/Constants

From SRB2 Wiki

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
TAG_HIDERRATIO 6 The ratio between seekers and hiders in Tag and H&S. For every 6 players in a game, there is one seeker.
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 The maximum speed that a player can have before the rsrinfo_t.deathcam is spawned.
WARN_COOLDOWN TICRATE The cooldown time for the EHP HUD flashing when the player is at critical health.
MINOR_COOLDOWN TICRATE/2 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 The default time value that the player's rsrinfo_t.attackerTimer gets set to when they get hurt by another player.

Health and Armor

Name Value Description
MAX_HEALTH 100 The maximum amount of health the player can have.
MAX_ARMOR 100 The maximum amount of armor the player can have.
TRIGGER_HYPER 1750 The minimum amount of hype needed for the player to activate their super form when they have the Chaos Emeralds.
MAX_HEALTH_BONUS 200 The maximum amount of bonus health the player can have.
MAX_ARMOR_BONUS 200 The maximum amount of bonus armor the player can have.
MAX_HYPE 3000 The maximum amount of hype the player can have.
CRIT_EHP 40 The amount of effective hit points (health + armor) the player can go down to before activating critical healing.
SUPERCRIT_EHP 25 The amount of effective hit points (health + armor) the player can go down to before activating the critical healing cooldown.
CRIT_COOLDOWN 7*TICRATE The cooldown time for critical healing when the player is at SUPERCRIT_EHP effective hit points and they heal above that amount.

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 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 Forces the icon killfeed to display the "switched teams" icon and an appropriate message to the text killfeed.
8 DEATH_GOTBURNT Makes the player look burnt. Automatically added when the player gets killed by explosions or fire-based hazards.
16 DEATH_GOTTAGGED Takes away 100 points from the attacker in Tag since killing a hider already awards them points.
32 DEATH_FLIPSPRITEROLL Flips the direction the player's sprite rotates when active. Automatically set randomly.
64 DEATH_USEDKILLCMD Displays a special killfeed message when the player uses the rsr_kill command.
128 DEATH_USEDEXPLODECMD Displays a special killfeed message when the player uses the rsr_explode command.
256 DEATH_USEDDISTINTEGRATECMD Displays a special killfeed message when the player uses the rsr_disintegrate command.

Viewmodel Flags

Value Name Description
0 CVVIEWMODEL_NONE Displays no weapon ring "viewmodel".
1 CVVIEWMODEL_RIGHT Displays the weapon ring "viewmodel" on the right side.
2 CVVIEWMODEL_LEFT Displays the weapon ring "viewmodel" on the left side.
3 CVVIEWMODEL_CENTER Displays the weapon ring "viewmodel" in the center.