Commit Graph

5617 Commits (a51d429611dccca0284f5cb9154830905e0c23e2)
 

Author SHA1 Message Date
David Dormagen 01bf846eb2 dynamic particles: changed nested value providers to use member pointers instead of direct pointers; not allow size of 0 2013-10-07 20:56:56 +02:00
David Dormagen beaa394b1d dynamic particles: value provider functions can now be nested 2013-10-07 20:56:56 +02:00
David Dormagen 9ea484f027 dynamic particles: fixed wrong particle color for constant colors 2013-10-07 20:56:55 +02:00
David Dormagen 4032a161ea CMakeList: added entries for dynamic particle source files 2013-10-07 20:56:55 +02:00
David Dormagen 564b722720 dynamic particles: fixed calculation of collision vertex and allow CollisionVertex=0 2013-10-07 20:56:54 +02:00
David Dormagen 381b744229 dynamic particles: added documentation 2013-10-07 20:56:54 +02:00
David Dormagen 0282ca0bd7 dynamic particles: fixed default value of Stretch 2013-10-07 20:56:53 +02:00
David Dormagen 1cb2296a37 dynamic particles: added on collision functions PC_Die and PC_Bounce 2013-10-07 20:56:53 +02:00
David Dormagen 85e0d9788a dynamic particles: added property CollisionVertex 2013-10-07 20:56:52 +02:00
David Dormagen 9753b48f7e dynamic particles: now respect particles' aspect ratio; added PV_Speed, added property Stretch 2013-10-07 20:56:51 +02:00
David Dormagen 2e2c40db07 dynamic particles: added phase property; added parameters to PV_Step; objects now draw their particles correctly; fixed PV_Random 2013-10-07 20:56:51 +02:00
David Dormagen ba41d77e0b dynamic particles: added BlitMode property (supports additive and 0) 2013-10-07 20:56:50 +02:00
David Dormagen e43b9d4fee dynamic particles: added rotation property
added PV_Step and PV_Direction
2013-10-07 20:56:50 +02:00
David Dormagen 8025e7c2b0 the dynamic particle system now runs the calculations in a different thread
added PV_KeyFrames
2013-10-07 20:56:49 +02:00
David Dormagen 40b66d1c76 added (early demo of) new particle system which should both be faster and more flexible than the old one 2013-10-07 20:56:49 +02:00
Maikel de Vries f209d1352c Clean up airship script and use float procedure to move the ship
This removes some functionality which I will implement later, but provides a better basis to build upon.
2013-10-07 19:32:41 +02:00
Maikel de Vries c05875da06 Make COMD_* work more intuitive for DFA_FLOAT
Changing from COMD_UpRight to COMD_Up now makes you go upwards instead of continuing in the diagonal direction.
This does not seem to break anything, although the C4Command.cpp code is hard to verify due to lacking comments. If this is broken I will fix it. In any case no one is using it anyways.
2013-10-07 19:15:46 +02:00
Maikel de Vries 1118a31752 Fixed a OCScript runtime error for the lightning strike 2013-10-07 19:10:25 +02:00
Maikel de Vries 9e8dd57dbb Disabled scaling and hangling under water, fixed vertices for swimming clonk
Please note that the dive animation is putting the clonk to low compared to its center this should be fixed by one of the OC modelers.
2013-10-06 14:55:48 +02:00
Sven Eberhardt fbdd4f7d6b Fix double-add of flags to linked flags list if flags make up a circle with an even number of elements >2. This would cause an error message somewhere in the power system.
e.g.:
for (var a=0; a<360; a+=360/18) CreateObject(WindGenerator,Sin(a,450)+500,Cos(a,450)+500,player);

The algorithm is still weird. Why are three lists needed to traverse the graph of connected flags?
2013-10-06 11:47:32 +02:00
Maikel de Vries 7f9f40a1f5 Renamed Settlement.ocf to Missions.ocf 2013-10-05 17:39:14 +02:00
Sven Eberhardt 2f37347b09 Auto-unstick produced vehicles from landscape by moving them upwards a bit.
Thanks to Ann for reporting this!
2013-10-05 16:11:03 +02:00
Martin Plicht 7ba5333f8b mac: C4ConsoleGUI: Implement SetInputFunctions 2013-10-05 13:19:59 +02:00
Martin Plicht 31119f1b88 cmake: Add Worlds.ocf to OC_C4GROUPS 2013-10-05 13:19:59 +02:00
Maikel de Vries f94a306f55 Move scenarios Gold Rush, Iron Peak, Krakatoa and AcidGoldMine to Worlds.ocf 2013-10-05 11:07:49 +02:00
Martin Plicht cc11006f22 mac: Fix build 2013-10-04 22:34:57 +02:00
Maikel de Vries b2ac11c326 Fixed Loc_Wall behavior in FindLocation.c 2013-10-04 20:58:47 +02:00
Maikel de Vries d280bff611 Fixed cloud raining and lightning in tunnels 2013-10-04 17:16:44 +02:00
Maikel de Vries c27d6c3b79 Fix home base material for Gem Grabbers 2013-10-04 16:52:20 +02:00
Maikel de Vries 7de2d7f617 Add new scenario Gem Grabbers to Worlds.ocf 2013-10-04 15:39:37 +02:00
Maikel de Vries ae6bafe292 Added scenario folder Worlds.ocf
We are starting to have too many settlement scenarios for one folder. This folder will contain all settlement scenarios with simple goals like mining, production or expansion. And these scenarios should all have dynamic maps and should be playable even after goal completion.

I will add the scenarios Gold Rush, Iron Peak and Conquest of Krakatoa and maybe other later, once I am done adjusting them.
2013-10-04 15:38:33 +02:00
Maikel de Vries 1ca9de2f51 Fixed cloud issues: shading, alpha, movement, lightning 2013-10-04 12:48:01 +02:00
Maikel de Vries 0c497d2b95 Airplane can be produced at the shipyard 2013-10-04 10:46:31 +02:00
Maikel de Vries dccab0ba26 Boompack is an inventor's lab product 2013-10-03 23:12:32 +02:00
Maikel de Vries ca78cf2554 Fix a bug that made lightning strikes cause elevators to stop working 2013-10-03 18:48:09 +02:00
Nicolas Hake bfc54cf549 Avoid #DE in GUI_CrewSelector::FxGUIHealthMonitorDamage
GetMaxEnergy() is squashing very low values into 0. Objects could thus
still be alive while GetMaxEnergy returns 0, producing a div by zero.
Avoid this error by defaulting the divisor to 1.
2013-10-03 13:10:27 +02:00
Maikel de Vries be354a99d2 Fix FindLocation for Find_Not and others acting on Find_InRect 2013-09-30 20:35:57 +02:00
Sven Eberhardt 3019a8e66e Fix file SHA1 calculation.
sha1::digest_type is a reference, so cast the BYTE and not the pointer. SHA1 calculation of file contents is required for league.
2013-09-26 23:52:23 +02:00
Sven Eberhardt 7995806bb4 Fix C4ControlPlayerAction (Surrender, activate goal menu, set hostility, etc.) packets in network.
The "action" member wasn't compiled. I wonder how it was even possible to play in network (since InitPlayerControl was never called).
2013-09-24 00:39:44 +02:00
Sven Eberhardt 2be918dbde Remove superfluous debuglog. 2013-09-23 01:52:52 +02:00
Clonkonaut cd3f535522 Fixed plant reproduction (FindObject using local coords), Added SeedOffset
The change of FindObject (and similar funcs like ObjectCount) from using always global coords to now use local coords made the search function in the plant library go wrong.
Also, the distance check in the library led to unnecessary removal of new plants. SeedOffset() will give the developer a better way of controling this.
2013-09-22 22:39:43 +02:00
Sven Eberhardt 3d3f37d6a9 Randomized gem sparkling phases a bit.
Maikel doesn't like how gems coming from the same explosions would celebrate their common inheritance by sparkling in synchrony.
2013-09-22 17:56:59 +02:00
Sven Eberhardt a21576a58c Made VolcanoEscapeEXTREME a bit harder by adding ore veins 2013-09-22 17:39:05 +02:00
Sven Eberhardt d976802ca8 Allow copying of message boxes (Ctrl+C). 2013-09-22 16:30:55 +02:00
Sven Eberhardt 8e82548746 VolcanoEscapeEXTREME: Close sides
When sides are open and the volcano reaches the central mountain, lava tends to flow out of the map while the volcano continues to grow further up. This looks rather stupid.

The current solution may also look a bit weird (as the volcano now grows over the mountain top), but is preferable both visually and from a gameplay perspective.
2013-09-22 13:52:34 +02:00
Sven Eberhardt 4266617b5a Added rubber-band effect to VolcanoEscapeEXTREME.
The scenario is now a bit harder (and feels a lot harder) as the volcano speeds up whenever you gain a large distance from it.
2013-09-21 19:55:14 +02:00
Nicolas Hake 8e0535dd7d Network: Disallow re-enabling debug mode via faked control packet
Instead of taking the data parameter of the C4ControlSet packet at face
value, ignore it entirely and only allow disabling debug mode.
2013-09-21 15:10:39 +02:00
Julius Michaelis b67109df8a Add /screenshot [zoom] to /help 2013-09-21 01:08:12 +02:00
Sven Eberhardt e31a207330 Added message board command: /screenshot zoom
Creates a whole map screenshot at given zoom level. Use carefully; files can become pretty large!
2013-09-20 23:50:19 +02:00
Sven Eberhardt e1b972f960 Added energy radius to power producing buildings.
See forum discussion on flags / energy distribution.
2013-09-16 22:39:56 +02:00