1

Question: How exactly do I change the health of all bots of both teams for all rounds in an offline casual match of Counter-Strike: Global Offensive consisting only of bots and myself please?

My level of knowledge: I think I'm familiar enough with creating and executing cfg files, and I've even tried changing player maximum to 30 when playing with bots offline. I know of csgo console commands to set weapons or money for the match like mp_afterroundmoney 600 or Mp_t_default_primary weapon_awp. I can't believe health isn't as simple. This is very frustrating. I am hoping that if there isn't a command for this (like like mp_afterroundmoney 600 or Mp_t_default_primary weapon_awp) and if there isn't a txt file to edit here (like with changing player maximum to 30), then there might be some script one can write that I can put in a cfg file, which I would execute. If that fails, then I guess I'll have to resort to the requirements mentioned below.

What I tried so far:

1 To change just my health I can do

ent_fire !player addoutput health 1

or

ent_fire !player sethealth 500

2 To change just 1 bot's health I can do

ent_fire !picker addoutput health 1

or

ent_fire !picker sethealth 500

But I would have to look at the bot, and then this would not necessarily apply for the succeeding rounds.

3 Even if I do (2) for all the bots on my team, to do this for the bots on the other team, I would have to

explode

and then go to each bot of the other team and do

ent_fire !picker sethealth 500

4 Even if I do (3), I cannot do this while the server is paused with

sv_pausable 1; pause
  1. I have read about this elsewhere:

It seems I may need

  • plugins

  • vscript

  • squirrel

  • hammer

or something.

I need some guidance please: If spoonfeeding me is against the rules, then please at least give me an outline of what I need to download, where I can download, how I can install and run, what to do once there and how to compile and run.

  • ent_fire also works on wildcards (*) and class names. I'm not entirely sure, but you could try "bot" or "cs_bot" as a target. It's also possible to do that in hammer, but that would be more complicated. Or name your bots accordingly and use a wildcard: (dan* finds daniel and danny, etc). – dly Apr 2 at 6:19
  • @dly I've given up on this for now, but I may come back in the future. Thanks! – Mitjackson May 21 at 9:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.