Remove "bot_add" command, add zpak001.pk3dir/scripts/bots.txt

This commit is contained in:
Marco Cawthorne 2024-01-26 19:23:21 -08:00
parent 381412e4ba
commit 4e232c6875
Signed by: eukara
GPG key ID: CE2032F0A2882A22
2 changed files with 63 additions and 10 deletions

View file

@ -232,16 +232,6 @@ HLMultiplayerRules::ConsoleCommand(NSClientPlayer pp, string cmd)
tokenize(cmd); tokenize(cmd);
switch (argv(0)) { switch (argv(0)) {
case "bot_add":
bot pete = (bot)Bot_AddQuick();
Bot_RandomColormap(pete);
searchhandle pm = search_begin("models/player/*/*.mdl", TRUE, TRUE);
int r = floor(random(0, search_getsize(pm)));
string mdl = substring(search_getfilename(pm, r), 0, -5);
tokenizebyseparator(mdl, "/");
pete.SetInfoKey("model", argv(2));
search_end(pm);
break;
case "jumptest": case "jumptest":
makevectors(pp.v_angle); makevectors(pp.v_angle);
traceline(pp.origin + pp.view_ofs, pp.origin + pp.view_ofs + v_forward * 1024, FALSE, pp); traceline(pp.origin + pp.view_ofs, pp.origin + pp.view_ofs + v_forward * 1024, FALSE, pp);

View file

@ -0,0 +1,63 @@
{
name Barney
model barney
topcolor 0xeff
bottomcolor 0xff0020
}
{
name Gina
model gina
topcolor 0xff6b00
bottomcolor 0xff0b00
}
{
name GMan
funname G-Man
model gman
topcolor 0x9200ff
bottomcolor 0xc800ff
}
{
name Gordon
model gordon
topcolor 0xa8ff00
bottomcolor 0xf3ff00
}
{
name Helmet
funname HelmetSci
model helmet
topcolor 0xffaf
bottomcolor 0xffb600
}
{
name HGrunt
funname H-Grunt
model hgrunt
topcolor 0xff24
bottomcolor 0xff4000
}
{
name Recon
model recon
topcolor 0x8fff
bottomcolor 0xff0076
}
{
name Robot
model robo
topcolor 0xff0076
bottomcolor 0xa4ff
}
{
name Scientist
model scientist
topcolor 0xfffa
bottomcolor 0xffcb00
}
{
name Zombie
model zombie
topcolor 0xa4ff
bottomcolor 0xffab00
}