Commit Graph

10996 Commits (13f082e8c8a3e22c7f61dffb49f322b641665a5a)
 

Author SHA1 Message Date
Nicolas Hake a5b3e17352 C4Object: Remove numbered locals
Also removed some undocumented function hardcoded for Lhûnrim(?).
2009-07-22 18:31:34 +02:00
Nicolas Hake 496e795577 C4Object: Line data now properties
For objects with Line set, color is now stored
as an array [LineColor, VertexColor] in the property
LineColor.
If Line==C4D_Line_Vertex, the vertices of the target objects
that the line attaches to is also stored as an array [Target0Vtx,
Target1Vtx] in the property LineAttach.
2009-07-22 18:24:07 +02:00
Nicolas Hake ab5da9cc3f C4Object: Make parallaxity a property
Instead of Local(0) and Local(1), parallaxity is now stored
as an array in the property "Parallaxity" of an object.
2009-07-22 18:03:33 +02:00
Nicolas Hake c511615376 C4Object: Visibility made a property
Accordingly, SetVisibility and GetVisibility have been removed.
Specify visibility like obj->SetProperty("Visibility", VIS_Allies).
VIS_Local has been renamed VIS_Select and uses an array:
obj->SetProperty("Visibility", [VIS_Select, Plr0Visible, Plr1Visible, ...])
where Plr*Visible are of type bool.
2009-07-22 16:31:09 +02:00
Tobias Zwick 0efc4bd8df merge 2009-07-22 16:26:38 +02:00
Günther Brammer 51179151ff Add Copyright and license to C4PropList 2009-07-22 16:15:18 +02:00
Tobias Zwick ebcf5328c5 more cleanup 2009-07-22 15:38:31 +02:00
Tobias Zwick 7155e38ecb more cleanup 2009-07-22 15:27:49 +02:00
Günther Brammer efb73a1c2f C4Script: Remove Var and Global for good 2009-07-22 15:03:43 +02:00
Nicolas Hake a36f317798 C4Script: AddMenuItem now correctly handles iParameter == nil 2009-07-22 14:10:59 +02:00
Nicolas Hake 9c59007af4 Removed obsolete C4Script functions, moved others to System.c4g
Functions moved to System.c4g:
ExtractLiquid, FlameConsumeMaterial, LaunchEarthquake,
LaunchLightning

Functions removed:
LaunchVolcano, Var, SetVar, IncVar, DecVar, SetLocal, SetGlobal,
ObjectCall, Set, Inc, Dec, GetColor, SetColor

Functions renamed:
GetColorDw -> GetColor
SetColorDw -> SetColor
GetPlrColorDw -> GetPlrColor
2009-07-22 08:48:39 +02:00
Nicolas Hake c7b8eee8b4 Dynamite: Actmap to proplist 2009-07-22 05:59:21 +02:00
Nicolas Hake 15e00a5cfe Remove DirectorySeparators from StdFile.h to avoid warnings 2009-07-22 05:12:30 +02:00
Nicolas Hake b255abdd03 Fix undefined pointer returns from C4GameObjects::ObjectPointer 2009-07-22 03:28:21 +02:00
Nicolas Hake d424f946d6 Script: Remove Cast* functions 2009-07-22 02:15:57 +02:00
Nicolas Hake afe97b4171 Fix MSVC build 2009-07-22 02:49:45 +02:00
Günther Brammer f6b8d88a66 Update CMake build
The proplist branch predates the CMakeLists.txt.
If I had changed the Makefile.am today, I would have remembered to test a cmake build, honest!
2009-07-21 17:53:30 +02:00
Nicolas Hake 8fc2d2770f C4Sector: Output meaningful messages on assert 2009-07-21 15:13:08 +02:00
Nicolas Hake b8b87136fe Request correct winsock version
WSAStartup first parameter: The high-order byte specifies
the minor version number; the low-order byte specifies the
major version number.
2009-07-21 15:12:10 +02:00
Günther Brammer 893cd20109 Merge branch 'proplist' 2009-07-21 16:46:39 +02:00
Günther Brammer 81686d441e C4Value((long)foo) doesn't always work because int32_t can be an int. 2009-07-21 15:22:51 +02:00
Günther Brammer 2c56657a41 Merge branch 'landscape' 2009-07-21 15:22:07 +02:00
Günther Brammer cec561796b Fix build with gcc and/or autotools and/or mingw 2009-07-20 22:29:48 +02:00
Nicolas Hake 03f01a6129 Use operator void* to allow use of C4Value in conditionals 2009-07-20 23:45:31 +02:00
Nicolas Hake 02a06bb4f7 Consolidate C4V_Nil and C4V_Any
Any is now guaranteed to be 0.
2009-07-20 23:04:29 +02:00
Nicolas Hake 3a4fa70558 Make C4Command use C4Value as Data parameter 2009-07-20 22:42:38 +02:00
Nicolas Hake aa744e69d8 Explosion: Use nil instead of 0 where appropriate 2009-07-20 22:41:22 +02:00
Nicolas Hake 6de5cb8bd0 C4Value: Fix memory leak in ctor 2009-07-20 18:22:27 +02:00
Nicolas Hake 40c9ef1102 Win32 readme: MSVC Professional not needed anymore 2009-07-20 00:22:20 +02:00
Armin Burgmeier 5b033036fc Apply transformation to mesh renderings 2009-07-18 21:36:08 -04:00
Nicolas Hake 383b263181 C4Aul: Add new type 'nil'
Adds a new type representing 'no value' as well as a
keyword
'nil' for accessing this type from script.
nil is not equal to any value that is not nil itself.
GetType(nil) returns C4V_Nil.
2009-07-17 04:50:50 +02:00
Felix Wagner 7ab01aac9c how to start msys correctly 2009-07-18 04:59:22 +02:00
Nicolas Hake dc38d170b8 Backed out changeset 43758a4bd64f (StdBuf->std::string)
Change introduced some weird segfaults in g++ builds.
2009-07-15 19:12:01 +02:00
Tobias Zwick 10e6174b1f FadeDelay for longer-lasting particles 2009-07-15 15:41:03 +02:00
Tobias Zwick 1bb6778403 Cleanup: Docs update for FindObject, more funcs deleted 2009-07-15 15:17:37 +02:00
Tobias Zwick 379bb5b882 Syntax fix & Dynamite fix 2009-07-15 14:50:46 +02:00
Tobias Zwick ba971abc22 Cleaning up: removing obsolete functions and its documentation (part 2) 2009-07-15 14:42:48 +02:00
Tobias Zwick e74c484aa9 Cleaning up: removing obsolete functions and its documentation 2009-07-15 14:41:34 +02:00
Tobias Zwick 4b3357dfd7 The explosion is even a little bit more beautiful (with sparks) ;-) 2009-07-15 12:05:03 +02:00
Tobias Zwick 7375aa4f2e Dynamite from szen.c4s (completely rescripted though) and spark from Hazard 2009-07-15 02:00:26 +02:00
Tobias Zwick fe1fa8e729 renewed explosion: volume-smoke, Hazard-smoke-trails, a little bit better explosion graphic 2009-07-14 18:50:05 +02:00
Nicolas Hake 7b1f240aaa SEGV removed that stemmed from memset(3)ing over StdStrBuf 2009-07-14 16:48:53 +02:00
Günther Brammer 399ea170ac Revert "Removed autotools and anjuta build files"
CMake does not support anjuta, so I still need those. We should probably share the file
lists, though.
2009-07-13 21:24:30 +02:00
Armin Burgmeier 76bc924f46 Take zoom into account when rendering a mesh 2009-07-12 19:06:31 +02:00
Armin Burgmeier bbc8fa98db Added animations for mesh objects 2009-07-12 16:27:04 +02:00
Armin Burgmeier 8501d99173 Require a depth buffer size when choosing the glx visual 2009-07-11 21:43:49 +02:00
Armin Burgmeier 3760771ee5 Read material alpha components in the way clonk needs them 2009-07-11 12:36:53 +02:00
Armin Burgmeier 41f5a3d069 Added Monster as a test object 2009-07-11 01:11:29 +02:00
Armin Burgmeier 01f2da1366 Allow objects to use a mesh instead of pixel-based graphics 2009-07-11 01:10:18 +02:00
Armin Burgmeier a3f1ccf66e Fixed mesh loading 2009-07-11 01:09:48 +02:00