mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2026-09-05 04:47:06 +00:00
complete menu
This commit is contained in:
@@ -4,5 +4,4 @@ Bot Warfare for CoD2, in progress...
|
|||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
- _bot_script
|
- _bot_script
|
||||||
- _menu
|
|
||||||
- _bot_chat
|
- _bot_chat
|
||||||
|
|||||||
+5
-22
@@ -8,23 +8,6 @@
|
|||||||
#include maps\mp\_utility;
|
#include maps\mp\_utility;
|
||||||
#include maps\mp\bots\_bot_utility;
|
#include maps\mp\bots\_bot_utility;
|
||||||
|
|
||||||
|
|
||||||
secondaryoffhandbuttonpressed()
|
|
||||||
{
|
|
||||||
return getcvarint( "smoke" );
|
|
||||||
}
|
|
||||||
|
|
||||||
fragbuttonpressed()
|
|
||||||
{
|
|
||||||
return getcvarint( "frag" );
|
|
||||||
}
|
|
||||||
|
|
||||||
adsbuttonpressed()
|
|
||||||
{
|
|
||||||
return getcvarint( "speed" ) || self playerads() > 0.05;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
init()
|
init()
|
||||||
{
|
{
|
||||||
if ( getcvar( "bots_main_menu" ) == "" )
|
if ( getcvar( "bots_main_menu" ) == "" )
|
||||||
@@ -190,7 +173,7 @@ doGreetings()
|
|||||||
wait 1;
|
wait 1;
|
||||||
self iprintln( "Welcome to Bot Warfare " + self.name + "!" );
|
self iprintln( "Welcome to Bot Warfare " + self.name + "!" );
|
||||||
wait 5;
|
wait 5;
|
||||||
self iprintln( "Press [{+frag}] + [{+smoke}] to open menu!" );
|
self iprintln( "Press [{+attack}] + [{+activate}] + [{+melee}] to open menu!" );
|
||||||
}
|
}
|
||||||
|
|
||||||
watchPlayerOpenMenu()
|
watchPlayerOpenMenu()
|
||||||
@@ -200,7 +183,7 @@ watchPlayerOpenMenu()
|
|||||||
|
|
||||||
for ( ;; )
|
for ( ;; )
|
||||||
{
|
{
|
||||||
while ( !self fragbuttonpressed() || !self secondaryoffhandbuttonpressed() )
|
while ( !self attackbuttonpressed() || !self meleebuttonpressed() || !self usebuttonpressed() )
|
||||||
{
|
{
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
}
|
}
|
||||||
@@ -233,7 +216,7 @@ watchPlayerOpenMenu()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while ( self fragbuttonpressed() && self secondaryoffhandbuttonpressed() )
|
while ( self attackbuttonpressed() && self meleebuttonpressed() && self usebuttonpressed() )
|
||||||
{
|
{
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
}
|
}
|
||||||
@@ -327,7 +310,7 @@ RightMenu()
|
|||||||
|
|
||||||
for ( ;; )
|
for ( ;; )
|
||||||
{
|
{
|
||||||
while ( !self adsbuttonpressed() )
|
while ( !self usebuttonpressed() )
|
||||||
{
|
{
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
}
|
}
|
||||||
@@ -360,7 +343,7 @@ RightMenu()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while ( self adsbuttonpressed() )
|
while ( self usebuttonpressed() )
|
||||||
{
|
{
|
||||||
wait 0.05;
|
wait 0.05;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user