1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-28 15:11:49 +00:00

Start of the end?

This commit is contained in:
ineedbots
2021-05-07 18:47:54 -06:00
commit 8f1f131122
6 changed files with 132 additions and 0 deletions

6
maps/mp/bots/_bot.gsc Normal file
View File

@ -0,0 +1,6 @@
#include common_scripts\utility;
#include maps\mp\_utility;
init()
{
}

View File

@ -0,0 +1,25 @@
// IW5 PC GSC
// Decompiled by https://github.com/xensik/gsc-tool
init()
{
level thread onPlayerConnect();
level thread maps\mp\bots\_bot::init();
}
onPlayerConnect()
{
for (;;)
{
level waittill( "connected", var_0 );
var_1 = var_0 maps\mp\gametypes\_persistence::statGet( "cardIcon" );
var_2 = tablelookupbyrow( "mp/cardIconTable.csv", var_1, 0 );
var_0 setcardicon( var_2 );
var_3 = var_0 maps\mp\gametypes\_persistence::statGet( "cardTitle" );
var_4 = tablelookupbyrow( "mp/cardTitleTable.csv", var_3, 0 );
var_0 setcardtitle( var_4 );
var_5 = var_0 maps\mp\gametypes\_persistence::statGet( "cardNameplate" );
var_0 setcardnameplate( var_5 );
}
}