This article relates to the game "Alien Swarm". Click here for more information.

asw_gamerules

From Valve Developer Community
Jump to navigation Jump to search

C++ Class hierarchy
CAlienSwarmProxy
CGameRulesProxy
CBaseEntity
C++ asw_gamerules.cpp

asw_gamerules is a point entity available in Alien Swarm Alien Swarm. Alien Swarm: Infested game rules

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also: Generic Keyvalues, Inputs and Outputs available to all entities
Speedrun time (speedruntime) <integer>
Speed run time in seconds. Players must complete the mission within this time to unlock Uber mode.
Speedrun time singleplayer (speedruntimesp) <integer>
Speed run time in seconds. Players must complete the mission within this time to unlock Uber mode.
  • 0 : "Ground routes only"
  • 1 : "Ground and jump routes"
  • 2 : "Allow jump everywhere"
  • 3 : "Jump no matter what"
Camera Rotation (allowcamerarotation) <choices> (only in Alien Swarm: Reactive Drop)
Allow players to rotate the camera using rotatecameraleft and rotatecameraright.
  • 0 : "Deny rotation"
  • 1 : "Allow rotation"

Inputs

SetTutorialStage <integerRedirectInput/integer> (only in Alien Swarm: Reactive Drop)
reset the tutorial to a different spawn; only works on the tutorial level
AddPoints <integerRedirectInput/integer> (only in Alien Swarm: Reactive Drop)
Award points to the players. Only works if the mission is in progress and the mission overview is tagged with 'points'.
ModifyDifficulty <integerRedirectInput/integer> (only in Alien Swarm: Reactive Drop)
Modify the mission difficulty level during gameplay. This does NOT affect health for already-spawned aliens. Normal difficulty is 5, brutal is 13. Only works if the mission is in progress. Difficulty level cannot go below 2 or above 10 million.
MarineFinishedMission <targetnameRedirectInput/string> (only in Alien Swarm: Reactive Drop)
Mark a marine as having finished the mission independely of their team, for speedrun leaderboards.

Outputs

OnDifficulty <integerRedirectOutput/integer> (only in Alien Swarm: Reactive Drop)
On mission start, 1=Easy, 2=Normal, 3=Hard, 4=Insane, 5=Brutal
OnOnslaught <integerRedirectOutput/integer> (only in Alien Swarm: Reactive Drop)
On mission start, 0=Normal, 1=Onslaught
OnFriendlyFire <integerRedirectOutput/integer> (only in Alien Swarm: Reactive Drop)
On mission start, 0=Normal, 1=Hardcore
OnChallenge <stringRedirectOutput/string> (only in Alien Swarm: Reactive Drop)
On mission start, the challenge filename or 0 for no challenge.
TotalPoints <integerRedirectOutput/integer> (only in Alien Swarm: Reactive Drop)
Called when score changes
MissionDifficulty <integerRedirectOutput/integer> (only in Alien Swarm: Reactive Drop)
Called when computed mission difficulty changes. Not to be confused with OnDifficulty.