Commit Graph

3696 Commits

Author SHA1 Message Date
Matei b177f2b711 Removed some console spam from playing unit sounds.
This was SVN commit r4321.
2006-09-10 23:51:08 +00:00
Matei aa6ca7d1e8 Modified world intersection so that you can also intersect with the water plane, which is useful for making ships move around as expected when you rightclick a spot on the water.
This was SVN commit r4319.
2006-09-10 20:38:39 +00:00
Matei df1a779d76 # Updates to water rendering (more effects).
This was SVN commit r4318.
2006-09-10 05:31:41 +00:00
Matei 222d90727e Updated water shader to support more settings (specular strength and reflection tint).
This was SVN commit r4317.
2006-09-10 05:30:49 +00:00
Matei aa50820d9a #Unit AI: Aggressive, defensive and stand ground stances.
Also split Entity.cpp further, moving the rendering code to
EntityRendering.cpp and the JS interface code to
EntityScriptInterface.cpp. This makes each individual file smaller
(about 1000 lines still!) and lets them be compiled independently.

This was SVN commit r4314.
2006-09-09 00:00:23 +00:00
Matei aceaee324b XML and JavaScript changes for unit stances.
This was SVN commit r4313.
2006-09-08 23:58:57 +00:00
janwas 18720c9c20 # multimonitor mouse fix (2)
hopefully found last confusion between screen/client coords (now prefix
the former with screen_*)
SDL passes around client coords in message as Uint16, int in API calls,
Window gives/takes screen space POINT (LONG x,y)

This was SVN commit r4311.
2006-09-08 20:09:26 +00:00
janwas c7870cfbb4 buildFileList -> buildDirEntList to emphasize that dirs can be returned. (pt2)
This was SVN commit r4310.
2006-09-08 18:41:30 +00:00
janwas 5473187487 buildFileList -> buildDirEntList to emphasize that dirs can be returned. (1/2)
This was SVN commit r4309.
2006-09-08 18:38:15 +00:00
Matei f8bff91a38 Sped up territory border rendering by caching each edge segment's terrain-conformed coordinates so they don't have to be recalculated each frame.
This was SVN commit r4308.
2006-09-08 16:03:18 +00:00
prefect 6db054f7dd # Add JS variable renderer.fancyWater to enable/disable fancy water rendering at runtime
This was SVN commit r4307.
2006-09-07 22:16:15 +00:00
Matei c183bcde1f Territory boundaries are now rendered before transparent objects, so these can properly cover them.
This was SVN commit r4306.
2006-09-06 22:26:27 +00:00
Ykkrosh e2262b0525 Fixed references to animation files containing extraneous spaces.
Moved some animations out of "not used" since they are actually used.
Renamed "rich's_man" because the apostrophe messes with xargs.

This was SVN commit r4304.
2006-09-04 21:35:10 +00:00
Ykkrosh 245496e201 Fixed warnings/errors/leaks related to Xerces update
This was SVN commit r4303.
2006-09-04 20:59:21 +00:00
christoph e9fcf77ff1 Reordering animation folder
This was SVN commit r4298.
2006-09-04 19:13:11 +00:00
christoph a87c18aada Reordering animation folder
This was SVN commit r4297.
2006-09-04 19:02:23 +00:00
christoph c4c5f7d7e6 Reordering animation folder
This was SVN commit r4296.
2006-09-04 18:53:14 +00:00
dave b899ff6823 Premake need to be changed to create makefiles which work on OSX
updated the lua to handle os x project files

This was SVN commit r4293.
2006-09-04 16:33:47 +00:00
dave 3b41b5fbd1 Moved the include of cmath out of the #ifdef
This avoids stuff like

/usr/include/c++/4.0.0/cmath:85: error: template with C linkage
/usr/include/c++/4.0.0/cmath: In function 'float std::abs(float)':
/usr/include/c++/4.0.0/cmath:92: error: declaration of C function 'float
std::abs(float)' conflicts with
/usr/include/c++/4.0.0/cmath:88: error: previous declaration 'double
std::abs(double)' here

This was SVN commit r4291.
2006-09-03 02:17:57 +00:00
Ykkrosh 8e02ec84f9 Updated OpenAL to 1.1 (which no longer includes ALUT).
Changed player-id code a bit so the entity and actor and unit should
stay in sync more often. (The entity/actor/unit mixing still looks a bit
dodgy and unreliable, though.)
Simplified console help code.
Allowed init/shutdown to be done with the simulation/world/etc parts
disabled (so the actor viewer can load faster).

This was SVN commit r4289.
2006-09-02 21:20:25 +00:00
dave 12b060d34f isfinite etc.. is now properly defined as a macro
This was SVN commit r4288.
2006-09-02 19:41:26 +00:00
dave 0ffabbc5dc Mac compat ..
This was SVN commit r4287.
2006-09-02 17:21:49 +00:00
Mythos_Ruler 3ea971b87f This was SVN commit r4286. 2006-09-01 23:30:45 +00:00
dave 2bb1bde51e Mac gcc complains about mixing size_t, uint etc..
This was SVN commit r4285.
2006-09-01 06:59:29 +00:00
Mythos_Ruler e8633554a5 This was SVN commit r4284. 2006-09-01 06:07:38 +00:00
Mythos_Ruler 35627236af This was SVN commit r4283. 2006-09-01 06:07:05 +00:00
Mythos_Ruler 8f64ee6c9e This was SVN commit r4282. 2006-09-01 06:05:16 +00:00
Mythos_Ruler b1e3dbd1ca #Philip the One-Eye
This was SVN commit r4281.
2006-09-01 05:43:54 +00:00
Mythos_Ruler 856c4e38e2 This was SVN commit r4280. 2006-09-01 05:43:09 +00:00
Mythos_Ruler a8dacd1d17 This was SVN commit r4279. 2006-09-01 05:42:38 +00:00
Mythos_Ruler fe6d7c058a This was SVN commit r4278. 2006-09-01 05:41:51 +00:00
Mythos_Ruler 5ae400a8fd This was SVN commit r4277. 2006-09-01 05:41:27 +00:00
Mythos_Ruler 2896d607c3 This was SVN commit r4276. 2006-09-01 05:39:27 +00:00
Mythos_Ruler cbd76bb839 This was SVN commit r4275. 2006-09-01 05:38:52 +00:00
Mythos_Ruler 35bf56b348 #Spartan single player and multi-player shields
This was SVN commit r4274.
2006-09-01 05:37:31 +00:00
Matei f79af31e42 Units can no longer "track" enemies that are out of the player's LOS when performing a contact action (attack, gather, etc).
This was SVN commit r4272.
2006-09-01 00:24:26 +00:00
Matei 37e924ec4a Fixed up traits.vision.permanent (the default value was not set to false).
This was SVN commit r4271.
2006-09-01 00:23:55 +00:00
Matei 789c850049 # Updates to fog of war rendering.
This was SVN commit r4270.
2006-08-31 23:56:12 +00:00
Matei 4a45724ef2 Updated water shaders to support darkening when out of LOS.
This was SVN commit r4269.
2006-08-31 23:55:39 +00:00
Matei c4d478a690 Fixed a crash in renderTerritories when there were no Settlements.
This was SVN commit r4267.
2006-08-29 03:46:14 +00:00
Matei 973161ed1b Territory manager now ignores territory centres that have ENTF_DESTROYED, so it will work when you delete objects in Atlas.
This was SVN commit r4265.
2006-08-28 23:05:15 +00:00
Matei a55697e2e5 # Improved territory rendering.
- Territory boundaries are now offset slightly and drawn in player
colour, so you can see whose territory you're on the border of.
- Removed some duplication in the code by modifying a loop slightly.

This was SVN commit r4264.
2006-08-28 23:01:16 +00:00
Matei 059e48d152 Fixed a spelling error (TRAiN vs TRAIN).
This was SVN commit r4263.
2006-08-28 19:05:57 +00:00
Ykkrosh 35e91718c5 # Added tool for viewing models and animations outside the game.
Atlas: Added ActorViewer. Moved GL canvas into separate class for shared
use. Disabled message-handling callback while blocked on the game, and
stopped creating dialog boxes inside the game thread in order to avoid
deadlocks (hopefully). Support multiple Views (for independent sets of
camera/update/render code). Recalculate territory boundaries when
necessary. Changed default list of animations to match those currently
used by actors.
# Tidied up more code.
Moved some more #includes out of .h files, to minimise unnecessary
compilation.
MathUtil: Deleted unused/unuseful macros (M_PI (use PI instead), M_PI_2
(use PI/2), MAX3, ABS (use abs)).
ObjectManager: Removed some ScEd-specific things.
Unit: Moved creation out of UnitManager, so units can be created without
adding to the manager. Changed CStr8 to the more conventional CStr.
app_hooks: Removed warning for setting multiple times.
win: Restored SEH catcher.
GameSetup, GameView: Removed RenderNoCull, because it doesn't seem to do
what it says it does ("force renderer to load everything") since we're
loading-on-demand most stuff and it doesn't seem especially useful since
we'd prefer to minimise loading times (but feel free to correct me if
I'm wrong). (And because it crashes when things need to be initialised
in a different order, so it's easier to remove than to understand and
fix it.)
PatchRData, Renderer: Work sensibly when there's no game (hence no LOS
manager, water, etc).
LOSManager: Use entity position instead of actor position when possible.
TerritoryManager: Allow delayed recalculations (so Atlas can issue lots
of move+recalculate commands per frame).
Cinematic: Non-pointer wxTimer, so it doesn't leak and doesn't have to
be deleted manually.

This was SVN commit r4261.
2006-08-28 17:36:42 +00:00
Matei 5205944dce Added the concept of diplomatic stance in CPlayer.
This was SVN commit r4259.
2006-08-28 03:07:48 +00:00
Matei 1b4f2763d9 Script changes for diplomatic stances.
This was SVN commit r4258.
2006-08-28 03:07:07 +00:00
Ykkrosh ad5054205c # Optimised minimap drawing
Initially saved a little bit of time by changing it to use vertex
arrays, and then realised that disabling point-smoothing saved much more
time (from 70ms per frame on cantabrian_generated down to 2ms, which is
worth any quality loss)

This was SVN commit r4256.
2006-08-27 22:51:53 +00:00
janwas 6124ebd62c add missing file from sweng/"forward declare" commit
This was SVN commit r4254.
2006-08-27 12:17:27 +00:00
janwas c53269caac # fix for mouse handling on multimonitor systems
+ cleanup

This was SVN commit r4253.
2006-08-27 10:33:22 +00:00
janwas bc24974496 # sweng
forward declare SDL_event. remove SDL dependency of network code.
refs #140

This was SVN commit r4252.
2006-08-26 21:52:18 +00:00