mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 11:00:38 +02:00
Added bot code.
This commit is contained in:
@@ -0,0 +1,278 @@
|
||||
/*
|
||||
===========================================================================
|
||||
Copyright (C) 2006 Dmn_clown (aka: Bob Isaac (rjisaac@gmail.com))
|
||||
|
||||
This file is part of Open Arena and is based upon Mr. Elusive's fuzzy logic
|
||||
system found in Quake 3 Arena.
|
||||
|
||||
Open Arena is free software; you can redistribute it
|
||||
and/or modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the License,
|
||||
or (at your option) any later version.
|
||||
|
||||
Open Arena is distributed in the hope that it will be
|
||||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Foobar; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
===========================================================================
|
||||
*/
|
||||
|
||||
chat "Beret"
|
||||
{
|
||||
//the teamplay.h file is included for all kinds of teamplay chats
|
||||
#include "teamplay.h"
|
||||
//======================================================
|
||||
//======================================================
|
||||
type "game_enter" //initiated when the bot enters the game
|
||||
{
|
||||
"Rectum? It nearly killed him!";
|
||||
0, " is a loser!";
|
||||
HELLO1;
|
||||
// 0 = bot name
|
||||
// 1 = random opponent
|
||||
// 4 = level's title
|
||||
} //end type
|
||||
type "game_exit" //initiated when the bot exits the game
|
||||
{
|
||||
"Your mother is here, got to go.";
|
||||
"Aurevoir mes amis.";
|
||||
4, " is too slow for me, audios.";
|
||||
GOODBYE1;
|
||||
GOODBYE0;
|
||||
// 0 = bot name
|
||||
// 1 = random opponent
|
||||
// 4 = level's title
|
||||
} //end type
|
||||
type "level_start" //initiated when a new level starts
|
||||
{
|
||||
"Worst level ever!";
|
||||
0, " is gonna pay.";
|
||||
|
||||
HELLO2;
|
||||
|
||||
// 0 = bot name
|
||||
} //end type
|
||||
type "level_end" //initiated when a level ends and the bot is not first and not last in the rankings
|
||||
{
|
||||
3, " sucks!";
|
||||
2, ", I let you win.";
|
||||
|
||||
// 0 = bot name
|
||||
// 1 = random opponent
|
||||
// 2 = opponent in first place
|
||||
// 3 = opponent in last place
|
||||
// 4 = level's title
|
||||
} //end type
|
||||
type "level_end_victory" //initiated when a level ends and the bot is first in the rankings
|
||||
{
|
||||
LEVEL_END_VICTORY0;
|
||||
LEVEL_END_VICTORY1;
|
||||
|
||||
// 0 = bot name
|
||||
// 1 = random opponent
|
||||
// 3 = opponent in last place
|
||||
// 4 = level's title
|
||||
} //end type
|
||||
type "level_end_lose" //initiated when a level ends and the bot is last in the rankings
|
||||
{
|
||||
2, " must be an Arena Lord.";
|
||||
1, " kept getting in my way.";
|
||||
4, " has never been good to me.";
|
||||
// 0 = bot name
|
||||
// 1 = random opponent
|
||||
// 2 = opponent in first place
|
||||
// 4 = level's title
|
||||
} //end type
|
||||
//======================================================
|
||||
//======================================================
|
||||
type "hit_talking" //bot is hit while chat balloon is visible; lecture attacker on poor sportsmanship
|
||||
{
|
||||
"Son of a... you shall pay for that!";
|
||||
"Infidel!!!";
|
||||
"Jerkwad";
|
||||
"Schmuck";
|
||||
"Tosser";
|
||||
DEATH_TALKING;
|
||||
// 0 = shooter
|
||||
// 1 = weapon used by shooter
|
||||
} //end type
|
||||
type "hit_nodeath" //bot is hit by an opponent's weapon attack but didn't die; either praise or insult
|
||||
{
|
||||
"Try harder next time.";
|
||||
"Wuss";
|
||||
"Heh, you suck.";
|
||||
"Nice shooting Tex, you need to take lessons from Dick.";
|
||||
// 0 = shooter
|
||||
// 1 = weapon used by shooter
|
||||
} //end type
|
||||
type "hit_nokill" //bot hits an opponent but does not kill it
|
||||
{
|
||||
HIT_NOKILL0;
|
||||
HIT_NOKILL1;
|
||||
// 0 = opponent
|
||||
} //end type
|
||||
type "enemy_suicide" //enemy of the bot commits suicide
|
||||
{
|
||||
"LOL!";
|
||||
// 0 = enemy
|
||||
} //end type
|
||||
//======================================================
|
||||
//======================================================
|
||||
type "death_telefrag" //initiated when the bot is killed by a telefrag
|
||||
{
|
||||
DEATH_TELEFRAGGED0;
|
||||
DEATH_TELEFRAGGED1;
|
||||
// 0 = enemy name
|
||||
} //end type
|
||||
type "death_cratered" //initiated when the bot is killed by taking "normal" falling damage
|
||||
{
|
||||
DEATH_FALLING0;
|
||||
|
||||
// 0 = random opponent
|
||||
} //end type
|
||||
type "death_lava" //initiated when the bot dies in lava
|
||||
{
|
||||
DEATH_SUICIDE0;
|
||||
DEATH_SUICIDE1;
|
||||
// 0 = random opponent
|
||||
} //end type
|
||||
type "death_slime" //initiated when the bot dies in slime
|
||||
{
|
||||
DEATH_SLIME0;
|
||||
DEATH_SLIME1;
|
||||
// 0 = random opponent
|
||||
} //end type
|
||||
type "death_drown" //initiated when the bot drowns
|
||||
{
|
||||
"I can't swim!";
|
||||
|
||||
|
||||
// 0 = random opponent
|
||||
} //end type
|
||||
type "death_suicide" //initiated when bot blows self up with a weapon or craters
|
||||
{
|
||||
"Aww crap!";
|
||||
"Shutup!";
|
||||
DEATH_SUICIDE2;
|
||||
DEATH_SUICIDE1;
|
||||
|
||||
|
||||
// 0 = random opponent
|
||||
} //end type
|
||||
type "death_gauntlet" //initiated when the bot is killed by a gauntlet attack
|
||||
{
|
||||
"Humiliating.";
|
||||
"D'oh!";
|
||||
DEATH_GAUNTLET0;
|
||||
DEATH_GAUNTLET1;
|
||||
// 0 = enemy name
|
||||
// 1 = weapon used by enemy (NOTE: always set to Gauntlet)
|
||||
} //end type
|
||||
type "death_rail" //initiated when the bot is killed by a rail gun shot
|
||||
{
|
||||
DEATH_INSULT0;
|
||||
DEATH_INSULT5;
|
||||
// 0 = enemy name
|
||||
// 1 = weapon used by enemy (NOTE: always set to Railgun)
|
||||
} //end type
|
||||
type "death_bfg" //initiated when the bot died by a BFG
|
||||
{
|
||||
DEATH_BFG0;
|
||||
DEATH_BFG2;
|
||||
// 0 = enemy name
|
||||
// 1 = weapon used by enemy (NOTE: always set to BFG10K)
|
||||
} //end type
|
||||
type "death_insult" //insult initiated when the bot died
|
||||
{
|
||||
"Always look on the bright side of death.";
|
||||
"pfff";
|
||||
"Wuss";
|
||||
"Sissy";
|
||||
DEATH_INSULT2;
|
||||
DEATH_INSULT0;
|
||||
// 0 = enemy name
|
||||
// 1 = weapon used by enemy
|
||||
} //end type
|
||||
type "death_praise" //praise initiated when the bot died
|
||||
{
|
||||
|
||||
D_PRAISE0;
|
||||
D_PRAISE1;
|
||||
// 0 = enemy name
|
||||
// 1 = weapon used by enemy
|
||||
} //end type
|
||||
//======================================================
|
||||
//======================================================
|
||||
type "kill_rail" //initiated when the bot kills someone with rail gun
|
||||
{
|
||||
KILL_RAIL1;
|
||||
KILL_RAIL0;
|
||||
// 0 = enemy name
|
||||
} //end type
|
||||
type "kill_gauntlet" //initiated when the bot kills someone with gauntlet
|
||||
{
|
||||
"LOL!";
|
||||
"Too easy";
|
||||
"Get whacked!";
|
||||
"It's whack time!";
|
||||
"I'm saving my best whack for ", 0, ".";
|
||||
// 0 = enemy name
|
||||
} //end type
|
||||
type "kill_telefrag" //initiated when the bot telefragged someone
|
||||
{
|
||||
"LOL!";
|
||||
TELEFRAGGED2;
|
||||
// 0 = enemy name
|
||||
} //end type
|
||||
type "kill_insult" //insult initiated when the bot killed someone
|
||||
{
|
||||
"I just made my perfect world, oops you're gone.";
|
||||
KILL_INSULT4;
|
||||
KILL_INSULT2;
|
||||
|
||||
// 0 = enemy name
|
||||
} //end type
|
||||
type "kill_praise" //praise initiated when the bot killed someone
|
||||
{
|
||||
PRAISE0;
|
||||
PRAISE1;
|
||||
// 0 = enemy name
|
||||
} //end type
|
||||
//======================================================
|
||||
//======================================================
|
||||
type "random_insult" //insult initiated randomly (just when the bot feels like it)
|
||||
{
|
||||
"Your breath stinks";
|
||||
"Get a hair cut";
|
||||
"Get a real job";
|
||||
"Get a life";
|
||||
TAUNT0;
|
||||
TAUNT1;
|
||||
|
||||
// 0 = name of randomly chosen player
|
||||
// 1 = name of the last player killed by this bot
|
||||
// 4 = level's title
|
||||
// 5 = random weapon from weapon list
|
||||
} //end type
|
||||
type "random_misc" //miscellanous chats initiated randomly
|
||||
{
|
||||
"Has anyone found the chocolate bar yet?";
|
||||
"Let's go to Denny's and watch the floor show, you're buying.";
|
||||
"Love is the devil's toy.";
|
||||
"Did you hear about ", 0, " in ", 4, "? I'd be ashamed of myself if I did that.";
|
||||
"Never trust a hippy.";
|
||||
4, " Uber Alles!";
|
||||
"I am all that is fish.";
|
||||
"Gamers are the whiniest bunch!";
|
||||
GUYTALK1;
|
||||
// 0 = name of randomly chosen player
|
||||
// 1 = name of the last player killed by this bot
|
||||
// 4 = level's title
|
||||
// 5 = random weapon from weapon list
|
||||
} //end type
|
||||
} //end chat
|
||||
|
||||
Reference in New Issue
Block a user