terror_gamerules

From Valve Developer Community
Jump to navigation Jump to search

Stub

This article or section is a stub. You can help by expanding it.

Info.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
Class hierarchy
CTerrorGameRulesProxy
CCSGameRulesProxy
CGameRulesProxy
CBaseEntity

terror_gamerules is an entity available in Left 4 Dead series Left 4 Dead series. It contains scripted HUD and pvp modes score related stuff.

Icon-Important.pngImportant:This is a preserved entity in Left 4 DeadLeft 4 Dead 2.
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non preserved entities may have undesirable effects.
Warning.pngWarning:Killing this entity may crash the game.

NetProps

CTerrorGameRulesProxy (type DT_TerrorGameRulesProxy)
 Table: baseclass (offset 0) (type DT_CSGameRulesProxy)
  Table: baseclass (offset 0) (type DT_GameRulesProxy)
  Table: cs_gamerules_data (offset 0) (type DT_CSGameRules)
   Member: m_bFreezePeriod (offset 573) (type integer) (bits 1) (Unsigned)
   Member: m_iRoundTime (offset 576) (type integer) (bits 16) ()
   Member: m_fLevelStartTime (offset 580) (type float) (bits 0) (NoScale)
   Member: m_flGameStartTime (offset 584) (type float) (bits 0) (NoScale)
   Member: m_iHostagesRemaining (offset 588) (type integer) (bits 4) ()
   Member: m_bMapHasBombTarget (offset 592) (type integer) (bits 1) (Unsigned)
   Member: m_bMapHasRescueZone (offset 593) (type integer) (bits 1) (Unsigned)
   Member: m_bLogoMap (offset 594) (type integer) (bits 1) (Unsigned)
   Member: m_bBlackMarket (offset 595) (type integer) (bits 1) (Unsigned)
 Table: terror_gamerules_data (offset 0) (type DT_TerrorGameRules)
  Member: m_bFreezePeriod (offset 573) (type integer) (bits 1) (Unsigned)
  Member: m_iRoundTime (offset 576) (type integer) (bits 16) ()
  Member: m_fLevelStartTime (offset 580) (type float) (bits 0) (NoScale)
  Member: m_flGameStartTime (offset 584) (type float) (bits 0) (NoScale)
  Table: m_iSurvivorScore (offset 908) (type m_iSurvivorScore)
   Members: 000-001 (type integer) (bits 16) ()
  Table: m_iCampaignScore (offset 916) (type m_iCampaignScore)
   Members: 000-001 (type integer) (bits 16) ()
  Table: m_iChapterScore (offset 924) (type m_iChapterScore)
   Members: 000-001 (type integer) (bits 16) ()
  Table: m_iChapterDamage (offset 932) (type m_iChapterDamage)
   Members: 000-001 (type integer) (bits 16) ()
  Table: m_iScavengeTeamScore (offset 940) (type m_iScavengeTeamScore)
   Members: 000-009 (type integer) (bits 6) (Unsigned)
  Table: m_iScavengeMatchScore (offset 980) (type m_iScavengeMatchScore)
   Members: 000-001 (type integer) (bits 4) (Unsigned)
  Table: m_flTeamRoundTime (offset 988) (type m_flTeamRoundTime)
   Members: 000-001 (type float) (bits 16) ()
  Table: m_iVersusDistancePerSurvivor (offset 996) (type m_iVersusDistancePerSurvivor)
   Members: 000-007 (type integer) (bits 8) (Unsigned)
  Table: m_iVersusSurvivorDeathDistance (offset 1028) (type m_iVersusSurvivorDeathDistance)
   Members: 000-007 (type integer) (bits 9) ()
  Table: m_iVersusSurvivalMultiplier (offset 1068) (type m_iVersusSurvivalMultiplier)
   Members: 000-001 (type integer) (bits 4) (Unsigned)
  Table: m_iVersusDefibsUsed (offset 1076) (type m_iVersusDefibsUsed)
   Members: 000-001 (type integer) (bits 4) (Unsigned)
  Member: m_bInIntro (offset 1088) (type integer) (bits 1) (Unsigned)
  Member: m_iServerRank (offset 1152) (type integer) (bits 16) (Unsigned)
  Member: m_iServerPlayerCount (offset 1156) (type integer) (bits 16) (Unsigned)
  Member: m_bIsDedicatedServer (offset 1160) (type integer) (bits 1) (Unsigned)
  Member: m_iServerSteamGroupID (offset 1164) (type integer) (bits 32) (Unsigned)
  Member: m_flRoundStartTime (offset 1092) (type float) (bits 0) (NoScale)
  Member: m_flRoundEndTime (offset 1096) (type float) (bits 0) (NoScale)
  Member: m_flAccumulatedTime (offset 1100) (type float) (bits 0) (NoScale)
  Member: m_nRoundNumber (offset 1104) (type integer) (bits 32) ()
  Member: m_nRoundLimit (offset 1108) (type integer) (bits 32) ()
  Table: m_iWinningTeamNumber (offset 1112) (type m_iWinningTeamNumber)
   Members: 000-004 (type integer) (bits 2) (Unsigned)
  Member: m_flTeamBestRoundTime (offset 1132) (type float) (bits 0) (NoScale)
  Table: m_flRoundDuration (offset 1136) (type m_flRoundDuration)
   Members: 000-001 (type float) (bits 0) (NoScale)
  Member: m_nScavengeItemsRemaining (offset 1144) (type integer) (bits 32) ()
  Member: m_nScavengeItemsGoal (offset 1148) (type integer) (bits 32) ()
  Member: m_bAreTeamsFlipped (offset 1168) (type integer) (bits 1) (Unsigned)
  Member: m_bInSecondHalfOfRound (offset 1169) (type integer) (bits 1) (Unsigned)
  Member: m_bIsTransitioningToNextMap (offset 1170) (type integer) (bits 1) (Unsigned)
  Member: m_bIsVersusVoteRestarting (offset 1171) (type integer) (bits 1) (Unsigned)
  Member: m_bChallengeModeActive (offset 1172) (type integer) (bits 1) (Unsigned)
  Member: m_bWaterSlowdownEnabled (offset 1173) (type integer) (bits 1) (Unsigned)
  Member: m_iSacrificeEscapees (offset 1176) (type integer) (bits 32) (Unsigned)
  Member: m_flHoldoutCooldownEndTime (offset 1180) (type float) (bits 0) (NoScale)
  Table: m_iScriptedHUDInts (offset 1184) (type m_iScriptedHUDInts)
   Member: 000-014 (type integer) (bits 16) ()
  Table: m_fScriptedHUDFloats (offset 1244) (type m_fScriptedHUDFloats)
   Member: 000-014 (type float) (bits 0) (NoScale)
  Table: m_iScriptedHUDFlags (offset 1304) (type m_iScriptedHUDFlags)
   Members: 000-014 (type integer) (bits 16) (Unsigned)
  Table: m_fScriptedHUDTimerBase (offset 1620) (type m_fScriptedHUDTimerBase)
   Members: 000-003 (type float) (bits 16) ()
  Table: m_fScriptedHUDTimerAdd (offset 1636) (type m_fScriptedHUDTimerAdd)
   Members: 000-003 (type float) (bits 16) ()
  Table: m_iScriptedHUDTimerMode (offset 1604) (type m_iScriptedHUDTimerMode)
   Members: 000-003 (type integer) (bits 4) ()
  Table: m_fScriptedHUDPosX (offset 1364) (type m_fScriptedHUDPosX)
   Members: 000-014 (type float) (bits 0) (NoScale)
  Table: m_fScriptedHUDPosY (offset 1424) (type m_fScriptedHUDPosY)
   Members: 000-014 (type float) (bits 0) (NoScale)
  Table: m_fScriptedHUDWidth (offset 1484) (type m_fScriptedHUDWidth)
   Members: 000-014 (type float) (bits 0) (NoScale)
  Table: m_fScriptedHUDHeight (offset 1544) (type m_fScriptedHUDHeight)
   Members: 000-014 (type float) (bits 0) (NoScale)
  Member: m_szScriptedHUDStringSet (offset 1652) (type string) (bits 0) (InsideArray)
  Member: m_szScriptedHUDStringSet (offset 0) (type array) (bits 0) ()

See also