reaction/code/game/chars.h

144 lines
6.1 KiB
C
Raw Normal View History

//-----------------------------------------------------------------------------
//
// $Id$
//
//-----------------------------------------------------------------------------
//
2001-12-31 16:28:42 +00:00
// $Log$
// Revision 1.6 2002/06/16 20:06:14 jbravo
// Reindented all the source files with "indent -kr -ut -i8 -l120 -lc120 -sob -bad -bap"
//
2002-04-01 02:56:50 +00:00
// Revision 1.5 2002/04/01 02:56:50 jbravo
// Some sourcecode reformatting
//
// Revision 1.4 2002/01/11 19:48:30 jbravo
// Formatted the source in non DOS format.
//
2001-12-31 16:28:42 +00:00
// Revision 1.3 2001/12/31 16:28:42 jbravo
// I made a Booboo with the Log tag.
//
//
//-----------------------------------------------------------------------------
2001-05-06 20:50:27 +00:00
// Copyright (C) 1999-2000 Id Software, Inc.
//
//===========================================================================
//
// Name: chars.h
// Function: bot characteristics
// Programmer: Mr Elusive (MrElusive@idsoftware.com)
// Last update: 1999-09-08
// Tab Size: 4 (real tabs)
2001-05-06 20:50:27 +00:00
//===========================================================================
//========================================================
//========================================================
//name
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_NAME 0 //string
2001-05-06 20:50:27 +00:00
//gender of the bot
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_GENDER 1 //string ("male", "female", "it")
2001-05-06 20:50:27 +00:00
//attack skill
// > 0.0 && < 0.2 = don't move
// > 0.3 && < 1.0 = aim at enemy during retreat
// > 0.0 && < 0.4 = only move forward/backward
// >= 0.4 && < 1.0 = circle strafing
// > 0.7 && < 1.0 = random strafe direction change
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_ATTACK_SKILL 2 //float [0, 1]
2001-05-06 20:50:27 +00:00
//weapon weight file
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_WEAPONWEIGHTS 3 //string
2001-05-06 20:50:27 +00:00
//view angle difference to angle change factor
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_VIEW_FACTOR 4 //float <0, 1]
2001-05-06 20:50:27 +00:00
//maximum view angle change
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_VIEW_MAXCHANGE 5 //float [1, 360]
2001-05-06 20:50:27 +00:00
//reaction time in seconds
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_REACTIONTIME 6 //float [0, 5]
2001-05-06 20:50:27 +00:00
//accuracy when aiming
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_AIM_ACCURACY 7 //float [0, 1]
2001-05-06 20:50:27 +00:00
//weapon specific aim accuracy
#define CHARACTERISTIC_AIM_ACCURACY_MACHINEGUN 8 //float [0, 1]
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_AIM_ACCURACY_SHOTGUN 9 //float [0, 1]
2001-05-06 20:50:27 +00:00
#define CHARACTERISTIC_AIM_ACCURACY_ROCKETLAUNCHER 10 //float [0, 1]
#define CHARACTERISTIC_AIM_ACCURACY_GRENADELAUNCHER 11 //float [0, 1]
#define CHARACTERISTIC_AIM_ACCURACY_LIGHTNING 12
#define CHARACTERISTIC_AIM_ACCURACY_PLASMAGUN 13 //float [0, 1]
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_AIM_ACCURACY_RAILGUN 14
#define CHARACTERISTIC_AIM_ACCURACY_BFG10K 15 //float [0, 1]
2001-05-06 20:50:27 +00:00
//skill when aiming
// > 0.0 && < 0.9 = aim is affected by enemy movement
// > 0.4 && <= 0.8 = enemy linear leading
// > 0.8 && <= 1.0 = enemy exact movement leading
// > 0.5 && <= 1.0 = prediction shots when enemy is not visible
// > 0.6 && <= 1.0 = splash damage by shooting nearby geometry
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_AIM_SKILL 16 //float [0, 1]
2001-05-06 20:50:27 +00:00
//weapon specific aim skill
#define CHARACTERISTIC_AIM_SKILL_ROCKETLAUNCHER 17 //float [0, 1]
#define CHARACTERISTIC_AIM_SKILL_GRENADELAUNCHER 18 //float [0, 1]
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_AIM_SKILL_PLASMAGUN 19 //float [0, 1]
#define CHARACTERISTIC_AIM_SKILL_BFG10K 20 //float [0, 1]
2001-05-06 20:50:27 +00:00
//========================================================
//chat
//========================================================
//file with chats
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_FILE 21 //string
2001-05-06 20:50:27 +00:00
//name of the chat character
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_NAME 22 //string
2001-05-06 20:50:27 +00:00
//characters per minute type speed
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_CPM 23 //integer [1, 4000]
2001-05-06 20:50:27 +00:00
//tendency to insult/praise
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_INSULT 24 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to chat misc
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_MISC 25 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to chat at start or end of level
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_STARTENDLEVEL 26 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to chat entering or exiting the game
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_ENTEREXITGAME 27 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to chat when killed someone
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_KILL 28 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to chat when died
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_DEATH 29 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to chat when enemy suicides
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_ENEMYSUICIDE 30 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to chat when hit while talking
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_HITTALKING 31 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to chat when bot was hit but didn't dye
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_HITNODEATH 32 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to chat when bot hit the enemy but enemy didn't dye
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_HITNOKILL 33 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to randomly chat
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_RANDOM 34 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to reply
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CHAT_REPLY 35 //float [0, 1]
2001-05-06 20:50:27 +00:00
//========================================================
//movement
//========================================================
//tendency to crouch
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CROUCHER 36 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to jump
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_JUMPER 37 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to walk
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_WALKER 48 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to jump using a weapon
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_WEAPONJUMPING 38 //float [0, 1]
2001-05-06 20:50:27 +00:00
//tendency to use the grapple hook when available
#define CHARACTERISTIC_GRAPPLE_USER 39 //float [0, 1] //use this!!
2001-05-06 20:50:27 +00:00
//========================================================
//goal
//========================================================
//item weight file
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_ITEMWEIGHTS 40 //string
2001-05-06 20:50:27 +00:00
//the aggression of the bot
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_AGGRESSION 41 //float [0, 1]
2001-05-06 20:50:27 +00:00
//the self preservation of the bot (rockets near walls etc.)
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_SELFPRESERVATION 42 //float [0, 1]
2001-05-06 20:50:27 +00:00
//how likely the bot is to take revenge
#define CHARACTERISTIC_VENGEFULNESS 43 //float [0, 1] //use this!!
2001-05-06 20:50:27 +00:00
//tendency to camp
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_CAMPER 44 //float [0, 1]
2001-05-06 20:50:27 +00:00
//========================================================
//========================================================
//tendency to get easy frags
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_EASY_FRAGGER 45 //float [0, 1]
2001-05-06 20:50:27 +00:00
//how alert the bot is (view distance)
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_ALERTNESS 46 //float [0, 1]
2001-05-06 20:50:27 +00:00
//how much the bot fires it's weapon
2002-04-01 02:56:50 +00:00
#define CHARACTERISTIC_FIRETHROTTLE 47 //float [0, 1]