196 lines
8.0 KiB
Plaintext
196 lines
8.0 KiB
Plaintext
#using scripts\shared\array_shared;
|
|
#using scripts\shared\callbacks_shared;
|
|
#using scripts\shared\laststand_shared;
|
|
#using scripts\shared\math_shared;
|
|
#using scripts\shared\system_shared;
|
|
#using scripts\shared\util_shared;
|
|
|
|
|
|
|
|
#namespace bot;
|
|
|
|
// From buttonbits.inl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Buttons
|
|
//========================================
|
|
|
|
function tap_attack_button()
|
|
{
|
|
self BotTapButton( 0 );
|
|
}
|
|
|
|
function press_attack_button()
|
|
{
|
|
self BotPressButton( 0 );
|
|
}
|
|
|
|
function release_attack_button()
|
|
{
|
|
self BotReleaseButton( 0 );
|
|
}
|
|
|
|
function tap_melee_button()
|
|
{
|
|
self BotTapButton( 2 );
|
|
}
|
|
|
|
function tap_reload_button()
|
|
{
|
|
self BotTapButton( 4 );
|
|
}
|
|
|
|
function tap_use_button()
|
|
{
|
|
self BotTapButton( 3 );
|
|
}
|
|
|
|
function press_crouch_button()
|
|
{
|
|
self BotPressButton( 9 );
|
|
}
|
|
|
|
function press_use_button()
|
|
{
|
|
self BotPressButton( 3 );
|
|
}
|
|
|
|
function release_use_button()
|
|
{
|
|
self BotReleaseButton( 3 );
|
|
}
|
|
|
|
function press_sprint_button()
|
|
{
|
|
self BotPressButton( 1 );
|
|
}
|
|
|
|
function release_sprint_button()
|
|
{
|
|
self BotReleaseButton( 1 );
|
|
}
|
|
|
|
function press_frag_button()
|
|
{
|
|
self BotPressButton( 14 );
|
|
}
|
|
|
|
function release_frag_button()
|
|
{
|
|
self BotReleaseButton( 14 );
|
|
}
|
|
|
|
function tap_frag_button()
|
|
{
|
|
self BotTapButton( 14 );
|
|
}
|
|
|
|
function press_offhand_button()
|
|
{
|
|
self BotPressButton( 15 );
|
|
}
|
|
|
|
function release_offhand_button()
|
|
{
|
|
self BotReleaseButton( 15 );
|
|
}
|
|
|
|
function tap_offhand_button()
|
|
{
|
|
self BotTapButton( 15 );
|
|
}
|
|
|
|
function press_throw_button()
|
|
{
|
|
self BotPressButton( 24 );
|
|
}
|
|
|
|
function release_throw_button()
|
|
{
|
|
self BotReleaseButton( 24 );
|
|
}
|
|
|
|
function tap_jump_button()
|
|
{
|
|
self BotTapButton( 10 );
|
|
}
|
|
|
|
function press_jump_button()
|
|
{
|
|
self BotPressButton( 10 );
|
|
}
|
|
|
|
function release_jump_button()
|
|
{
|
|
self BotReleaseButton( 10 );
|
|
}
|
|
|
|
function tap_ads_button()
|
|
{
|
|
self BotTapButton( 11 );
|
|
}
|
|
|
|
function press_ads_button()
|
|
{
|
|
self BotPressButton( 11 );
|
|
}
|
|
|
|
function release_ads_button()
|
|
{
|
|
self BotReleaseButton( 11 );
|
|
}
|
|
|
|
function tap_doublejump_button()
|
|
{
|
|
self BotTapButton( 65 );
|
|
}
|
|
|
|
function press_doublejump_button()
|
|
{
|
|
self BotPressButton( 65 );
|
|
}
|
|
|
|
function release_doublejump_button()
|
|
{
|
|
self BotReleaseButton( 65 );
|
|
}
|
|
|
|
function tap_offhand_special_button()
|
|
{
|
|
self BotTapButton( 70 );
|
|
}
|
|
|
|
function press_swim_up()
|
|
{
|
|
self BotPressButton( 67 );
|
|
}
|
|
|
|
function release_swim_up()
|
|
{
|
|
self BotReleaseButton( 67 );
|
|
}
|
|
|
|
function press_swim_down()
|
|
{
|
|
self BotPressButton( 68 );
|
|
}
|
|
|
|
function release_swim_down()
|
|
{
|
|
self BotReleaseButton( 68 );
|
|
} |