Difference between revisions of "Buddha"

From Valve Developer Community
Jump to: navigation, search
(added category)
(Better explanation for why buddha fails)
 
Line 1: Line 1:
'''<code>buddha</code>''' is a console command that ensures you never die by always forcing you to have at least 1 hp.
+
'''<code>buddha</code>''' is a console command that ensures you never die by always forcing you to have at least 1 health point.
  
 
To enable and disable, type <code>buddha</code> in the console. If it worked, it should say "Buddha Mode on/off..." in the console.
 
To enable and disable, type <code>buddha</code> in the console. If it worked, it should say "Buddha Mode on/off..." in the console.
  
{{bug|Rarely, this command will fail and let the player die.}}
+
{{bug|If the player has X HP, and gets dealt any damage between (X-0.001) and (X-0.500), they will die. Health is stored as an integer, and damage as a float. The game rounds damage taken to the nearest integer prior and subtracts it from the player's health value, which can bypass the 1 health point barrier.}}
  
 
==See Also==
 
==See Also==

Latest revision as of 18:10, 17 June 2019

buddha is a console command that ensures you never die by always forcing you to have at least 1 health point.

To enable and disable, type buddha in the console. If it worked, it should say "Buddha Mode on/off..." in the console.

Bug: If the player has X HP, and gets dealt any damage between (X-0.001) and (X-0.500), they will die. Health is stored as an integer, and damage as a float. The game rounds damage taken to the nearest integer prior and subtracts it from the player's health value, which can bypass the 1 health point barrier.

See Also

  • god, a console command that makes you take no damage at all.