This commit is contained in:
INeedBots 2021-03-11 15:25:35 -06:00
commit cdbf9ef9c1
2 changed files with 40 additions and 0 deletions

View File

@ -158,6 +158,20 @@ You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfar
- bots_main_debug - a boolean value (0 or 1), enables or disables the waypoint editor
## Changelog
- v2.0.1 (to be released)
- Reduced bots crouching
- Increased bots sprinting
- Improved bots mantling, crouching and knifing glass when needed
- Fixed possible script runtime errors
- Fixed demolition spawn killing
- Improved domination
- Bots use explosives more if they have it
- Fixed bots moving their player when using remote
- Bots aim slower when ads'ing
- Fixed bots holding breath
- Bots more smart when waiting for carepackages
- Improved and fixed various waypoints for maps
- v2.0.0
- Initial reboot release

View File

@ -13,6 +13,9 @@
- scr_emp_doesFriendlyFire <bool>
true - (default) whether or not if an emp destroies all killstreaks reguardless of friendly fire
- scr_emp_checkHeliQueue <bool>
false - (default) whether or not if an emp destroies helicopters in the queue
Thanks: H3X1C, Emosewaj
*/
@ -37,9 +40,11 @@ init()
setDvarIfUninitialized( "scr_emp_duration", 60 );
setDvarIfUninitialized( "scr_emp_doesFriendlyFire", true );
setDvarIfUninitialized( "scr_emp_checkHeliQueue", false );
level.empduration = getDvarInt( "scr_emp_duration" );
level.empDoesFriendlyFire = getDvarInt( "scr_emp_doesFriendlyFire" );
level.empCheckHeliQueue = getDvarInt( "scr_emp_checkHeliQueue" );
level thread onPlayerConnect();
}
@ -289,6 +294,27 @@ destroyActiveVehicles( attacker, friendlyFireCheck, teamName )
if (!isDefined(friendlyFireCheck))
friendlyFireCheck = false;
if (level.empCheckHeliQueue && isDefined(level.queues) && isDefined(level.queues["helicopter"]))
{
newQueue = [];
foreach ( element in level.queues[ "helicopter" ] )
{
if ( !isDefined( element ) )
continue;
if (!friendlyFireCheck || !isDefined(element.player) || !isDefined(element.player.team) || (level.teamBased && (!isDefined(teamName) || element.player.team == teamName)) || (!level.teamBased && (!isDefined(attacker) || element.player != attacker)))
{
element delete();
continue;
}
newQueue[newQueue.size] = element;
}
level.queues[ "helicopter" ] = newQueue;
}
if ( isDefined( attacker ) )
{
foreach ( heli in level.helis )