Commit Graph

7360 Commits (790219ac7eeb0be340c5063dff6944abcf520f7a)
 

Author SHA1 Message Date
Sven Eberhardt 0d48105b46 Added shape library.
Also fixed some coconut tree reproduction issues.
2015-07-31 00:42:01 -04:00
Armin 0c288d3b3a Fix error when throwing spear out of the map (#1334)
Signed-off-by: Maikel de Vries <mdt.maikel@gmail.com>
2015-07-26 21:24:15 +02:00
Clonkonaut 6c57a940ec Fixed the lantern's texture. 2015-07-26 14:33:57 +02:00
Sven Eberhardt 56a21d549a Fix scenario saving of mosquito swarms. 2015-07-26 00:14:32 -04:00
Sven Eberhardt 2c77bc3ec5 Fix null pointer exceptions for lonely mosquitoes that aren't part of a swarm. 2015-07-25 22:03:06 -04:00
Sven Eberhardt d2bfdb9d4b Remove some unnecessary properties when saving free basements in saved scenarios.
Width and category were saved even on default values.
2015-07-25 20:38:45 -04:00
Clonkonaut 5d3fc9683f Another tree by Nachtfalter: Tree_Coniferous3 2015-07-25 12:59:22 +02:00
Clonkonaut d8dcb6e73b Reverted Tree_Coniferous to old tree because backwards compability.
New tree is Tree_Coniferous2
2015-07-25 12:53:11 +02:00
Clonkonaut c813743018 New swarming insect: Mosquito!
Purely for decoration (no stinging). Mosquitos are nocturnal if you ever wonder.
2015-07-25 12:43:16 +02:00
Clonkonaut 3ce3d3604d Added Insect Swarm Library.
Have swarming insects, today!
2015-07-25 12:41:17 +02:00
Clonkonaut 23bbf666c6 Added placement and dying to insects. 2015-07-23 18:39:51 +02:00
Clonkonaut 0e48f2baaa New model for the loom. Animation is missing. 2015-07-23 15:09:11 +02:00
Clonkonaut 5bb56010e2 Tree Library rework, new tree added.
Tree Library: Moved a lot of superfluous duplications from trees to the library.
Added a new coniferous tree, moved the old to Coniferous2.ocd.
2015-07-23 14:54:38 +02:00
Clonkonaut f8b5a9fca0 Complete rework of the butterfly. 2015-07-23 13:31:23 +02:00
Clonkonaut ffe1090da0 Added Insect Library.
Basic behaviour for insects!
2015-07-23 13:30:35 +02:00
Clonkonaut cdb4a1b153 Convenient wrapper for Environment_Time: HasDayNightCycle, SetTime, GetTime, IsDay, IsNight 2015-07-23 12:58:19 +02:00
Clonkonaut b8652fa5ba Fixed IsNight. It never worked. 2015-07-23 12:45:01 +02:00
Armin Burgmeier a172245c1e Illuminate materials with no backface culling from both sides
This might need adaptions in some materials, but is probably the right thing
to do.
2015-07-20 22:11:19 -04:00
Maikel de Vries 572c582265 remove some more empty graphics 2015-07-20 18:11:16 +02:00
Maikel de Vries 73fb8cf5e1 add RandomElement function to get a random element from an array 2015-07-20 18:11:16 +02:00
Sven Eberhardt 2804375235 Deep Sea Mining: Skip intro when SCEN_TEST is set. 2015-07-19 10:16:02 -04:00
Maikel de Vries 9632ff03d8 default value (white) for object's light color (#1355) 2015-07-19 09:06:46 +02:00
Sven Eberhardt 00e2e10e33 Fix GetSurfaceVector when called near a surface.
Parts of the function still assumed the old proplist result format.
2015-07-18 20:45:39 -04:00
Clonkonaut 609df7df88 Added 3 libraries: Lamp Post, Lamp and Lamp Dummy
Reworked the lantern and buildings to use the libraries.

Lamp Post: Included by buildings if lamps should hang outside.
Lamp: Included by lamps!
Lamp Dummy: Included by the dummy object that resembles the (outisde) hanging lamp.
2015-07-18 13:14:31 +02:00
Clonkonaut 88389eb727 Added another trunk purely for decoration.
You can walk through and hide in it!
2015-07-14 23:29:59 +02:00
Clonkonaut fa5b8bcf53 Added "Cover" Library
Covers are foreground objects to hide behind. Covers become invisible once your (crew) cursor is behind it, effectively turning them into a good place to hide.
2015-07-14 23:27:50 +02:00
Clonkonaut c7c970822d Added Rectangle_IsInside
Checks whether a given position is inside a given rectangle.
2015-07-14 23:26:26 +02:00
Maikel de Vries 213de4b40b fix updating clonk's vertices after swimming (#1354) 2015-07-14 19:14:27 +02:00
Maikel de Vries 202666440f trunk placement onto rocks and soil only 2015-07-13 18:55:57 +02:00
Maikel de Vries 1134f287a5 branch placement onto rocks and soil only 2015-07-12 22:19:39 +02:00
Maikel de Vries f492aa5e71 FindLocation: implement material val check and wall check conditions 2015-07-12 22:18:43 +02:00
Mark ecb24dc927 CastObjects: Array
CastObjects returns an array now, so that further function calls can be issued on the created objects.

(cherry picked from commit 184943fe6f720ba26402764bb3b182d550370e74)
2015-07-11 17:48:14 +02:00
Mark a6bab72499 Vector Library conformity
GetSurfaceVector() and the Coral object now use the array format of the vector library for vectors, instead of proplists.

(cherry picked from commit 03f644e56cdc99a84df57451ed1bac361c0c896d)
2015-07-11 17:47:56 +02:00
Mark 26ed2bb206 Vector Library
A small library for vector manipulations of arbitrary dimension.

(cherry picked from commit a180b1dce7ae93050eaef078edbe66a72d4d57d4)
2015-07-11 17:47:40 +02:00
Mark d45cc7c95b Colored lights improvements
Color value is now uint32_t, removed superfluous conversion to unsigned value, simplification in the shader.

Open: C4DP_Last and number of drawing passes
2015-07-11 17:46:00 +02:00
Sven Eberhardt 9042450399 Fix DoExplosion from global context.
Avoid null pointer and do play sounds.
2015-07-09 01:03:34 -04:00
Sven Eberhardt 6535d1a5ad Fix gravestone inscriptions for clonks with empty death messages (#896). 2015-07-08 21:14:56 -04:00
Armin e135a74189 Docs: Remove some dead hyperlinks leading to deleted functions. And remove the Alpha entry in Material (ocm).
Signed-off-by: Maikel de Vries <mdt.maikel@gmail.com>
2015-07-08 22:29:55 +02:00
Sven Eberhardt fe46689d3e Make ExplosionEffect function overloadable. 2015-07-08 15:55:33 -04:00
Sven Eberhardt 103eb2528f Add sanity check for animation length when using Anim_Linear as a position provider in PlayAnimation script function. 2015-07-07 22:59:41 -04:00
Sven Eberhardt 221565952d Fix erroneous Piranha bite animation and associated savegame problem (#1352)
This caused animations to never end and thus excessive stacking of animation nodes until saving of the game would take very long or even crash.
2015-07-07 22:04:07 -04:00
Sven Eberhardt df0c2b9921 Document precision parameter of GetX and GetY.
Also update wording on SetPosition precision parameter documentation.
2015-07-04 11:30:24 -04:00
Sven Eberhardt 723d3c6df9 Document precision parameter of SetPosition() (#1348) 2015-07-04 11:10:41 -04:00
Clonkonaut f653d4c70c Lantern may now be attached to buildings. Simply put it in the building's inventory. 2015-07-02 22:36:32 +02:00
Clonkonaut 00fcee09ee Producer Library: ForceEntry callback to bypass RejectEntrance 2015-07-02 22:36:32 +02:00
Clonkonaut cce37fc272 Little performance tweak. 2015-07-02 22:36:32 +02:00
Armin Burgmeier 5f63e9d4b3 Skip mission access check in debug builds 2015-06-30 22:08:37 -04:00
Maikel de Vries 4e3c211fcc remove outdated object selector 2015-06-29 21:38:07 +02:00
Mark 02fd798631 Colored lights
The color of object lights can now be changed. This includes the following changes:
- added light test scenario, based on DarkCastle, with some lights,
- new functions SetLightColor() and GetLightColor() with C4Script documentation,
- third drawing pass for rendering the light color, the drawing passes are now referenced by enum,
- the blending of light from multiple colored light sources works correctly with alpha blending,
- light color value affects the intensity of the light,
- alpha blending of the light depends on color value and lightness. This means that brighter (= more value) and lighter (= more whiteish) light will be preferred in blending over other lights,
- the object light color is rendered to the lower half of the fow light texture now,
- the shader accesses the brightness/direction information and color information correctly,

The patch was created from the following commits:
dab898a SetLightColor()
f57286e Color texture experiment
d0702f5 Dynamic color
fa14cdf Light test scenario
f99203d Alternate lights
474bade Bugfixes
3113698 Brightness handled better
516fb21 GetLightColor
1d91ec9 Improvements
3cfbf6c Documentation
95ec185 Improvements: Light Shader
a63bffc Scope of alpha
20c7ca0 Improvement: C4FoWLight
17d9123 Undo code style
d79411b Cleaner code

(cherry picked from commit 36dec610e36860b88417e91ce727250673bc2ec2)

Conflicts:
	src/landscape/fow/C4FoWRegion.cpp, merged
2015-06-28 21:28:40 +02:00
Clonkonaut 1021c51fe8 Lantern: Simple light source and fire bomb!
Also added a second click sound.
2015-06-28 18:59:02 +02:00