mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-04-20 00:42:53 +00:00
botClearMantleOverride builtin
This commit is contained in:
parent
8927a1ed20
commit
f651d1f706
@ -3072,15 +3072,15 @@ bot_uav_think_loop( data )
|
|||||||
self BotNotifyBotEvent( "uav_target", "start", player );
|
self BotNotifyBotEvent( "uav_target", "start", player );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
distSq = self.pers["bots"]["skill"]["help_dist"] * self.pers["bots"]["skill"]["help_dist"];
|
distSq = self.pers["bots"]["skill"]["help_dist"] * self.pers["bots"]["skill"]["help_dist"];
|
||||||
|
|
||||||
if ( distFromPlayer < distSq && bulletTracePassed( self getEye(), player getTagOrigin( "j_spineupper" ), false, player ) )
|
if ( distFromPlayer < distSq && bulletTracePassed( self getEye(), player getTagOrigin( "j_spineupper" ), false, player ) )
|
||||||
{
|
{
|
||||||
self SetAttacker( player );
|
self SetAttacker( player );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !self HasScriptGoal() && !self.bot_lock_goal )
|
if ( !self HasScriptGoal() && !self.bot_lock_goal )
|
||||||
{*/
|
{*/
|
||||||
|
|
||||||
self SetBotGoal( player.origin, 128 );
|
self SetBotGoal( player.origin, 128 );
|
||||||
|
|
||||||
@ -5387,6 +5387,8 @@ botClearMovementOverride() {}
|
|||||||
botClearButtonOverride( a ) {}
|
botClearButtonOverride( a ) {}
|
||||||
botButtonOverride( a, b ) {}
|
botButtonOverride( a, b ) {}
|
||||||
botClearOverrides( a ) {}
|
botClearOverrides( a ) {}
|
||||||
|
botMantleOverride() {}
|
||||||
|
botClearMantleOverride() {}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
custom movement stuff
|
custom movement stuff
|
||||||
@ -5413,6 +5415,7 @@ watch_for_override_stuff()
|
|||||||
chance = 80;
|
chance = 80;
|
||||||
|
|
||||||
last_jump_time = 0;
|
last_jump_time = 0;
|
||||||
|
need_to_clear_mantle_override = false;
|
||||||
|
|
||||||
if ( !getDvarInt( "bots_play_jumpdrop" ) )
|
if ( !getDvarInt( "bots_play_jumpdrop" ) )
|
||||||
return;
|
return;
|
||||||
@ -5430,6 +5433,12 @@ watch_for_override_stuff()
|
|||||||
dist = Distance( threat.origin, self.origin );
|
dist = Distance( threat.origin, self.origin );
|
||||||
time = GetTime();
|
time = GetTime();
|
||||||
|
|
||||||
|
if ( need_to_clear_mantle_override && ( time - last_jump_time ) > 3000 )
|
||||||
|
{
|
||||||
|
need_to_clear_mantle_override = false;
|
||||||
|
self botClearMantleOverride();
|
||||||
|
}
|
||||||
|
|
||||||
if ( ( dist > NEAR_DIST ) && ( dist < LONG_DIST ) && ( randomInt( 100 ) < chance ) && ( ( time - last_jump_time ) > SPAM_JUMP_TIME ) )
|
if ( ( dist > NEAR_DIST ) && ( dist < LONG_DIST ) && ( randomInt( 100 ) < chance ) && ( ( time - last_jump_time ) > SPAM_JUMP_TIME ) )
|
||||||
{
|
{
|
||||||
if ( randomInt( 2 ) )
|
if ( randomInt( 2 ) )
|
||||||
@ -5437,6 +5446,8 @@ watch_for_override_stuff()
|
|||||||
if ( ( getConeDot( threat.origin, self.origin, self getPlayerAngles() ) > 0.8 ) && ( dist > ( NEAR_DIST * 2 ) ) )
|
if ( ( getConeDot( threat.origin, self.origin, self getPlayerAngles() ) > 0.8 ) && ( dist > ( NEAR_DIST * 2 ) ) )
|
||||||
{
|
{
|
||||||
last_jump_time = time;
|
last_jump_time = time;
|
||||||
|
need_to_clear_mantle_override = true;
|
||||||
|
self botMantleOverride();
|
||||||
|
|
||||||
// drop shot
|
// drop shot
|
||||||
self botMovementOverride( 0, 0 );
|
self botMovementOverride( 0, 0 );
|
||||||
@ -5451,6 +5462,8 @@ watch_for_override_stuff()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
last_jump_time = time;
|
last_jump_time = time;
|
||||||
|
need_to_clear_mantle_override = true;
|
||||||
|
self botMantleOverride();
|
||||||
|
|
||||||
// jump shot
|
// jump shot
|
||||||
self botButtonOverride( "gostand", "enable" );
|
self botButtonOverride( "gostand", "enable" );
|
||||||
|
22
z_server.bat
22
z_server.bat
@ -1,24 +1,40 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
::Paste the server key from https://platform.plutonium.pw/serverkeys here
|
||||||
|
set key=
|
||||||
::RemoteCONtrol password, needed for most management tools like IW4MADMIN and B3. Do not skip if you installing IW4MADMIN.
|
::RemoteCONtrol password, needed for most management tools like IW4MADMIN and B3. Do not skip if you installing IW4MADMIN.
|
||||||
set rcon_password=
|
set rcon_password=
|
||||||
::Name of the config file the server should use.
|
::Name of the config file the server should use.
|
||||||
set cfg=server.cfg
|
set cfg=server.cfg
|
||||||
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
|
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
|
||||||
set name=RektT5 Bot Warfare
|
set name=PlutoniumT5MP Bot Warfare
|
||||||
::Port used by the server (default: 28960)
|
::Port used by the server (default: 28960)
|
||||||
set port=28967
|
set port=28967
|
||||||
::What ip to bind too
|
::What ip to bind too
|
||||||
set ip=0.0.0.0
|
set ip=0.0.0.0
|
||||||
::Mod name (default "")
|
::Mod name (default "")
|
||||||
set mod=
|
set mod=
|
||||||
|
:: current dir of this .bat file
|
||||||
|
SET mypath=%~dp0
|
||||||
|
SET mypath=%mypath:~0,-1%
|
||||||
|
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS! %cd%
|
||||||
|
set gamepath=%mypath%
|
||||||
|
::Your plutonium install path (leave default!)
|
||||||
|
set pluto_path=%localappdata%\Plutonium
|
||||||
|
:: Gamemode; oneof t4sp, t4mp, t5sp, t5mp, iw5mp, t6mp, t6zm
|
||||||
|
set pluto_game_mode=t5mp
|
||||||
|
:: Other things to send to cmd
|
||||||
|
set cmd_extras=
|
||||||
|
|
||||||
title RektT5 MP - %name% - Server restarter
|
|
||||||
|
title Plutonium - %name% - Server restarter
|
||||||
echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
|
echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
|
||||||
echo Server "%name%" will load "%cfg%" and listen on port "%port%" UDP with IP "%ip%"!
|
echo Server "%name%" will load "%cfg%" and listen on port "%port%" UDP with IP "%ip%"!
|
||||||
echo To shut down the server close this window first!
|
echo To shut down the server close this window first!
|
||||||
echo (%date%) - (%time%) %name% server start.
|
echo (%date%) - (%time%) %name% server start.
|
||||||
|
|
||||||
|
cd /D %pluto_path%
|
||||||
:server
|
:server
|
||||||
start /wait /abovenormal "%name%" "%~dp0rekt\t5m.exe" -console +set dedicated "2" +set net_ip "%ip%" +set net_port "%port%" +set rcon_password "%rcon_password%" +set fs_game "%mod%" +exec "%cfg%"
|
start /wait /abovenormal /b "%name%" "bin\plutonium-bootstrapper-win32.exe" %pluto_game_mode% "%gamepath%" -dedicated -key "%key%" +set net_ip "%ip%" +set net_port "%port%" +set rcon_password "%rcon_password%" +set fs_game "%mod%" +exec "%cfg%" %cmd_extras% +map_rotate
|
||||||
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
|
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
|
||||||
goto server
|
goto server
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user