custom bat file...

custom bat file...

Hammer Mapping — Page [1]
Mate de Vita
Kelli

2008 Oct 4 • 2453
159 ₧
So I was mucking about with bat files and I wanted to try something out but it didn't exactly work.

@echo off
D:
cd "Delo\Matej\Counter-Strike 1.6"
hl -game cstrike +map de_dust -bot_difficulty 3 -bot_add -bot_add -bot_add -bot_add -bot_add -bot_add -bot_add -bot_allow_grenades 0 -bot_allow_shield 0

(there's just a space between those two -bot_adds in the bat file)
It just starts the game and maps de_dust but I can't choose T/CT (I automatically spawn as T) and I don't get the life, ammo... display.
And also no bots are spawned.
Is there any way to do this right?
...and that's the bottom line because Mate de Vita said so.
 
 
 
2009 May 10 at 07:36 PDT — Ed. 2009 May 10 at 07:38 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
I don't think you can add bots through the command line. The best way to do it would be to add your commands to a cfg file in your cstrike directory (or a sub, I can't remember) then execute that through the console. You could call it bots.cfg or something.
 
 
 
2009 May 10 at 07:56 PDT
Mate de Vita
Kelli

2008 Oct 4 • 2453
159 ₧
Kay, what about the ammo/life/armor/cash display and team choosing? Also how exactly do I run the cfg file? Do I just add a parameter -bots.cfg or do I write
cd "path to cfg"
bots.cfg

or something else?
...and that's the bottom line because Mate de Vita said so.
 
 
 
2009 May 10 at 08:10 PDT — Ed. 2009 May 10 at 08:21 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
Don't specify the file to use in the parameters for hl.exe, enter it in the console like (the game console, accessed with `)
exec myconfigfile.cfg

which should be in the root cstrike directory. You should enter the commands in the file as you would enter them in the game console.
 
 
 
2009 May 10 at 10:08 PDT
Mate de Vita
Kelli

2008 Oct 4 • 2453
159 ₧
Allright I got this to work. But I still don't know about the team choice (well I do know about the -deathmatch 1 part but what about auto-assign?) and display.
...and that's the bottom line because Mate de Vita said so.
 
 
 
2009 May 11 at 06:09 PDT — Ed. 2009 May 11 at 10:16 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
Not sure from here on in... Is it possible for you to do it manually? (that is set up a game from the menu)
 
 
 
2009 May 11 at 11:25 PDT
Page [1]