Maikel de Vries
5e456cda8a
flag marker category none
...
This ensures no interactions with other objects, also note a Plane needs to be set for a C4D_None object.
2015-03-02 20:46:48 +01:00
Maikel de Vries
d2988163f5
fix flag marker redrawing on owner change
2015-02-16 17:17:18 +01:00
Maikel de Vries
49997045f6
fixed burned wind generator radiusin Mine Rescue
2015-02-16 14:17:05 +01:00
Maikel de Vries
a5b6066f25
fix removal of ownership on flag movement
2015-02-14 00:16:32 +01:00
Maikel de Vries
de8ee9d840
fix flag removal effect on power network
2015-02-11 22:42:35 +01:00
Maikel de Vries
cba73bafca
implement flag ownership and network change on team switch and hostility change
2015-02-11 00:02:45 +01:00
Maikel de Vries
7f79caade5
flag library: fix on owner change and clean up
2015-02-09 19:32:15 +01:00
Maikel de Vries
e47a08aaf7
clean up more flag related libraries
2015-02-08 15:28:13 +01:00
Maikel de Vries
37eb7a0095
make flag marker id consistent with other libraries
2015-02-08 13:35:26 +01:00
Maikel de Vries
f2794d335f
move ownable library into flag group
2015-02-08 13:35:26 +01:00
Maikel de Vries
ce37dc181e
clean up of the flag library
...
This might have fixed the appearance of flag markers at the flag's center.
2015-02-08 13:07:56 +01:00
Maikel de Vries
1336bb36ee
libraries clean-up: remove graphics and clean defcores
2015-02-06 19:44:22 +01:00
Maikel de Vries
97900a1278
libraries: remove power system before ownership
2015-02-04 10:35:16 +01:00
Maikel de Vries
9d0e079d7d
power library local variables in a single proplist
...
This prevents clashes, all libraries could use a single proplist named lib_*
2015-02-04 10:35:15 +01:00
Maikel de Vries
eec38a9f17
reimplement power network handling by the flag library
2015-02-04 10:35:14 +01:00
Maikel de Vries
2d00588dff
new power system (work in progress)
2015-02-04 10:35:14 +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
c6802b8776
increase game content version entries to 6.0
2014-12-12 22:58:16 +01:00
Maikel de Vries
f05c5a3439
move ownership radius on movement of the flag
2014-10-20 20:27:14 +02:00
Maikel de Vries
b2daf0453d
power producers which include flag library are not staticback any more
2014-10-20 18:56:13 +02:00
Sven Eberhardt
e7ac00de4b
Added BaseRespawn rule and neutral flagpoles to be used for consistent respawn handling in all missions.
...
Also changed clonk destruction process to always kill player clonks before removal. This simplifies handling of death e.g. when clonks are contained in an object that falls out of the map.
BaseRespawn adapted from Maikel's base melee repository.
2014-09-22 19:21:28 +02:00
Maikel de Vries
66f8454b67
allow for constructing just below surface
...
Useful for basements and maybe also other structures in the future.
2014-05-26 21:28:07 +02:00
Sven Eberhardt
e52fac76e3
Fix some null pointer errors in power system when objects are destructed.
2014-01-03 19:43:14 +01:00
Sven Eberhardt
649e06039f
Fix null pointer in power helper object when power plant is destructed.
...
The power system isn't written in a very failsafe way when it comes to object destruction. Why are "helper objects" needed now that we have proplists to store such things?
2013-12-29 14:44:14 +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
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
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
Sven Eberhardt
58a0bf1c24
Flagpole construction: Show arrows pointing to neighboured flags that would be connected if the flagpole were built there.
...
Allows the player to build his base more efficiently.
2013-06-22 20:01:51 +02:00
David Dormagen
de0b22ec1b
removed ColorByOwner entry of the flag-marker to suppress warning
2013-05-26 15:21:16 +02:00
Sven Eberhardt
aeeedcd770
Fix script errors in scenarios that don't load Objects.ocd
2013-03-19 19:27:19 +01:00
Sven Eberhardt
b8753d64f6
Fix flag ownership change to allies when original owner dies.
...
Change OnOwnerRemoved engine callback to also pass the ally selected as successor for the dead player.
The flag had a callback OnOwnerChange implemented. However, we already have OnOwnerChanged in the engine to do the same thing.
2013-03-02 23:38:29 +01:00
Sven Eberhardt
c3ad022a25
Skylands made a bit easier
2012-12-02 21:33:17 +01:00
Charles Spurrill
c838ccae94
Fixed flag markers not fading out
2012-10-27 22:05:23 -07:00
David Dormagen
e0d9a682e6
flag is now static-back on construction; no falling down anymore
2012-10-13 22:42:41 +02:00
David Dormagen
8fb926bc0a
flag can reset marker's color correctly
2012-07-13 22:32:09 +02:00
David Dormagen
79928b4692
flag library: SetFlagRadius now behaves correctly in regards to area markers
2012-06-17 21:37:41 +02:00
Tobias Zwick
cdaabca574
deleted descriptions for libraries
2012-04-15 13:13:41 +02:00
Tobias Zwick
038ef1b4b6
descriptions for structures
2012-04-15 13:13:14 +02:00
Martin Plicht
a4194c22e9
Replace 0 with nil wherever string/object/array is expected
2012-04-12 11:48:23 +02:00
Felix Wagner
bf795164f2
Resolved all warnings due to global function in included scripts.
2012-04-03 02:12:44 +01:00
David Dormagen
4169a9232c
swapped parameters of GetIndexOf
2012-02-25 21:57:39 +01:00
David Dormagen
e9bf6a3096
fixed the flag when constructed before using the power system
2012-02-19 00:49:13 +01:00
David Dormagen
5cbaa697f0
changed power system to transfer power freely in a base and get rid of power lines
...
power now is either available or not - there is no "produce X power and save it somewhere" anymore
2012-02-18 22:50:18 +01:00
David Dormagen
9be1e3beda
first flag changes in order to support power flow
2011-12-28 18:50:32 +01:00
Maikel de Vries
59c1aefad9
Objects: All Versions to 5,2,0,1
2011-10-01 10:54:15 +02:00
Maikel de Vries
e2db1bc85a
Actions default to COMD_Stop, Decel for float and swim procedures
...
With this change everything should behave as normal, still not a fan of these numerous float hacks.
2011-07-06 19:11:12 +02:00
MimmoO
256ffd869e
Flag: Changed Marker visuals
2011-06-29 00:35:28 +02:00
David Dormagen
53e743b4d0
first version of flagpole and flag-libraries added
2011-06-18 15:22:34 +02:00