Günther Brammer
b9cf00d824
Script: obj->~foo() cannot have whitespace between -> and ~ anymore
...
This slightly simplifies the parser, as ->~ is now one token and ~ does not
double as binary not and call failsafety indicator.
2011-02-19 22:18:27 +01:00
Günther Brammer
16511790a9
Script: Do not disguise '.' and '=' as unrecognized tokens
2011-02-25 18:12:36 +01:00
Günther Brammer
f3af290c26
objects: Use Planes to separate objects before and behind the landscape
...
Instead of maintaining an extra object list just for the objects behind the
landscape.
2011-02-19 00:44:54 +01:00
Günther Brammer
a63851592c
docs: Plane and Parallaxity
2011-02-18 23:37:13 +01:00
Maikel de Vries
637e69b8da
C4ObjectCom: Removed obsolete Object*Build
2011-02-20 21:02:51 +01:00
Maikel de Vries
78ce3da206
C4Def: Removed unused entries NoSell and Rebuy and adapted Library_Base
...
These are implemented in C4Script and have no function in the engine, also fixed var a; a++;
2011-02-20 20:59:50 +01:00
Maikel de Vries
1ac17be41a
Objects: Fix hammer such that buildings can be build again
...
This is not an optimal solution but it will do for now.
2011-02-19 00:09:26 +01:00
Maikel de Vries
07f51a5cb3
Objects: Prevent clonk from swimming in solids
2011-02-19 00:08:29 +01:00
Günther Brammer
39276c6fd1
Check all pointers to PropLists in c4values in debug engines
...
This can find some refcounting errors by verifying that the proplist did
not get deleted before it is used.
2011-02-06 22:30:31 +01:00
Maikel de Vries
edbf5519c3
Objects: Added resource extraction goal
2011-02-06 18:25:34 +01:00
Julius Michaelis
1988ec6e8d
docs: Removed orphaned ObjectCall-Funclinks.
2011-02-17 12:08:57 +01:00
Maikel de Vries
886baebaf1
Script: Fixed SetGraphics for non specified source definition
2011-02-16 16:58:43 +01:00
MimmoO
6f822fad71
Scorched Gardens: fix losing all items on death
2011-02-15 18:55:21 +01:00
Günther Brammer
75dc49e746
Replace Objects.ObjectNumber with C4PropListNumbered::CheckPropList
...
There's no need to go through the entire object list to get an object
number, so convert most usages of ObjectNumber(obj) with obj->Number. Add a
new method to check proplist pointers for debugging purposes to
C4PropListNumbered.
2011-02-06 01:59:49 +01:00
Günther Brammer
a7615ddced
Make C4PropListNumbered global data static members of the class
...
Previously, this was in ::Game and ::Objects. Both classes still work on
that data, but not as much as before.
2011-03-05 03:32:51 +01:00
Günther Brammer
f4ee636072
Remove some redundant Default methods
...
Using the same method for the constructing and clearing an instance just
leads to leaks and subtle bugs.
2011-03-05 03:24:11 +01:00
Günther Brammer
01e9dce9ce
Store C4ComponentHost filenames in StdCopyStrBufs
2011-03-05 02:45:27 +01:00
Günther Brammer
8ff6ae847c
C4Group::LoadEntry takes pointer instead of non-const reference
2011-03-05 02:44:26 +01:00
Günther Brammer
28a154dcdf
Drop unused third C4LangStringTable::ReplaceStrings parameter
2011-03-05 01:05:36 +01:00
Günther Brammer
609b9bbe93
Fold C4ComponentHost::Default() into C4ComponentHost::C4ComponentHost()
2011-03-05 01:03:09 +01:00
Günther Brammer
6eebaeaac8
Fold C4AulScript::Default() into C4AulScript::C4AulScript()
2011-03-04 15:20:21 +01:00
Günther Brammer
60dcd65708
Languages.GetPackGroup creates a new GroupSet containing the original group
...
Just moves some code from C4ComponentHost to C4Language.
2011-02-07 03:37:35 +01:00
Martin Plicht
b82c8dc59e
cocoa: Fix compilation
2011-02-05 21:35:18 +01:00
Martin Plicht
9ff63b25d7
editor: cocoa: Enable/Disable some more user interface controls when game running/closed
2011-01-29 09:05:04 +01:00
Martin Plicht
6d711b1fe4
editor:cocoa: Fix viewport scrollbars when zoomed
2011-02-15 12:45:55 +01:00
Martin Plicht
b7a542089b
cocoa: Don't update opengl context in drawRect:
2011-01-26 17:11:02 +01:00
Martin Plicht
c887878af9
editor:mac: Increase/Decrease Zoom command
2011-01-26 17:09:48 +01:00
Charles Spurrill
ffbd30148e
Another teleglove update:
...
-Objects grabbed by teleglove cannot be grabbed by another player's teleglove
-Objects thrown by a teleglove can are unable to be grabbed by other player's telegloves for 5 seconds
-Proper killtracing
2011-02-14 12:52:47 -08:00
Maikel de Vries
c5b2c17962
Objects: Added killtracing to tele glove
2011-02-14 21:17:45 +01:00
Maikel de Vries
5d6d0f2f7f
Objects: Moved deathmatch goal to right location, cleaned up defcore
...
This object still needs a goal image.
2011-02-14 18:18:17 +01:00
Richard Gerum
7642223ecd
bubbles while diving are now spawned at the position of the clonk's head
2011-02-13 23:02:51 +01:00
Richard Gerum
4f33b35a7c
added splash effects for swimming
2011-02-13 22:42:15 +01:00
Günther Brammer
20d902ec38
Merge
2011-02-13 22:09:34 +01:00
Günther Brammer
ae38a7d929
Fix "Savegames: Skip Proplists and Objects that have a duplicate number"
2011-02-13 22:07:29 +01:00
Günther Brammer
c667de49b5
Script: Crash when parsing a function call with more than ten parameters
2011-02-12 20:24:52 +01:00
Julius Michaelis
922691bafb
netpuncher/cmake: Fix MSVC build
2011-02-12 15:27:07 +01:00
Julius Michaelis
b6ce47ebcd
mercurial: hgignore update
...
merge
2011-02-13 20:35:48 +01:00
Tobias Zwick
931429102b
ControlUseStop can now return -1 to keep that object as used object (part of #483 )
...
No more use-callbacks to that object are made except for ControlUseCancel. The musket now returns -1 for this.
2011-02-13 21:49:02 +01:00
Tobias Zwick
1779673e40
fix: usage of item is cancelled if (another) item is thrown
2011-02-13 21:37:58 +01:00
Günther Brammer
a3ec7b5ae2
Put Objects.txt directly into the savegame instead of into a temporary file
2011-02-12 01:19:01 +01:00
Günther Brammer
45fa20617c
Load definition stringtable before definition script
...
This allows for a slight simplification of the ScriptHost API, as only the
definitions made the ScriptHost load the stringtable for them.
This changes the sortorder of definitions, but C4Update should be able
to make the necessary changes to the release groups.
2011-02-07 02:18:24 +01:00
Günther Brammer
7be90977bf
Make C4ScriptHost have a C4ComponentHost member instead of inheriting
...
Previously, C4ScriptHost needlessly derived from two classes.
2011-02-06 21:37:19 +01:00
Günther Brammer
489ae8c5b3
Remove unused C4ComponentHost::Name and LoadAppend
2011-02-06 21:31:33 +01:00
Günther Brammer
561c80fd91
Savegames: Skip Proplists and Objects that have a duplicate number
...
Such savegames are broken anyway, any possible repair methods just
heuristic.
2011-02-05 23:11:02 +01:00
Günther Brammer
e4ef7e3d98
Replace C4VID with C4VPropList
...
Most callsites use C4Id2Def instead, but for some a def->id->def
indirection could be removed.
2011-02-05 23:09:09 +01:00
Günther Brammer
28be8dbcfd
Remove some C4Id2Def(def->id) indirection
2011-02-05 11:34:25 +01:00
Günther Brammer
608040e7e5
docs: AddEffect return a proplist
2011-02-13 20:34:05 +01:00
Günther Brammer
c48eba44b5
docs: Start a page with a list of object properties
2011-02-06 00:41:29 +01:00
Charles Spurrill
38d322e79f
Teleglove fixes and improvements:
...
-lower the mass while the object is dragged (so that you have to throw the objects to deal damage)
-lower the radius of the particles of the glove when object is grabbed
-the glove should not change focus, if you hold object A and the cursor hovers over object B it should not suddenly grab B
2011-02-12 14:47:27 -08:00
MimmoO
32a6b7da52
ScorchedGardens: Seome Grass changes
2011-02-12 23:42:25 +01:00