-
Notifications
You must be signed in to change notification settings - Fork 1
/
Params.lua
207 lines (149 loc) · 5.58 KB
/
Params.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
-------------------------[[ General game parameters ]]-------------------------
-------------------------------------------------------------------------------
--the number of bots the game instantiates
NumBots = 2
--this is the maximum number of search cycles allocated to *all* current path
-- planning searches per update
MaxSearchCyclesPerUpdateStep = 1000
--the name of the default map
StartMap = "maps/Raven_DM1.map"
--cell space partitioning defaults
NumCellsX = 10
NumCellsY = 10
--how long the graves remain on screen
GraveLifetime = 5
-------------------------[[ bot parameters ]]----------------------------------
-------------------------------------------------------------------------------
Bot_MaxHealth = 100
Bot_MaxSpeed = 1
Bot_Mass = 1
Bot_MaxForce = 1.0
Bot_MaxHeadTurnRate = 0.2
Bot_Scale = 0.8
Bot_Strafe_Ratio = 2
--special movement speeds (unused)
Bot_MaxSwimmingSpeed = Bot_MaxSpeed * 0.2
Bot_MaxCrawlingSpeed = Bot_MaxSpeed * 0.6
--the number of times a second a bot 'thinks' about weapon selection
Bot_WeaponSelectionFrequency = 2
--the number of times a second a bot 'thinks' about changing strategy
Bot_GoalAppraisalUpdateFreq = 4
--the number of times a second a bot updates its target info
Bot_TargetingUpdateFreq = 2
--the number of times a second the triggers are updated
Bot_TriggerUpdateFreq = 8
--the number of times a second a bot updates its vision
Bot_VisionUpdateFreq = 4
--the number of times a second a teammate bot updates its partner
Teammate_PartnerUpdateFreq = 2
--the number of times a second a leader send its location to its teammate
Leader_LocationSendingFreq = 1
--the number of times a second a leader send its target location
Leader_LocationTargetFreq = 3
--note that a frequency of -1 will disable the feature and a frequency of zero
--will ensure the feature is updated every bot update
--the bot's field of view (in degrees)
Bot_FOV = 180
--the bot's reaction time (in seconds)
Bot_ReactionTime = 0.2
--how long (in seconds) the bot will keep pointing its weapon at its target
--after the target goes out of view
Bot_AimPersistance = 1
--how accurate the bots are at aiming. 0 is very accurate, (the value represents
-- the max deviation in range (in radians))
Bot_AimAccuracy = 0.0
--how long a flash is displayed when the bot is hit
HitFlashTime = 0.2
--how long (in seconds) a bot's sensory memory persists
Bot_MemorySpan = 5
--goal tweakers
Bot_HealthGoalTweaker = 1.0
Bot_ShotgunGoalTweaker = 1.0
Bot_RailgunGoalTweaker = 1.0
Bot_RocketLauncherTweaker = 1.0
Bot_AggroGoalTweaker = 1.0
-------------------------[[ steering parameters ]]-----------------------------
-------------------------------------------------------------------------------
--use these values to tweak the amount that each steering force
--contributes to the total steering force
SeparationWeight = 10.0;
WallAvoidanceWeight = 10.0;
WanderWeight = 1.0;
SeekWeight = 0.5;
ArriveWeight = 1.0;
--how close a neighbour must be before an agent considers it
--to be within its neighborhood (for separation)
ViewDistance = 15.0;
--max feeler length
WallDetectionFeelerLength = 25.0 * Bot_Scale;
--used in path following. Determines how close a bot must be to a waypoint
--before it seeks the next waypoint
WaypointSeekDist = 5;
-------------------------[[ giver-trigger parameters ]]-----------------------------
-------------------------------------------------------------------------------
--how close a bot must be to a giver-trigger for it to affect it
DefaultGiverTriggerRange = 10
--how many seconds before a giver-trigger reactivates itself
Health_RespawnDelay = 10
Weapon_RespawnDelay = 15
-------------------------[[ weapon parameters ]]-------------------------------
-------------------------------------------------------------------------------
Blaster_FiringFreq = 3
Blaster_MaxSpeed = 5
Blaster_DefaultRounds = 0 --not used, a blaster always has ammo
Blaster_MaxRoundsCarried = 0 --as above
Blaster_IdealRange = 50
Blaster_SoundRange = 100
Bolt_MaxSpeed = 5
Bolt_Mass = 1
Bolt_MaxForce = 100.0
Bolt_Scale = Bot_Scale
Bolt_Damage = 1
RocketLauncher_FiringFreq = 1.5
RocketLauncher_DefaultRounds = 15
RocketLauncher_MaxRoundsCarried = 50
RocketLauncher_IdealRange = 150
RocketLauncher_SoundRange = 400
Rocket_BlastRadius = 20
Rocket_MaxSpeed = 3
Rocket_Mass = 1
Rocket_MaxForce = 10.0
Rocket_Scale = Bot_Scale
Rocket_Damage = 10
Rocket_ExplosionDecayRate = 2.0 --how fast the explosion occurs (in secs)
Grenade_FiringFreq = 1.5
Grenade_DefaultRounds = 15
Grenade_MaxRoundsCarried = 50
Grenade_IdealRange = 150
Grenade_SoundRange = 400
Grenade_BlastRadius = 20
Grenade_MaxSpeed = 3
Grenade_Mass = 1
Grenade_MaxForce = 10.0
Grenade_Scale = Bot_Scale
Grenade_Damage = 10
Grenade_ExplosionDecayRate = 2.0 --how fast the explosion occurs (in secs)
RailGun_FiringFreq = 1
RailGun_DefaultRounds = 15
RailGun_MaxRoundsCarried = 50
RailGun_IdealRange = 200
RailGun_SoundRange = 400
Slug_MaxSpeed = 5000
Slug_Mass = 0.1
Slug_MaxForce = 10000.0
Slug_Scale = Bot_Scale
Slug_Persistance = 0.2
Slug_Damage = 10
ShotGun_FiringFreq = 1
ShotGun_DefaultRounds = 15
ShotGun_MaxRoundsCarried = 50
ShotGun_NumBallsInShell = 10
ShotGun_Spread = 0.05
ShotGun_IdealRange = 100
ShotGun_SoundRange = 400
Pellet_MaxSpeed = 5000
Pellet_Mass = 0.1
Pellet_MaxForce = 1000.0
Pellet_Scale = Bot_Scale
Pellet_Persistance = 0.1
Pellet_Damage = 1