ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.74k stars 631 forks source link

[GoldSource/CS][Feature] Breakable hint #2207

Open ArmynC opened 5 years ago

ArmynC commented 5 years ago

There should be a client_print which can help the player to know what objects are breakable, as func_breakable. Cvar toggleable (1/0). Related to #2205

Code example (with two methods):

  if(equal(szClassName, "func_breakable"))
  {
      if (get_pcvar_num(cvar_message_type) == 1)
      {
          set_hudmessage(random(256), random(256), random(256), 0.1, -0.3, 2, 2.0, 2.0)
          show_hudmessage(id, "You can break this entity!")
      }
      else if (get_pcvar_num(cvar_message_type) == 2)
      {
          client_print(id, print_center, "You can break this entity!")
      }
  }

Source

Mistrick commented 5 years ago

And broke all deathrun traps with func_breakable

ArmynC commented 5 years ago

That's why I said "Cvar toggleable" (there are some explicit cases where it should stay off). Anyway here I'll try to post more ideeas to choose from. There are maps that got hidden things that should be useful to have this. Like the 'PRESS TO PLANT'.

RauliTop commented 5 years ago

Not neccessary, you can do it with plugins if you want.

Also, it depends on the mapper design... like deathrun maps or jailbreak hidden places