mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2026-03-29 05:33:03 +00:00
Compare commits
5 Commits
ab7979f9d1
...
newiw5chan
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c69bd552f | ||
|
|
1ca1cab3de | ||
|
|
78435888b8 | ||
|
|
d76bff04a6 | ||
|
|
02ffc62730 |
@@ -945,10 +945,10 @@ connected()
|
|||||||
|
|
||||||
level.bots[ level.bots.size ] = self;
|
level.bots[ level.bots.size ] = self;
|
||||||
self thread onDisconnect();
|
self thread onDisconnect();
|
||||||
|
|
||||||
level notify( "bot_connected", self );
|
|
||||||
|
|
||||||
self thread watchBotDebugEvent();
|
self thread watchBotDebugEvent();
|
||||||
|
|
||||||
|
waittillframeend; // wait for waittills to process
|
||||||
|
level notify( "bot_connected", self );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -3276,11 +3276,11 @@ fire( what )
|
|||||||
|
|
||||||
if ( what )
|
if ( what )
|
||||||
{
|
{
|
||||||
self BotBuiltinBotAction( "+fire" );
|
self BotBuiltinBotAction( "+attack" );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
self BotBuiltinBotAction( "-fire" );
|
self BotBuiltinBotAction( "-attack" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3299,14 +3299,14 @@ pressFire( time )
|
|||||||
time = 0.05;
|
time = 0.05;
|
||||||
}
|
}
|
||||||
|
|
||||||
self BotBuiltinBotAction( "+fire" );
|
self BotBuiltinBotAction( "+attack" );
|
||||||
|
|
||||||
if ( time )
|
if ( time )
|
||||||
{
|
{
|
||||||
wait time;
|
wait time;
|
||||||
}
|
}
|
||||||
|
|
||||||
self BotBuiltinBotAction( "-fire" );
|
self BotBuiltinBotAction( "-attack" );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -3318,11 +3318,11 @@ ads( what )
|
|||||||
|
|
||||||
if ( what )
|
if ( what )
|
||||||
{
|
{
|
||||||
self BotBuiltinBotAction( "+ads" );
|
self BotBuiltinBotAction( "+speed_throw" );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
self BotBuiltinBotAction( "-ads" );
|
self BotBuiltinBotAction( "-speed_throw" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3341,14 +3341,14 @@ pressADS( time )
|
|||||||
time = 0.05;
|
time = 0.05;
|
||||||
}
|
}
|
||||||
|
|
||||||
self BotBuiltinBotAction( "+ads" );
|
self BotBuiltinBotAction( "+speed_throw" );
|
||||||
|
|
||||||
if ( time )
|
if ( time )
|
||||||
{
|
{
|
||||||
wait time;
|
wait time;
|
||||||
}
|
}
|
||||||
|
|
||||||
self BotBuiltinBotAction( "-ads" );
|
self BotBuiltinBotAction( "-speed_throw" );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -3412,8 +3412,8 @@ stand()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
self BotBuiltinBotAction( "-gocrouch" );
|
self BotBuiltinBotAction( "-crouch" );
|
||||||
self BotBuiltinBotAction( "-goprone" );
|
self BotBuiltinBotAction( "-prone" );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -3426,8 +3426,8 @@ crouch()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
self BotBuiltinBotAction( "+gocrouch" );
|
self BotBuiltinBotAction( "+crouch" );
|
||||||
self BotBuiltinBotAction( "-goprone" );
|
self BotBuiltinBotAction( "-prone" );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -3440,8 +3440,8 @@ prone()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
self BotBuiltinBotAction( "-gocrouch" );
|
self BotBuiltinBotAction( "-crouch" );
|
||||||
self BotBuiltinBotAction( "+goprone" );
|
self BotBuiltinBotAction( "+prone" );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -2455,7 +2455,7 @@ bot_think_camp_loop()
|
|||||||
|
|
||||||
self SetScriptGoal( campSpot.origin, 16 );
|
self SetScriptGoal( campSpot.origin, 16 );
|
||||||
|
|
||||||
time = randomintrange( 10, 20 );
|
time = randomintrange( 30, 90 );
|
||||||
|
|
||||||
self BotNotifyBotEvent( "camp", "go", campSpot, time );
|
self BotNotifyBotEvent( "camp", "go", campSpot, time );
|
||||||
|
|
||||||
@@ -2514,7 +2514,17 @@ killCampAfterTime( time )
|
|||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
self endon( "kill_camp_bot" );
|
self endon( "kill_camp_bot" );
|
||||||
|
|
||||||
wait time + 0.05;
|
timeleft = maps\mp\gametypes\_gamelogic::gettimeremaining() / 1000;
|
||||||
|
|
||||||
|
while ( time > 0 && timeleft >= 60 )
|
||||||
|
{
|
||||||
|
wait 1;
|
||||||
|
timeleft = maps\mp\gametypes\_gamelogic::gettimeremaining() / 1000;
|
||||||
|
time--;
|
||||||
|
}
|
||||||
|
|
||||||
|
wait 0.05;
|
||||||
|
|
||||||
self ClearScriptGoal();
|
self ClearScriptGoal();
|
||||||
self ClearScriptAimPos();
|
self ClearScriptAimPos();
|
||||||
|
|
||||||
|
|||||||
@@ -3822,7 +3822,7 @@ _fireFix( lifeId, player )
|
|||||||
|
|
||||||
rocket thread maps\mp\gametypes\_weapons::addmissiletosighttraces( player.team );
|
rocket thread maps\mp\gametypes\_weapons::addmissiletosighttraces( player.team );
|
||||||
|
|
||||||
// rocket thread maps\mp\killstreaks\_remotemissile::handledamage(); // gsc-tool wrong token, its okay, this func is useless anyway
|
rocket thread maps\mp\killstreaks\_remotemissile::handledamage();
|
||||||
|
|
||||||
rocket.lifeid = lifeId;
|
rocket.lifeid = lifeId;
|
||||||
rocket.type = "remote";
|
rocket.type = "remote";
|
||||||
|
|||||||
@@ -79,9 +79,6 @@ removeChildFixed( element )
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.children = temp;
|
self.children = temp;
|
||||||
|
|
||||||
element.index = undefined;
|
|
||||||
element.parent = undefined;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
destroyElemFixed()
|
destroyElemFixed()
|
||||||
|
|||||||
@@ -61,5 +61,5 @@ do_botremoteangles( pitch, yaw )
|
|||||||
|
|
||||||
do_botangles( angles )
|
do_botangles( angles )
|
||||||
{
|
{
|
||||||
self botangles( angles[ 0 ], angles[ 1 ], angles[ 2 ] );
|
self botangles( angles );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user