Commit Graph

1054 Commits

Author SHA1 Message Date
Benau
221a757942 Merge branch 'arena_ai_profiling' 2016-05-24 15:52:32 +08:00
hiker
92be0c65ad Added support for setting the restitution for physical objects. 2016-05-19 13:25:29 +10:00
Benau
de8d172c07 Improvements in soccer mode with minimap
1. Larger ball

2. Draw goal line of two teams in minimap
2016-05-17 16:01:27 +08:00
Benau
7e8ca70bc6 First version of advanced soccer ai 2016-05-16 00:46:06 +08:00
Benau
9624d27f59 Try to fix lost control for soccer ai 2016-05-10 08:53:33 +08:00
hiker
92f0ab6819 Implemented command line option "--dont-load-navmesh" to disable
loading of any navmeshes (to avoid extremly slow loading times
in debug mode, e.g. for temple).
2016-04-28 17:15:07 +10:00
hiker
b83246aac2 Revert "Do not compute the battle graph in case of a single kart in debug"
since Benau has suggested a better approach.
This reverts commit c9c37fb400.
2016-04-28 16:58:37 +10:00
hiker
c9c37fb400 Do not compute the battle graph in case of a single kart in debug
mode in an arena: in debug mode computing the distance matrix
takes a LONG time (approximately 12 minutes on my machine). In
release mode it's fast enough for now.
2016-04-28 11:17:20 +10:00
auria.mg
ab2f46cc90 Improve reverse track support 2016-04-24 19:36:52 -04:00
hiker
f59ea0f258 Moved the camera debug parameter from UserConfig to a static value
in camera. Added proper names for the debug modes instead of int.
2016-04-14 09:30:26 +10:00
Benau
5b7161710d Add GUI option in track info screen for random item location. 2016-03-17 12:16:19 +08:00
Benau
d2509baf5c Allow random items number and type for arena with navmesh.
Number and types are hard-coded for now.
2016-03-17 01:27:24 +08:00
Benau
8f1daabbe1 Merge remote-tracking branch 'origin/master' into fix_replay 2016-02-22 07:26:26 +08:00
Tobias Markus
d8cce95b0e Add forgotten override's where necessary 2016-02-21 01:36:15 +01:00
Benau
5810acb114 Fix memory leak 2016-02-04 10:11:14 +08:00
Benau
38eeddd4e8 No reference for int and float 2016-02-04 09:51:59 +08:00
Marianne Gagnon
3de922bc19 Fix animated textures not working on animated meshes. FIxes #2432 2016-01-30 18:11:58 -05:00
Benau
1ee9979fe1 More soccer mode improvements:
1. Max 8 karts are supported now

2. Clearer starting position assignment in soccer world

3. Reset all karts to starting position after each goal
2016-01-21 15:28:11 +08:00
Benau
b45d926a00 Clean up and bug fixes 2016-01-16 09:14:19 +08:00
Benau
d14a39e0f7 Initial work on soccer AI, plus lots of code re-factor/clean up.
To test, you need to update stk-assets with the dummy soccer field.
In single player, you are limited to be in red team for now, so just
shoot the ball into the blue goal. Also max-goal is limited to 4.

Regarding AIs, the steering with ball logic is handled in
SoccerAI::correctBallPosition, max AI supported in single player
is limited to 5 by now.

The AI is not as good as Zidane or Ronaldo, but steering with ball
for human is not as easy as not normal driving anyway, so don't
laugh at the AIs. :)

TODO: Friendly-team firing, polish the soccer field.
2016-01-15 18:25:52 +08:00
Marianne Gagnon
4eb5ee6e77 Fix crash due to goal checklines not initializing properly 2016-01-05 20:36:01 -05:00
Benau
405d31ecfc Better pointInPoly 2016-01-04 16:10:38 +08:00
Benau
4e5197e7c1 Different max number of AIs per arena
Now I make large arena like stadium to have max 8 player-slots,
should be very fun to play

Remember update stk-assets to test!
2015-12-20 16:28:01 +08:00
Benau
fefeffad91 Further clean 2015-12-20 09:01:50 +08:00
Benau
3d409a9742 Fix comment 2015-12-20 01:13:51 +08:00
Benau
08b2e27ed9 More clean up 2015-12-19 16:23:18 +08:00
Benau
74c547cb1d Remove duplicated code, plus some more cleanup 2015-12-19 02:09:37 +08:00
Benau
12e4c76a6f Add minimap for battle mode when it has a navigation mesh
TODO: update battle island arena to use only 4 vertices per poly
2015-12-15 02:32:01 +08:00
Benau
2644b0458b Merge remote-tracking branch 'origin/master' into battleAI 2015-12-08 10:09:35 +08:00
auriamg
f0fafc2651 Merge pull request #2245 from Flakebi/kart-properties
Kart properties
2015-12-07 18:44:14 -05:00
Marianne Gagnon
ae916fced6 Add warning when animated texture not found 2015-12-06 20:14:55 -05:00
Marianne Gagnon
27290b4ffb More work on scripting Property animator 2015-12-05 20:45:37 -05:00
Marianne Gagnon
840bc3df64 Make more properties animatable + fix build (oops, forgot files in previous commit) 2015-12-05 20:03:11 -05:00
Marianne Gagnon
2252495fdc Scripting refactor : add new property animator helper, transfer light animations to this new animator class. Can be used in the future to animate more properties 2015-12-05 19:42:06 -05:00
Benau
ab428dc8cf Different AI intelligence per difficulties 2015-12-03 16:13:39 +08:00
Benau
b5d4610f45 Better navmesh handling 2015-12-02 10:41:32 +08:00
Benau
084a4ee844 Fix crashes when no navmesh
User should have no way to start with ai in battle mode,
when the arena has no navmesh.

Unless artist debug mode or more than 1 human players.
2015-12-02 10:08:03 +08:00
Benau
c910c19827 Backwards firing and hard u-turn for backward node
TODO:
correct unstuck and perfect angle fire?
2015-12-01 09:27:49 +08:00
Flakebi
aea68a2c14
Remove characteristics from kart 2015-11-29 04:08:12 +01:00
Benau
e1f1461488 Fix some bugs and copyright year 2015-11-22 15:01:22 +08:00
Flakebi
ffa85d2206 Merge remote-tracking branch 'upstream/master' into kart-properties 2015-11-21 23:03:58 +01:00
Benau
62f5be0d9d First playable version of battle AI
TODO:
backwards firing
better handling to obstacles
ai karts number selection
win/lose screen handling

Please use a better navmesh to test
2015-11-21 15:58:03 +08:00
Benau
f4b723de82 Merge remote-tracking branch 'origin/battleAI' into battleAI 2015-11-15 12:29:01 +08:00
Marianne Gagnon
66909086fd Scripting : allow smoothly animating lights 2015-10-27 19:08:12 -04:00
Marianne Gagnon
953c29089e Scripting : start adding features to control light objects 2015-10-27 18:33:54 -04:00
Marianne Gagnon
d63837260f Remove seemingly uneeded rotation, see #2345. Not sure I understand what is going on 2015-10-10 20:52:12 -04:00
Deve
ec33e92ad0 Forgot about sun 2015-10-03 21:12:41 +02:00
Flakebi
5e6e85ab79 Merge branch master into kart-properties 2015-10-03 15:20:06 +02:00
Marianne Gagnon
0cce586c87 Fix animated physics-only objects. Fixes #2292 2015-08-25 19:14:10 -04:00
Flakebi
586724c855 Merge branch 'master' into kart-properties
Conflicts:
	src/karts/kart.cpp
2015-08-19 12:03:43 +02:00