Sven Eberhardt
cc12230d56
Add "immediate" parameter to SetPlrView and ResetCursorView script functions to force viewport scroll position to the target.
2015-12-02 22:11:28 -05:00
Clonkonaut
f8ddc7b313
Documentation for the second parameter of EliminatePlayer ( #1261 ).
2015-11-30 23:49:15 +01:00
Sven Eberhardt
7f827d4b15
Add optional debug logging for shape texture loading.
...
Set Config.Developer.DebugShapeTextures to 1 for testing.
2015-11-20 20:35:05 -05:00
Armin
31371bcc82
Docs: Fix mistake in map scripts. 'Op=checkerboard' was missing.
2015-11-07 11:22:52 +01:00
Armin
9a9ab3059d
Docs: Add related function "DoEnergy" to "GetEnergy".
...
squashed:
Correct mistake. Copied too many lines in my last commit.
Docs: Add releated function.
2015-10-29 11:24:21 +01:00
Armin
0b223be474
Docs: Correct two examples in Script GUIs.
2015-10-29 11:16:53 +01:00
David Dormagen
4556fbe011
documented GetPlayerControlState
2015-10-15 18:05:21 +02:00
Sven Eberhardt
47e422f452
Rework and document texture shapes.
...
* Renamed from material shapes to textures shapes
* No per-texture, so the same material can use different shapes with different textures
* Load a shape image instead of text file with vector components
* Allow texture sizes that are not multiple of the map zoom
* Add minimum overlap parameter to draw shapes only when the given overlap is reached.
2015-10-09 00:16:24 -04:00
David Dormagen
fa1e86f2ae
docs: added fuzzy logic to "library" folder
2015-10-05 14:50:02 +02:00
David Dormagen
cb58bed40e
fuzzy logic library: changed interface & added documentation
...
The interface now follows the Shape library's interface.
2015-10-04 18:38:05 +02:00
Armin
5a2bfe40a6
Docs: Map.c examples: Replace DrawSulphur with DrawFirestone.
2015-10-01 18:46:35 +02:00
Sven Eberhardt
17e0e2f423
Add breaks between music.
2015-09-30 22:50:18 -04:00
Sven Eberhardt
62c3d13ece
Document InitializeAmbience.
2015-09-28 20:20:57 -04:00
Sven Eberhardt
3f6cacade4
Add parameters to Music and SetPlayList to resume a piece from where it was last interrupted.
2015-09-27 20:58:37 -04:00
Sven Eberhardt
766cd3e7d6
Fix default map zoom in docs ( #1409 ).
2015-09-27 16:12:17 -04:00
David Dormagen
052e0358d9
script guis: document and give example for names starting with underscores
2015-09-27 18:34:18 +02:00
David Dormagen
cd9c0717c9
document new GUI_NoCrop effect on text
2015-09-26 08:33:20 +02:00
Sven Eberhardt
88167a03a8
Add support for hidden scenarios.
...
If C4S.Head.Secret is set and mission access to the scenario has not been gained, it is hidden in the scenario selection list.
2015-09-24 23:51:16 -04:00
Maikel de Vries
0cf664e5d9
fix dead link in Anim_Linear documentation
2015-09-20 20:29:34 +02:00
Sven Eberhardt
95da770892
Move GetDefWidth and GetDefHeight script functions to engine.
...
They started to appear in script profiler runs and the GetDefVal-implementation is very inefficient.
2015-09-19 21:22:55 -04:00
Armin Burgmeier
653680b296
Revert "Add Scale parameter in materials"
...
This reverts commit 8ef1f908cc
. This seems to be
a performance bottleneck on some graphics cards and/or drivers. Clonkonaut
reports issues with a Radeon HD 7800.
This feature is not vital since textures can always be drawn such that they
tile properly at 512x512. While that particular problem with the Radeon card
could probably be worked around, it's just not worth it.
2015-09-19 17:26:46 -04:00
Armin Burgmeier
8ef1f908cc
Add Scale parameter in materials
...
This allows to scale textures up or down from their initial size, allowing
them to tile at intervals other than 512x512.
2015-09-19 10:48:28 -04:00
Armin Burgmeier
8e2ad1fb33
Fix property name "LightOffset" in SetLightRange docs
2015-09-16 21:55:33 -04:00
Sven Eberhardt
b683e47499
Add LightOffset property to allow light sources to origin from locations other than the object center.
2015-09-16 21:14:08 -04:00
Mark
722a5ad448
Explode: DoShockwave
...
Added the global function DoShockwave. Updated documentation. Changed the way explosions deal damage: Every object at the center of the explosion gets full damage. Every object inside the explosion radius gets half damage.
(cherry picked from commit 22298a6d1389b5344ebe7aea56f3c371b5ad845f)
Conflicts:
planet/System.ocg/Explode.c
2015-09-13 13:01:28 +02:00
Mark
15056b823f
Explode: Damage override
...
Added damage override parameter to the explosion functions. Updated the documentation as well.
(cherry picked from commit 59f802c2d3f269d54c12489ac9659ee3ca57a857)
Conflicts:
planet/System.ocg/Explode.c
2015-09-13 13:01:24 +02:00
Armin Burgmeier
a40792013f
Add "AttachNumber" parameter to AttachMesh
...
This allows to create nested definition-based attached meshes.
2015-09-12 19:57:00 -04:00
Maikel de Vries
e64534b201
document ignore_ocf parameter of Collect
2015-09-12 22:37:21 +02:00
Sven Eberhardt
75d0eba402
Document attach_number in several animation-related script functions.
2015-09-12 12:26:03 -04:00
Sven Eberhardt
6face464aa
Document attach_mesh parameter of the PlayAnimation function.
2015-09-12 11:07:20 -04:00
David Dormagen
cd82b41c06
particles: added CollisionDensity to specify with which kind of material a particle will collide
2015-09-12 10:53:23 +02:00
Maikel de Vries
0610cbda7d
document object layer setter and getter
2015-09-10 22:31:51 +02:00
Sven Eberhardt
3723024e2f
Added implicit layer check to local calls of FindObjects-family functions ( #1383 ).
...
Also fixed some docs links. Note that GetObjectLayer and SetObjectLayer are still not documented.
2015-09-09 20:19:45 -04:00
Sven Eberhardt
e3213812a9
Implement GetStartupTeamCount() script function ( #1246 ).
...
Returns number of teams containing active players at game start.
2015-09-06 23:29:22 -04:00
Sven Eberhardt
31a3f5979f
Add missing image in script gui docs.
2015-09-06 17:06:14 -04:00
Maikel de Vries
a9ac4b0ea7
fix dead link in GetStartupPlayerCount docs
2015-09-04 23:20:02 +02:00
Sven Eberhardt
84fbff95a8
Add Find_Property.
2015-09-02 23:55:45 -04:00
David Dormagen
ac738735b2
Merge branch 'master' into Controls
...
Conflicts:
planet/Objects.ocd/Vehicles.ocd/Airplane.ocd/Script.c
src/game/C4Game.cpp
src/game/C4GraphicsSystem.cpp
src/gamescript/C4GameScript.cpp
2015-09-02 08:19:34 +02:00
Sven Eberhardt
6ab6a1ac3c
Add script interface for some EFX sound modifiers.
2015-08-27 21:44:23 -04:00
Armin Burgmeier
1827ed53ca
Enhance mapscript functions for use with background materials
...
Add GetBackPixel, GetDefaultBackgroundIndex, GetMaterialTextureIndex, and make
SetPixel accept a background color.
2015-08-18 19:20:36 -04:00
Sven Eberhardt
0d16e67066
Order mat-tex combinations by appearance in texture map instead of by palette index when zooming map to landscape.
...
This should simplify insertion of new textures at arbitrary drawing orders without reassigning palette indices (the latter would invalidate all old maps).
2015-08-10 00:34:43 -04:00
Sven Eberhardt
d92df758a8
Added pitch parameter to Sound() script function and allow pitch and sound level to be modified for sounds that have already been started.
...
Sound() called when the instance is already running used to fail. Now, it always succeeds (also for script sync safety) but updates the sound level and pitch parameters. SoundAt has not been modified since it allows creation of multiple concurrent sound instance of the same effect without object context.
2015-08-09 18:40:42 -04:00
Armin Burgmeier
bc177e8f8b
Documentation updates
2015-08-04 21:21:24 -04:00
Armin Burgmeier
0d806fbcbf
Add syntax for drawing background materials with Map.c
2015-08-04 21:21:24 -04:00
Armin Burgmeier
51986b68ef
Allow script functions to access background landscape
...
Add GetBackMaterial() and GetBackTexture(), and allow DrawMaterialQuad to
specify a background mat-tex combination.
2015-08-04 21:21:24 -04:00
Armin Burgmeier
b8343786b6
Make MapScript create a background map
...
This removes the last occurence of the IFT flag
2015-08-04 21:21:23 -04:00
David Dormagen
36544bd56c
Merge branch 'master' into Controls
...
Conflicts:
planet/Objects.ocd/Libraries.ocd/Producer.ocd/Script.c
planet/Objects.ocd/Structures.ocd/Foundry.ocd/Script.c
planet/Objects.ocd/Vegetation.ocd/Branch.ocd/Script.c
planet/Objects.ocd/Vegetation.ocd/Trunk.ocd/Script.c
planet/System.ocg/FindLocation.c
2015-08-02 19:24:04 +02:00
Sven Eberhardt
0d48105b46
Added shape library.
...
Also fixed some coconut tree reproduction issues.
2015-07-31 00:42:01 -04: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
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
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
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
Armin Burgmeier
ecaedb7106
Add GetAnimationList() script function ( #1344 )
2015-06-22 19:58:58 -04:00
Maikel de Vries
6d096f608d
add Find_Team as FindObject criteria
2015-06-17 20:15:24 +02:00
Maikel de Vries
5176a3a72c
document that Symbol in GUIs can be objects as well
2015-06-05 12:08:30 +02:00
David Dormagen
196f528201
Merge branch 'master' into Controls
...
Conflicts:
planet/Objects.ocd/HUD.ocd/FancyGridMenu.ocd/DefCore.txt
planet/Objects.ocd/HUD.ocd/GridMenu.ocd/DefCore.txt
planet/Objects.ocd/Helpers.ocd/Dummy.ocd/Graphics.png
planet/Objects.ocd/Items.ocd/Tools.ocd/WindBag.ocd/Script.c
planet/Objects.ocd/Items.ocd/Weapons.ocd/Javelin.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Constructor.ocd/ConstructionMenu.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Constructor.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Flag.ocd/Marker.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Producer.ocd/Script.c
planet/Objects.ocd/Structures.ocd/Flagpole.ocd/Script.c
planet/Objects.ocd/Structures.ocd/Pump.ocd/Script.c
src/game/C4Game.cpp
src/gamescript/C4GameScript.cpp
src/gui/C4GameMessage.cpp
src/landscape/C4Landscape.cpp
2015-06-03 22:32:36 +02:00
Maikel de Vries
188bd97f87
fix layout of GUI Script documentation
2015-06-02 22:48:38 +02:00
Armin
035e1fc808
Docs: Correct DoEnergy() and AddCommand() examples ( #1305 )
...
Signed-off-by: Maikel de Vries <mdt.maikel@gmail.com>
2015-05-14 12:42:23 +02:00
Maikel de Vries
0157e7b496
remove obsolete BuildTurnTo defcore entry
2015-05-11 21:47:55 +02:00
Sven Eberhardt
21500a81a9
Fix pump to clear the last row of pixels ( #1057 ) and allow pumping from pump without source pipe.
...
ExtractMaterial has been changed to be able to slurp in from the most distant horizontal position rather than the closest to the extraction top center.
Also speed up ExtractMaterial for the common case of no required horizontal shifts.
2015-05-01 18:13:41 +02:00
Sven Eberhardt
00b0a6f52d
Add Find_InArray to docs for FindObject(s) and ObjectCount.
2015-04-28 21:14:24 +02:00
Sven Eberhardt
116a5b4ae6
Add Find_InArray ( #1073 ).
2015-04-28 18:59:50 +02:00
David Dormagen
d077d3343e
reworked bucket & producer library to work with stackable earth objects instead of magic material amounts
2015-03-26 12:27:10 +01:00
David Dormagen
dae7f11a70
custom GUIs: added property GraphicsName to specify graphics of Symbol (if Symbol is a definition)
...
f.e. {Symbol = Icon_Number, GraphicsName = "Inf"}
2015-03-23 15:34:09 +01:00
David Dormagen
fa5257328c
documented the additional features of CustomMessage
2015-03-23 14:29:31 +01:00
Maikel de Vries
ee0bc7b7ff
introduce a constant for no category
2015-03-02 20:42:34 +01:00
Sven Eberhardt
12d4fbb51b
Fix documentation on new_color parameter in Layer.SetPixel to include option to set it as string.
...
e.g. SetPixel(x, y, "Granite") is possible.
2015-03-01 21:06:18 +01:00
Sven Eberhardt
86b2dbb2ca
Document light material property.
2015-01-28 22:37:59 +01:00
Maikel de Vries
237a88ce41
fix typo which makes docs compile again
2015-01-19 16:02:00 +01:00
Sven Eberhardt
cf9aca70fe
Add callback EditCursorMoved.
2015-01-17 20:53:45 +01:00
Sven Eberhardt
c00d8c7a4d
Add next_selection parameter to EditCursorDeselection.
...
If an object is deselected due to a new object selection, that newly selected object is passed as next_selection.
2015-01-17 20:37:54 +01:00
Sven Eberhardt
f0cbe45afb
Remove mention of "fire monsters" from docs.
...
Since, sadly, we don't have those :(
2015-01-17 18:10:56 +01:00
David Dormagen
bd04722553
Merge branch 'master' into Controls
...
Conflicts:
planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Constructor.ocd/ConstructionMenu.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Constructor.ocd/Script.c
src/game/C4GraphicsSystem.cpp
src/game/C4GraphicsSystem.h
src/game/C4Viewport.cpp
src/gui/C4GameMessage.cpp
2015-01-15 19:57:01 +01:00
Maikel de Vries
4ea0cb0ca6
make ContainBlast a property instead of DefCore entry
2015-01-15 17:46:53 +01:00
Sven Eberhardt
b2501ed0e5
SetPlrKnowledge(nil, ...) sets/removes knowledge for all players ( #1236 )
...
Useful e.g. for ingame scripting when you want to grant extra construction plans. Additionally, this kind of behavior is known from some other functions with per-player parameters like e.g. Sound().
2015-01-14 00:36:44 +01:00
Mark
f9369f9eb4
Different implementation of CreateObject() ( #1214 )
...
CreateObject() now does not reposition an object after it has been created, but rather grows it around the center of said object.
To that end a new parameter has been added to DoCon() and SetCon() and the documentation has been updated.
2015-01-13 21:03:27 +01:00
Mark
850bf1b9d4
CreateObject/CreateObjectAbove ( #1214 )
...
Renamed CreateObject() to CreateObjectAbove() and replaced all occurrences in script files.
Added CreateObject(), the function may need a rewrite though, see comment in code.
Updated documentation
2015-01-11 19:02:03 +01:00
Maikel de Vries
afed995e37
added missing Folder.txt documentation ( #1187 )
2015-01-10 08:44:02 +01:00
Mark
10b343dba9
Append and include skeletons ( #1180 )
...
Appending and including skeletons works now. Documentation updated.
Skins such as appendto.Clonk.Farmer.skeleton are handled as if the skin name were not included: appendto.Clonk.skeleton
This also changes a bit the structure of how meshes are reloaded in general,
in particular mesh materials are only reloaded once and not once per
C4DefGraphics instance. (Fix crash on reload with included skeletons, cherry picked from commit 2f69aa4850ab7a4b621e5f30cbc537d40f32c0df)
Fix linking of C4Script standalone tool (cherry picked from commit b03a332b73463b378c94e4e92b66d45b923b3b9c)
2015-01-06 18:25:08 +01:00
Mark
b5560dff25
Documentation for C4V_Def ( #1215 )
2015-01-06 00:19:51 +01:00
Tobias Zwick
53defbc6f9
document ShakeViewport and change remaining references to SetPlrViewRange to SetLightRange
2015-01-04 22:09:01 +01:00
Sven Eberhardt
42b9ca4577
Add custom EditCursorCommands available in editor context menu.
...
Example: this.EditCursorCommands = ["Explode(20)"] on an item will offer a menu entry to explode the object. Commands may be either strings or function pointers, but function pointers will always be called by name.
2015-01-03 23:21:36 +01:00
Tobias Zwick
f5ecd4776d
new function SetLightRange (replaces SetPlrViewRange)
2015-01-02 01:06:00 +01:00
Armin Burgmeier
2f08918393
Add FoWEnabled entry in Scenario.txt [Game] section ( #1178 )
2014-12-29 12:29:43 +01:00
David Dormagen
f89b8c8319
Merge branch 'master' into Controls
...
Conflicts:
planet/Objects.ocd/Environment.ocd/Cloud.ocd/DefCore.txt
planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Constructor.ocd/ConstructionMenu.ocd/DefCore.txt
planet/Objects.ocd/Libraries.ocd/PowerConsumer.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/PowerProducer.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Producer.ocd/Script.c
planet/System.ocg/ClonkControl.c
src/gui/C4MouseControl.cpp
src/landscape/C4PXS.cpp
2014-12-25 15:24:19 +01:00
Armin Burgmeier
5bb8b48e5d
Update documentation for custom shaders
2014-12-22 22:58:09 +01:00
Tobias Zwick
4981182cf8
Merge remote-tracking branch '_origin/master' into lights
...
Conflicts:
src/c4group/C4Components.h
2014-12-15 21:16:40 +01:00
Sven Eberhardt
4bdd470d13
Added GetPXSCount to docs.
2014-12-09 23:37:38 +01:00
Mark
3971d60614
Match partial skeletons ( #1177 )
...
When using AttachMesh() with the flag AM_MatchSkeleton the behaviour was changed. The child mesh no longer uses the transformation of the bone in the parent skeleton by order, but by name.
2014-12-07 01:11:04 +01:00
Sven Eberhardt
baf05264d1
Implement music fading.
...
Moved music system execution from game tick execution into main application execution so music fading works when the game is paused or lagging.
2014-12-06 18:04:55 +01:00
Sven Eberhardt
62e6da2f23
Add categories for .ogg music files that can be referenced in SetPlayList.
2014-12-06 00:06:08 +01:00
Mark
0e9c0e9be4
AttachMesh with added functionality ( #1177 )
...
Simple implementation of matching skeletons/animations. Short description added to the documentation. More functionality to follow.
2014-12-03 20:05:36 +01:00
Armin Burgmeier
a206531534
Add documentation for the Normal.png file
2014-11-25 12:47:57 -05:00
Armin Burgmeier
db6df15377
Add SetAmbientBrightness and GetAmbientBrightness script functions
2014-11-20 17:07:31 -05:00
Armin Burgmeier
88f8f75441
Add ambient lighting
...
This introduces a new texture, an ambient light map, that is generated
automatically at the beginning of the round by the sky portion of the
landscape. This basically makes everything that is close to sky visible
by default.
The shaders have been adapted so that they deploy direction-independent
lighting for the ambient component, and the current (diffuse) behaviour
for the diffuse component. This makes the shaders use an additional
texture unit that represents the ambient light. We can think about merging
this information into the light texture, but the coordinate systems are
different at the moment, so this could be performed at the stage of light
texture generation.
For meshes, the ambient material is not actually used, but instead a
diffuse light from the front is used. This makes many meshes look more
interesting, maybe also because the ambient material setting of most
meshes are not set correctly at the moment.
2014-11-17 09:35:50 -05:00
Armin Burgmeier
219fa8597c
Implement light calculations for meshes
2014-11-06 15:56:19 -05:00
Armin Burgmeier
ecc6251f97
Documentation for custom shaders
2014-10-21 17:19:05 -04:00
Maikel de Vries
237eb98ed9
docs: fix link to GetPlayerColor
2014-10-20 22:34:55 +02:00
David Dormagen
c09e9880e2
Merge branch 'master' into Controls
...
Conflicts:
planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c
2014-10-13 18:54:05 +02:00
David Dormagen
a8690f0b31
documented the GUI system
2014-10-13 18:35:51 +02:00
Armin Burgmeier
cbdc6040e7
Add the Anim_Dist AVP
2014-10-09 17:00:26 -04:00
Maikel de Vries
8d5d4715fe
remove physical documentation
2014-10-04 09:22:10 +02:00
Sven Eberhardt
91800fcfec
Implement setting for forced values of parameters in league games.
2014-10-03 14:02:28 +02:00
Sven Eberhardt
3fc1f02c6d
Implement custom scenario parameter selection in startup scenario selection dialogue and by command line.
2014-09-27 16:05:32 +02:00
Sven Eberhardt
abab7be591
Added scenario achievements displayed as small symbols beside the scenario name in the startup selection screen.
...
They can be used e.g. to show that you have finished a scenario on different difficulty levels.
2014-09-24 23:08:40 +02:00
Sven Eberhardt
378bda5546
Added custom scenario parameters (SCENPAR_*).
...
Can currently only be set in network games in the lobby. In the future, maybe we can find a place somewhere in the scenario selection dialogue.
2014-09-23 23:02:52 +02:00
Sven Eberhardt
37bf5d3bb8
Fix parameter documentation of PV_Sin.
2014-09-12 01:02:10 +02:00
Sven Eberhardt
9dd600c26b
Add player parameter to SetPlayList ( #1084 )
2014-08-07 17:33:36 +02:00
Sven Eberhardt
5cd9b915b0
Added some dialogue functions and speaker portraits. UpdatedAddMenuItem and CustomMessage to allow more customization for picture graphics.
...
I would prefer to render the models for speaker portraits directly. However, it seems like it's not currently possible to clip or render models to offscreen surfaces.
2014-07-05 15:25:30 +02:00
Sven Eberhardt
4556cb4890
Add particle value provider function PV_Sin
2014-06-30 01:00:15 +02:00
Sven Eberhardt
6744ed942a
Fix PlaceObjects material parameter description and example. ( #1083 )
2014-06-14 11:01:01 +02:00
Sven Eberhardt
488044f266
Added script function GetPlayerZoomLimits ( #1071 ).
2014-05-11 11:10:13 +02:00
Sven Eberhardt
893d5e87da
Implement PLRZOOM_Set flag to allow setting current zoom and limits in the same call.
2014-05-11 10:30:41 +02:00
Sven Eberhardt
91db5d33c2
Added SolidMaskPlane property.
...
If an object moves and other objects are attached to its SolidMask, only objects in front of this plane are moved along with it. Defaults to Plane if zero.
2014-05-04 14:16:46 +02:00
Clonkonaut
3d224c1207
Added new callback: DugOut(object object_by).
...
Called in a new object that is created from digging out material.
2014-05-01 01:04:41 +02:00
Clonkonaut
4d05a01920
Documentation added for DigOutObject callback.
2014-05-01 00:58:11 +02:00
Apfelclonk
d1170374d0
Document PathFree2 and CoordinateSpace
2014-04-26 19:22:02 +02:00
Sven Eberhardt
cd4b3610da
Add script function SetPlayerZoom to set zoom factors directly instead of by view range ( #1065 )
2014-04-21 19:38:05 +02:00
Sven Eberhardt
1d0ebcd3a3
Added mode TopOpen=2: Pixels above landscape are partly free and partly solid depending on corresponding top row map IFT. Analogous to BottomOpen=2.
2014-04-21 02:01:17 +02:00
Sven Eberhardt
662cb599c2
fix script errors in docs example
2014-04-20 19:32:35 +02:00
Sven Eberhardt
4266b370d6
Added script functions SetLeagueProgressData, GetLeagueProgressData, GetLeagueScore and SetLeaguePerformance.
2014-04-20 15:33:36 +02:00
Sven Eberhardt
59c59dd072
Add missing documentation for LogCallStack().
2014-04-19 22:34:24 +02:00
Sven Eberhardt
445d759a72
Change == and != to do pointer comparison on arrays and proplists (formerly === and !==). Remove === and !=== and introduce function DeepEqual for contents comparison.
...
There have been some bugs and crashes related to unwanted deep comparison (e.g. in the maze scenario). Scripters very rarely need deep comparison, so it should not be the default for the most commonly used operator.
This also changes behaviour of GetIndexOf to do pointer comparison.
This change has Guenther's seal of approval.
2014-04-19 22:33:31 +02:00
Günther Brammer
04e1c74c05
Merge Call fix commit
2014-04-19 19:02:27 +02:00
Günther Brammer
22016e075f
Replace some usages of C4ID with C4Def*
...
In particular those that made the c4script shell depend on C4Id.cpp.
2014-04-19 19:02:22 +02:00
Sven Eberhardt
50a5862b7a
Store modified mesh material assignments in saved scenarios.
2014-04-18 14:20:10 +02:00
Sven Eberhardt
e704cd2ecb
GetMeshMaterial called from definition context now returns default mesh materials.
2014-04-18 14:10:12 +02:00
Maikel de Vries
47fa8ef4a1
Implemented SetBase* for BaseMaterial library
2014-04-17 18:01:18 +02:00
Maikel de Vries
9b96ab2305
Cleaned up base material in library and engine
...
* rename to cleaner *Base* instead of *HomeBase*
* fixed library implementation
* engine code is now obsolete
2014-04-16 14:07:01 +02:00
Clonkonaut
7895caacd1
Changed link from GetViewMode to GetPlrViewMode ( #1050 ).
2014-03-24 23:53:46 +01:00
David Dormagen
6b25e54f0b
PV_Step: added "maximumValue" parameter
2014-02-18 20:37:43 +01:00
David Dormagen
b533d3b390
particles: minor documentation fixes
2014-02-18 20:37:16 +01:00
David Dormagen
bc9b5c8bd7
added documentation for PV_Gravity
2014-02-18 19:13:51 +01:00
Tobias Zwick
1ed6521565
fix typo in documentation ( #1023 )
2014-02-01 19:51:44 +07:00
Tobias Zwick
6d98caaa5f
fix some documentation bugs
2014-01-22 14:00:05 +07:00
Tobias Zwick
4472ce3243
add documentation for a few undocumented functions
...
GetMatAdjust, GetTexture, GetAverageTextureColor
2014-01-22 13:59:03 +07:00
Tobias Zwick
266540fc76
add documentation for BlastFree
2014-01-22 13:01:45 +07:00
Sven Eberhardt
57463b61c4
Rework SolidMasks to be defined in a separate SolidMask.png graphics file instead of the main definition graphics.
2014-01-08 01:55:33 +01:00
Sven Eberhardt
dd0438b55d
Added helper function LogCallStack.
...
Useful when you need a stack trace but don't want to break execution flow.
2014-01-04 14:22:41 +01:00
Sven Eberhardt
e157b1b673
Docs: Renamed GetPlrColor to GetPlayerColor.
2013-12-29 22:34:11 +01:00
Sven Eberhardt
49b2c75475
Added helper function Particles_Colored - creates a colored version of a base particle.
2013-12-29 15:08:52 +01:00
Sven Eberhardt
a385102c36
Changed GetDefBottom to use bottom vertex to determine object bottom.
...
Since this is the method also used by CreateObject, GetDefBottom can be used to recreate objects at their proper position.
2013-12-27 17:11:02 +01:00
Sven Eberhardt
5094cc5c1b
Reworked "Save as scenario" option in editor to write a script file instead of Game.txt.
2013-12-27 17:10:09 +01:00
David Dormagen
a10c9316ef
renamed DynamicParticles* to Particles* and CreateParticleEx to CreateParticle
2013-12-17 22:32:01 +01:00
David Dormagen
02f54ba1eb
removed the legacy particle system from the engine and docs
2013-12-17 22:32:01 +01:00
Tobias Zwick
325053410f
rename script callback UpdateTransferZone to OnSynchronized ( #220 )
2013-12-17 23:16:11 +07:00
Tobias Zwick
3587c34e39
fix documentation ( #848 )
2013-12-17 22:20:26 +07:00
Tobias Zwick
dd3de2f0c9
Merge branch 'issue-251'
2013-12-09 21:45:54 +07:00
Tobias Zwick
9ffad10d51
add note to documentation of FinishCommand ( #390 )
2013-12-05 10:39:26 +07:00