Commit Graph

210 Commits

Author SHA1 Message Date
Allanis
93fd1eef4d [Add] Player can abort hyperspaec jump sequence. 2013-10-15 23:38:49 +01:00
Allanis
673b83ea6a [Add] More doxygen along with some slight code cleaup. 2013-10-11 23:02:39 +01:00
Allanis
6dd9de9835 [Fix] Some obscure bugs like not being able to shoot secondary weapons right away. 2013-09-30 22:43:33 +01:00
Allanis
4d8b462359 [Add] First round to bring more control to beam weapons. 2013-09-30 22:29:53 +01:00
Allanis
70d4987a00 [Add] starting to add sound for beam weapons. Sound system could do with an overhaul tbh. 2013-09-29 21:25:59 +01:00
Allanis
55bb07c560 [Add] More improvements for beam turrets, they also use energy properly now.
[Add] New outfit: Ragnorak beam.
2013-09-24 22:22:41 +01:00
Allanis
71ab2d863f [Add] Added outfit states and beam hit function. Also added compile option for clang. 2013-09-23 22:59:01 +01:00
Allanis
f0336e14af [Change] Improved some of the shooting handling. 2013-09-23 20:28:12 +01:00
Allanis
d1df9aeaae [Add] Pilot death explosion sounds.
[Add] More documentation.
2013-09-06 19:45:24 +01:00
Allanis
fc3276464a [Add] Targetting sounds implemented.
[Add] More doxygen.
2013-09-06 16:37:38 +01:00
Allanis
eae283417f [Add] Partially documented pilot.c 2013-09-05 13:32:30 +01:00
Allanis
9178376c28 [Change] Split engine sounds and GUI sounds for player.
[Fix] Some issues in sound.c
[Add] More documentation.
2013-09-04 15:19:04 +01:00
Allanis
de91ebd91f [Fix] Bug concerning not being able to shoot seeker weapons. 2013-08-30 17:54:02 +01:00
Allanis
01b3f2f77b [Change] AI now use more weapon types and uses them more wisely.
[Add] Draktharr gets mace rockets.
2013-08-28 15:08:22 +01:00
Allanis
018c3cd39d [Change] Tweaked rumble a bit more. 2013-08-24 13:16:03 +01:00
Allanis
719bb753a2 [Change] Improved enemy and turret ai, they hit a lot now!
-- also improved the global attack() ai.
2013-08-14 16:48:32 +01:00
Allanis
35969bab38 [Add] Can now override pilot AI in a fleet.
[Change] Made fleet_parse() more up to date with xml.h
2013-08-10 20:23:06 +01:00
Allanis
cd1565a6d5 [Change] Tweaked faction hits to be more useful. 2013-08-10 12:32:06 +01:00
Allanis
515c951078 [Change] It should be easiar to lose a faction than it is to gain it. 2013-08-10 12:21:15 +01:00
Allanis
79411d240e [Change] Unified colouring schemes. 2013-08-09 20:45:17 +01:00
Allanis
47f132a467 [Change] Made rating/faction gain not linear. 2013-08-09 20:19:47 +01:00
Allanis
aa8408022d [Fix] Clear player lockons when running space_init(). 2013-08-09 13:49:11 +01:00
Allanis
21ca77d439 [Change] Updated TODO. 2013-08-08 16:35:45 +01:00
Allanis
da83f105e0 [Add] Jammers are now implemented fully. 2013-08-08 16:31:08 +01:00
Allanis
30aaa7852d [Fix] You can no longer buy extra outfits. 2013-08-07 14:26:45 +01:00
Allanis
9d43435d4a [Change] Afterburn now breaks when you run out of energy. 2013-08-03 17:57:35 +01:00
Allanis
82b210e6cc [Change] Sanitized the pilot_get* a bit. 2013-08-03 15:45:56 +01:00
Allanis
e1308dc570 [Add] Pilots lose their cargo when the die. 2013-07-24 16:59:28 +01:00
Allanis
7a6f27da43 [Add] Warn the player when a missile is locked onto her. 2013-07-09 19:03:03 +01:00
Allanis
dcf093b13e [Add] Two new hooks: Board and disable. Also made lua debug more verbose. 2013-07-09 16:11:14 +01:00
Allanis
10418a5ba9 [Change] Knockback is now dependent on DamageType. 2013-07-06 19:10:34 +01:00
Allanis
698b22a324 [Change] Player no longer "hardcoded" into pilot_stack[0]. 2013-07-06 17:28:26 +01:00
Allanis
715fecfa03 [Change] Missed another /2 in binary pilot search. 2013-07-06 16:44:54 +01:00
Allanis
ab277eabb4 [Change] pilot_free uses memmove. 2013-07-06 16:42:28 +01:00
Allanis
00fbe34b62 [Fix] Bug with unlimited range turret bolts. 2013-07-06 15:34:33 +01:00
Allanis
8213cb9f48 [Change] Switched l+(h-l)/2 to (h+l) >> 1 in binary search. 2013-07-04 13:43:24 +01:00
Allanis
19e3e818a4 [Change] Renamed pilots and mpilots to pilot_nstack and pilot_mstack. 2013-07-04 13:33:38 +01:00
Allanis
d11eabd358 [Add] New outfit: Star map, allows you to see two jump points from current location. 2013-06-25 22:21:56 +01:00
Steven Arnow
a2bb0df939 All C++-comments in src/ should now be C89 comments 2013-06-22 22:10:25 +02:00
Allanis
d8705a6f7a [Fix] New player cleanup stuff. 2013-06-22 20:43:57 +01:00
Allanis
331cc86c98 [Fix] Potential issues with reallocs. Added more comments too. 2013-06-09 17:04:44 +01:00
Allanis
65e25f6ce0 [Change] Moved from damage_armour and co, to just damage and damagetype. 2013-06-04 12:06:39 +01:00
Allanis
493f67691e [Change] New philosophy. When you swap ships, your cargo should stay with you, will fix issues. Also, major outfit add/rm cleanup. 2013-06-03 22:22:50 +01:00
Allanis
123ddb3d46 [Add] Cargo affects weight. Also fixed bug when changing ships. 2013-06-02 16:43:16 +01:00
Allanis
61cb4a3f67 [Change] Have pilots re-calculate cargo load when calculating stats. 2013-06-01 20:25:40 +01:00
Allanis
f91505b950 [Change] Some code cleanup and made map a little more sane when selecting paths. 2013-06-01 18:07:45 +01:00
Allanis
d6f266323f [Fix] Bug with no death window apearing after cinematic view. 2013-05-23 15:10:28 +01:00
Allanis
b860e38959 [Add] You can lose faction now, fixed ai to set you as hostile. 2013-05-23 14:31:41 +01:00
Allanis
b5ec83322e [Add] Rumble the screen a little if you take armour damage. 2013-05-23 00:01:57 +01:00
Allanis
878172d32a [Add] Parametize chunks to realloc. Grow pilot and weapon stack. 2013-05-22 23:57:04 +01:00
Allanis
f271a2cbb8 [Add] Let's get ready to RUUUMMMBLLLEEEEE!! 2013-05-18 15:40:18 +01:00
Allanis
052c40897c [Add] Mods can now add cargo. Fixed rmOutfit bug. 2013-05-17 01:13:27 +01:00
Allanis
25adf125e4 [Change] Preparations for adding fuel. 2013-05-16 19:15:00 +01:00
Allanis
c51612d764 [Add] Linux specific stuff for saving. 2013-05-14 21:39:00 +01:00
Allanis
a741250073 [Add] You can kinda load games, still need to fix some issues. 2013-05-11 20:59:12 +01:00
Allanis
92c7d549f0 [Change] Cleaned up a little XML parsing stuff. 2013-05-11 16:33:29 +01:00
Allanis
c609780acc [Add] Improved xml #define magic stuff. 2013-05-08 18:49:24 +01:00
Allanis
1c9bc7ed9d [Add] Missions can now add fleets. 2013-05-06 17:14:32 +01:00
Allanis
8e1745bd7a [Add] Implemented pilot hooks with the "death" hook as an example. 2013-05-02 20:46:55 +01:00
Allanis
2e5606b845 [Fix] It's a seldom bug, but this will stop us from exploding while entering into hyperspace. 2013-05-02 20:29:16 +01:00
Allanis
1d57250606 [Add] Mission tracks cargo and makes sure you have it. 2013-04-06 13:32:19 +01:00
Allanis
8172d0f21f [Add] Introduced concept of mission cargo being un-tradable. 2013-04-05 20:19:27 +01:00
Allanis
bf6577ccc1 [Fix] Nailed the memory leak and a silly error. 2013-04-03 19:49:05 +01:00
Allanis
2e63c40ef4 [Fix] Fixed up most warnings, there are a couple remaining but they aren't important. 2013-04-01 17:42:14 +01:00
Allanis
faff7b2193 [Add] Few more mission functions. Also fixed invalid memory free. 2013-03-31 23:34:06 +01:00
Allanis
a66a9ea264 [Change] Use ids for factions instead of pointers. 2013-03-31 16:12:33 +01:00
Allanis
99857ba716 [Add] Can now change ships once purchased more, and also have them transported to another planet. 2013-03-22 23:28:16 +00:00
Allanis
269de8dcfe [Add] player_getLoc and don't allow player to repeat ship names. 2013-03-22 21:04:25 +00:00
Allanis
697876409e [Add] Save purchased ships in a stack. Just need to be able to change them. 2013-03-22 13:26:11 +00:00
Allanis
829d24eb79 [Add] pilot_copy function. 2013-03-22 12:48:16 +00:00
Allanis
6a7c051851 [Fix] Moving from tab to space messed all the indents up. I thing that got them all now. 2013-03-21 19:34:35 +00:00
Allanis
4ea444b9ae [Change] All tabs back to spaces. 2013-03-21 00:27:05 +00:00
Allanis
927280f778 [Fix] Death explosions. 2013-03-20 21:36:32 +00:00
Allanis
9ea3f985d2 [Add] Prevention in case of pilot_stack reallocation. 2013-03-20 21:27:57 +00:00
Allanis
ccffdae9fd [Add] Player death with short cinematic. 2013-03-20 20:23:39 +00:00
Allanis
0d6ac1e5b1 [Add] Afterburners are in! After buying the outfit, double tap 'w'. 2013-03-19 22:34:20 +00:00
Allanis
c2d44ebb74 [Fix] FFS. Wasn't incrementing number of outfits while trying to add it. 2013-03-17 20:13:43 +00:00
Allanis
a037112f72 [Fix] Eheh. Typo affecting merchant ships going to hyperspace.. 2013-03-17 19:55:40 +00:00
Allanis
b66c6f7ecf [Add] Attempted to get modifications actually working. Everything is
brokened. Don't even attempt to play..
2013-03-17 19:28:45 +00:00
Allanis
2f59ae1b84 [Add] Energy is actively in use now. ^.^ 2013-03-17 16:36:59 +00:00
Allanis
91e68ee828 [Add] Buy/Sell cargo. 2013-03-17 01:01:47 +00:00
Allanis
88fed6f40c [Add] ai now controls ship's credits/loot. Some more API calls and cargo stuff. 2013-03-16 22:14:53 +00:00
Allanis
eb98a0deaf [Change] Some cosmetic changes to Hyperspace. 2013-03-16 16:47:49 +00:00
Allanis
4b07e86acd [Add] Militia faction. Changed Test pilot to Militia and added ai_create 2013-03-12 23:45:29 +00:00
Allanis
2a572b713a [Fix] Enforce outfit selling/buying with limits. 2013-03-10 16:07:38 +00:00
Allanis
1d6b0268b5 [Change] Cleaned up codebase to not exceed 80 characters. 2013-03-10 14:18:07 +00:00
Allanis
eeb09fdf05 [Add] Make $$ from selling outfits. 2013-03-08 13:54:30 +00:00
Allanis
a33bb0624a [Add] Selling of outfits, also improved purchasing of outfits. 2013-03-08 00:10:45 +00:00
Allanis
36a8847248 [Add] You may buy new outfits now. :D 2013-03-07 18:44:01 +00:00
Allanis
8881dc5265 [Add] Keybord events work with lists. I think I optimized pilots to use temp sprite values here too. Forgot to diff. 2013-03-06 20:17:14 +00:00
Allanis
9d966458d7 [Add] Mule ship, and applied turrets to them. 2013-02-28 21:22:06 +00:00
Allanis
8f6b02cfc1 [Add] Turrets!! 2013-02-28 17:38:44 +00:00
Allanis
1b77a4276b [Add] Smart seeker missiles. Not aquirable yet :P.
[Fix] Potential fix of a floating point exceoption.
2013-02-28 01:23:52 +00:00
Allanis
f181a7bec6 [Change] Just some standardization 2013-02-27 23:03:48 +00:00
Allanis
495a9ccb74 [Add] Enemy pilots die with a big ass explosion. :D 2013-02-27 22:16:09 +00:00
Allanis
a6c758aa66 [Fix?] Hyperspace bug. Messed up velocity issues.
Ok. What we are doing here is messy.

What we are doing is modulating the velocity. There is also a dt
in there to try to make it not frame dependant..

The way things are done right now, we  are cascading the limit_speed with the physics model,
We can simplify it to a euler integration (It's actuallyu runge-kutta)..

What we are doung is:

v1 = v0 + adt

Basically this means that the current velocity is the last vel plus the acceleration, times the
time passed from the last instance. This is then chained to the limit speed which does:

v = (v1 - vmax)(1-3dt)

So we can right the composite form as:

v = (v0 + adt - vmax) 1-3dt) = v0 + adt - vmax - 3dtv0 - 3adt2 + 3dtvmax

-- Yes. This is hacky. I will try to play with some equasions later.
2013-02-27 03:45:25 +00:00
Allanis
f6de9e8186 [Add] limit_speed in physics 2013-02-27 03:26:58 +00:00
Allanis
0de847b5a4 [Fix] Quick indent fix to stop us from being confused as hell while bug hunting. 2013-02-27 02:46:25 +00:00
Allanis
1d89d4e7c6 [Fix] Huge fix of outfits, missiles now work, compiles in C99, no seg fault on exit. 2013-02-27 01:17:46 +00:00
Allanis
18bb84eafb [Change] Nerfed the knockback effect. 2013-02-26 23:52:41 +00:00