mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 02:15:42 +00:00
bot chatter system
This commit is contained in:
parent
f667c96717
commit
9c20cf621b
@ -226,6 +226,14 @@ onPlayerKilled( eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sH
|
|||||||
self maps\mp\bots\_bot_script::onKilled( eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration );
|
self maps\mp\bots\_bot_script::onKilled( eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.lastAttacker = eAttacker;
|
||||||
|
|
||||||
|
if ( isDefined( eAttacker ) )
|
||||||
|
{
|
||||||
|
eAttacker.lastKilledPlayer = self;
|
||||||
|
eAttacker notify( "killed_enemy" );
|
||||||
|
}
|
||||||
|
|
||||||
self [[level.prevCallbackPlayerKilled]]( eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration );
|
self [[level.prevCallbackPlayerKilled]]( eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2186
main_shared/maps/mp/bots/_bot_chat.gsc
Normal file
2186
main_shared/maps/mp/bots/_bot_chat.gsc
Normal file
File diff suppressed because it is too large
Load Diff
@ -66,6 +66,7 @@ onKillcam()
|
|||||||
doKillcamStuff()
|
doKillcamStuff()
|
||||||
{
|
{
|
||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
|
self endon( "spawned_player" );
|
||||||
|
|
||||||
self BotNotifyBotEvent( "killcam", "start" );
|
self BotNotifyBotEvent( "killcam", "start" );
|
||||||
|
|
||||||
|
@ -464,6 +464,29 @@ getValidGrenade()
|
|||||||
return random( possibles );
|
return random( possibles );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
CoD4 meme
|
||||||
|
*/
|
||||||
|
getWinningTeam()
|
||||||
|
{
|
||||||
|
if ( maps\mp\gametypes\_globallogic::getGameScore( "allies" ) == maps\mp\gametypes\_globallogic::getGameScore( "axis" ) )
|
||||||
|
winner = "tie";
|
||||||
|
else if ( maps\mp\gametypes\_globallogic::getGameScore( "allies" ) > maps\mp\gametypes\_globallogic::getGameScore( "axis" ) )
|
||||||
|
winner = "allies";
|
||||||
|
else
|
||||||
|
winner = "axis";
|
||||||
|
|
||||||
|
return winner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
CoD4
|
||||||
|
*/
|
||||||
|
getBaseWeaponName( weap )
|
||||||
|
{
|
||||||
|
return strtok( weap, "_" )[0];
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Returns if the given weapon is full auto.
|
Returns if the given weapon is full auto.
|
||||||
*/
|
*/
|
||||||
|
@ -17,6 +17,7 @@ CodeCallback_StartGameType()
|
|||||||
level.gametypestarted = true; // so we know that the gametype has been started up
|
level.gametypestarted = true; // so we know that the gametype has been started up
|
||||||
|
|
||||||
level thread maps\mp\bots\_bot::init();
|
level thread maps\mp\bots\_bot::init();
|
||||||
|
level thread maps\mp\bots\_bot_chat::init();
|
||||||
level thread maps\mp\bots\_menu::init();
|
level thread maps\mp\bots\_menu::init();
|
||||||
level thread maps\mp\bots\_wp_editor::init();
|
level thread maps\mp\bots\_wp_editor::init();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user