Commit Graph

205 Commits (master)

Author SHA1 Message Date
Sven Eberhardt 28d2172b78 Qt Editor: Move editor props from EditorProp_* to an EditorProp proplist 2016-07-13 17:18:08 -04:00
Sven Eberhardt 36685a3119 Add HideInCreator=true to internal/helper/library definitions 2016-07-10 22:06:48 -04:00
Sven Eberhardt c4dfd5e276 Add EditorProp for construction goal 2016-06-07 00:13:35 -04:00
Mark 44b643d1e3 Fix error when opening resource goal description 2016-03-28 22:33:48 +02:00
Mark 5224eb5b18 Goal Resource: Variable amounts of exploitation
It is possible to set the amount of resources to be extracted with an additional parameter in SetResource() now. The default amount to be extracted is 95 percent, which is the same behaviour as before the changes.
2016-02-11 22:16:19 +01:00
Mark 3993a41cea Goal Resource: Code comments
Some more fine tuning, code comments.
2016-02-11 22:04:22 +01:00
Mark 03d4662811 Goal Resource: Readability
Made the lines more readable.
2016-02-11 21:56:14 +01:00
Mark f122346241 Goal Resource: exploitable_units
Renamed mat_cnt. Will make the lines more readable in the next commit.
2016-02-11 21:50:50 +01:00
Mark 9fa4632a48 Goal Resource: ExploitableObjectCount()
Extracted the division by blast_ratio to a function. This should help again when expanding to diggable materials.
2016-02-11 21:42:19 +01:00
Mark a4d2edd0d2 Goal Resource: ObjectCount2MaterialCount()
Deciphered what some of the functions are good for, since the original code is kind of cryptic. This should help again when expanding to diggable materials.
2016-02-11 21:35:59 +01:00
Mark 50b4d6bae8 Goal Resource: AvailableObjectCount()
Replaced the ObjectCount() calls with a function. This should make it easier to expand the script to diggable materials later.
2016-02-11 21:20:13 +01:00
Mark d9e75aaaba Goal Resource: Improved variable names
Renamed indices, removed unused variables.
2016-02-11 21:06:38 +01:00
Mark 5c2dcf41a3 Goal Resource: Improved variable names
Extracted functions that were used multiple times and use consistend naming for material.
2016-02-11 21:02:16 +01:00
Sven Eberhardt d213115103 Add function to CTF flag to disable pickup.
To be used by scenarios that use the flag differently.
2016-02-06 22:45:53 -05:00
Sven Eberhardt 1bb78ecd4f Remove some unnecessery animation weights.
These overwrite the animations in their slots while there are no other references to existing animations in the slot.
2016-01-28 23:47:53 -05:00
Maikel de Vries 0e32757aa9 parkour: allow resetting pb with /resetpb 2016-01-25 22:44:05 +01:00
Maikel de Vries 08dfaeed9e parkour: clear checkpoint for team members by default 2016-01-25 22:44:05 +01:00
Maikel de Vries 93c20b19a0 improve parkour scoreboard column descriptions 2016-01-23 18:24:30 +01:00
Nicolas Hake 4b68d82380 planet: Remove Array(Min,Max) in favor of Min,Max
Since the native functions now accept array parameters, we don't need a
C4Script implementation anymore.
2016-01-23 13:49:11 +01:00
Maikel de Vries a32cfc2072 Parkour goal: methods to get the number of checkpoints a player completed 2016-01-22 20:55:06 +01:00
Maikel de Vries 5b04eef7f2 fix handling of parkour respawn for removed players 2016-01-22 00:43:33 +01:00
Maikel de Vries 70f74626b9 add option to transfer contents on parkour relaunch 2016-01-22 00:14:59 +01:00
Sven Eberhardt b29631f003 Make relaunch weapon selection menu unclosable #1577 2016-01-11 22:02:48 -05:00
Sven Eberhardt f54a49d044 Resource goals: Reduce display of available resources by 10% to better match actually mined gems.
Some material always gets lost on blasting/pickaxing.
2016-01-10 13:41:04 -05:00
Maikel de Vries 97cc3dd901 arena goals: pass whether it is a relaunch to OnPlayerRelaunch callback 2016-01-02 21:53:43 +01:00
David Dormagen dcfb986e34 moved sounds into subfolders
This completes http://forum.openclonk.org/topic_show.pl?tid=3215
2015-12-13 22:14:55 +01:00
Sven Eberhardt 40f46403ba Move sound author attribution from Objects.ocd into main Sound.ocg (where the sounds now reside). 2015-12-13 01:09:48 -05:00
Sven Eberhardt 7f6c13084a Register definition-local sounds into definition namespace (id::Soundname) #1185.
Also move all object sounds to global Sound.ocg so they are still played.

This is to prevent naming collisions. All sounds are moved because otherwise all scripts would have to be adjusted. Also, the distinction between sounds in definitions and sounds in Sound.ocg was rather arbitrary.

It will also ensure most sounds are reloaded when sound is turned off temporarily, although that should better be fixed properly.
2015-12-07 00:08:24 -05:00
David Dormagen ccb9783e43 made capture-the-flag flags brighter
They are the most important item of their respective rounds. They need to stand out from the background as well as possible.
2015-11-29 19:39:57 +01:00
Clonkonaut b9da09de4e Krakatoa: Show goal icon depending on difficulty setting. 2015-10-12 22:53:42 +02:00
Clonkonaut 4443298b6d Goal icons added to Krakatoa and Chine (#1142). 2015-10-12 22:30:11 +02:00
Armin Burgmeier b8ed577c0f Rotate the OGRE coordinate frame by 90 degrees in X
Also rotate all meshes backwards so that everything keeps working. This should
make it more convenient for modellers to create new meshes.
See http://forum.openclonk.org/topic_show.pl?pid=29410#pid29410.
2015-10-03 11:39:08 -04:00
Sven Eberhardt 7211ee171f Follow view of dead clonk for two seconds before respawning with base respawner (#1390). 2015-10-03 02:23:35 -04:00
Maikel de Vries 2dde6fd600 move flag coordinate in area check into flag's script
This allows also for using rectangular ownership shapes, which can be useful for blocking areas.
2015-09-14 20:58:13 +02:00
Maikel de Vries 12e1156fd3 graphics for wealth goal 2015-09-03 17:45:36 +02: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
Armin Burgmeier 0cdafc278b Transform all mesh data to Clonk reference frame on load
Instead of doing the transformation when drawing a mesh. This allows making
the OpenGL normal matrix more consistent, since it does not include the
Ogre-To-Clonk transformation, and so that the transformation does not need
to be inverted in the shader.

As a side effect, all Attach transformations were updated, since before
they were specified in the OGRE reference frame, not the Clonk reference
frame.
2015-08-18 20:30:20 -04:00
Maikel de Vries 3a6bcaafb6 use new script gui for goal and wealth HUD 2015-06-03 22:36:36 +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 a0f95c0e93 add global function to get players in a team 2015-06-01 18:52:58 +02:00
Maikel de Vries 54a5c5b672 parkour: players respawn at best team checkpoint 2015-05-18 20:14:29 +02:00
Maikel de Vries 3a4c3c1d26 five new goal graphics thanks to Foaly 2015-04-02 19:07:49 +02:00
David Dormagen ca682b7fc3 removed several old menu objects and added a replacement menu with the new GUI system 2015-03-20 18:07:37 +01:00
Maikel de Vries 346d5cd709 another batch of Graphics.png removals 2015-02-15 22:37:08 +01:00
Sven Eberhardt 49c5b22591 Remove some empty graphics files. 2015-01-17 18:22:06 +01:00
Mark d7a88eea62 Use CreateObject() in scripts (#1214)
Objects with id Rule_*, Goal_*, and Environment_* are created with CreateObject() now.
2015-01-11 19:04:42 +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 e9513218bf add relaunch count to relaunch callback in last man standing goal 2015-01-10 10:04:26 +01:00
Sven Eberhardt 89c3f79398 Maze (Heart of the Mountain) parameters for map size and coop/race mode added.
Medium (default) size is a bit smaller than the previous default, because the map got a lot harder due to fog anyway.

Also removed superfluous Landscape.txt.
2015-01-04 15:55:23 +01:00
Sven Eberhardt 369262f423 Ignore fog of war on parkour checkpoints (#1203). 2015-01-01 21:04:51 +01:00
Sven Eberhardt cc17194a2b Ignore fog of war for parkour goal direction arrow. 2015-01-01 20:46:47 +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 3e48809c20 removed unused var effect in expansion goal 2014-10-24 20:24:13 +02:00
Maikel de Vries 4dfc9f181a fixed saving of resource goal 2014-08-23 11:32:35 +02:00
Maikel de Vries 573ca24e8e decrease lag caused by expansion goal 2014-08-17 16:36:33 +02:00
Maikel de Vries 4967b07a39 Iron Peak game goal is now metal production and expansion 2014-07-06 18:13:09 +02:00
Maikel de Vries a08b5bcdb8 added construct gold idol goal to GoldRush.ocs 2014-07-06 17:27:03 +02:00
Maikel de Vries aa4d34549d added construction goal 2014-07-06 17:24:30 +02:00
Clonkonaut 964e1a138a Deathmatch goal ends game when all but one player (or team) leave (#893). 2014-05-02 00:01:21 +02:00
Maikel de Vries 2cf42422b4 Improved information of SellGems goal 2014-02-23 17:15:39 +01:00
Maikel de Vries c075103bb9 Added GetDescription to all goals
This will be used by the new HUD on the controls branch.
2014-02-17 20:41: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 30619ae7fd removed unused particle definitions & cleaned up Particle.txt of LightningBolt particle 2013-11-28 23:44:24 +01:00
David Dormagen 6844cbbc71 changed DrawParticleLine to use the new particle system 2013-11-28 23:27:56 +01:00
David Dormagen 328bf6d330 updated ParkourCheckpoint to use the new particle system; renamed "PSpark" to "SphereSpark"; moved CheckPoint/PSpark to Effects/PSpark 2013-11-26 21:25:00 +01:00
Tobias Zwick 064166d09e make most sound effects mono 2013-05-26 17:42:37 +02:00
Martin Plicht a915cdb15f Make Eclipse happy by changing some zeros to nils and stuff 2013-05-26 00:01:08 +02:00
Maikel de Vries d5dec949b2 Fixed position of the flag in CTFs 2013-05-23 14:36:21 +02:00
Sven Eberhardt 359b5df806 Moved from experimental scenarios to main objects: Wall kit, gems, gem goals, reduced pickaxe strength (can't pick granite) 2013-05-16 16:50:34 +02:00
Sven Eberhardt 924b0b46fc Fix parkour checkpoint count display in scoreboard title (#941) 2013-03-29 15:45:14 +01:00
Sven Eberhardt fef5605217 Parkour goal: Added function to disable respawn. 2013-02-06 01:11:08 +01:00
Charles Spurrill 162e125085 #374 Missing graphics: Scoreboard of Parkour and LastManStanding - Finished 2012-11-11 16:08:48 -08:00
David Dormagen cb15430464 fix attachment position of the CTF-flag (fixes not being able to score points in CTF) 2012-10-28 22:43:31 +01:00
Russell 5782557a34 Clonk. Now with 65% better grammar. 2012-10-22 18:35:06 +01:00
Maikel de Vries 3fa4ce5350 Fixed Scorched Garden weapon list message 2012-10-18 22:34:01 +02:00
David Dormagen 47e699d4ea fixed KotH stars' color 2012-10-14 13:47:03 +02:00
David Dormagen ee1a8e8ce9 fixed deathmatch description in case that only one player is remaining 2012-10-14 13:20:37 +02:00
David Dormagen bfe14b492e fixed KotH goal on-click message 2012-10-14 12:56:08 +02:00
Maikel de Vries b7b6dd2111 Move expansion goal from krakatoa to goals 2012-10-13 19:05:57 +02:00
David Dormagen da976b4770 added new scoreboard abstraction layer on top of the engine functions - it scales!
for a complete description see the forum post
2012-06-28 00:17:15 +02:00
Maikel de Vries 821155b11c Fixed numbering of ringmenu, applied to buying at flag and weapon selector 2012-05-22 20:34:10 +02:00
David Dormagen cd8f978b28 fixed KingOfTheHill-goal InitializePlayer() 2012-04-29 16:27:26 +02:00
Bernhard Bonigl 54ec5629cd LastManStanding RelaunchContainer can only contain 1 clonk now 2012-04-29 15:04:37 +02:00
Maikel de Vries f6534bdfdb Prevent selecting more than one item in weapon menu 2012-04-29 14:03:20 +02:00
Maikel de Vries 8c6530c0d7 Fixed wealth goal short description 2012-04-15 13:37:18 +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 b8be22d9e3 Uncloseable menu for weapon chooser. 2012-04-03 14:51:38 +01:00
Felix Wagner 0051862213 For the sake of Eclipse: fixed various var declarations 2012-02-20 12:04:59 +00:00
Felix Wagner eb6b7be7ee Fixed various unused vars 2012-02-20 11:58:58 +00:00
Maikel de Vries bf5a441244 Objects: Added money goal for GoldRush 2012-01-10 18:32:45 +01:00
Maikel de Vries 17c8e9d355 Corrected display in mining goal 2012-01-01 16:20:22 +01:00
Maikel de Vries 16c50a07a0 Mining now has a larger tolerance for single pixels when mining large amounts
Also removed some dead code and tuned Iron Peak a little
2011-12-31 16:25:23 +01:00
Maikel de Vries 68c11a1b66 Objects: Fixed runtime error in Relaunch container
ERROR: object call: target is zero.
by: OpenWeaponMenu() (obj #798) (Objects.ocd\Goals.ocd\LastManStanding.ocd\Relaunch.ocd\Script.c:52)
2011-10-11 01:07:42 +02:00
Maikel de Vries d794b6d20f Objects: Fixed deathmatch elimination
Not sure what it was supposed to do, but player 0 won a round with less than max_kills kills.
2011-10-11 00:57:34 +02:00
Maikel de Vries 59c1aefad9 Objects: All Versions to 5,2,0,1 2011-10-01 10:54:15 +02:00
MimmoO cc1f8fe844 Workaround for #654: Can't climb while the holding the Flag 2011-09-18 19:56:53 +02:00
Tobias Zwick 23a3dafd3a license updates for sound effects
(now with all sources linked and a few changed to CC-BY 3.0)
2011-09-08 23:08:16 +02:00
Tobias Zwick 330a80c1cb update authors and license information 2011-08-31 17:20:25 +02:00
Maikel de Vries f997d939e3 Objects: Parkour checkpoint may now clear materials behind it 2011-08-29 18:07:37 +02:00
Tobias Zwick f025edb4a9 removed Portraits
+ CustomMessage now uses a normal picture of a definition/object
+ BigIcon is now the small (and only) "Portrait" the player chan choose
+ In future, one could of course make the max size of the BigIcon bigger
2011-08-05 14:58:16 +02:00
Tobias Zwick ecd6de1d65 refactor: schedulecalls without object can now be made from object context
(parameter obj is not automatically filled with this if nil)
2011-07-31 19:27:26 +02:00
Tobias Zwick 480ff384f8 refactored most effects to use meaningful names for their variables 2011-07-31 17:59:51 +02:00
Maikel de Vries 643b9b24c0 Parkour: Safety against creating checkpoints outside landscape bounds 2011-06-02 20:07:24 +02:00
Armin Burgmeier 675c077ed2 Change .c4d extension to .ocd 2011-03-13 16:55:00 +01:00