Commit Graph

26 Commits (652c7e43e23652fb8bf05b4b57e6db36b0eb765c)

Author SHA1 Message Date
Maikel de Vries 0843c29f42 fix vertex changing when swimming (#1176) 2015-03-28 08:36:18 +01: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 f8226e3675 Use === to check whether proplists were already replaced 2014-04-19 19:02:22 +02:00
David Dormagen a10c9316ef renamed DynamicParticles* to Particles* and CreateParticleEx to CreateParticle 2013-12-17 22:32:01 +01:00
David Dormagen 9f8190064c removed usage of non-existant "Splash" particle 2013-11-26 21:25:00 +01:00
David Dormagen c3c48b1456 adapted Wave particle and usages to new particle system 2013-11-26 21:25:00 +01:00
David Dormagen a4d27cd9a9 replaced Dust and Dust2 usages with new particle system 2013-11-26 21:24:56 +01:00
Maikel de Vries 9e8dd57dbb Disabled scaling and hangling under water, fixed vertices for swimming clonk
Please note that the dive animation is putting the clonk to low compared to its center this should be fixed by one of the OC modelers.
2013-10-06 14:55:48 +02:00
Nicolas Hake db9ee644eb Fix walking animation with xdir=0 (#887)
When trying to get the sign of the horizontal velocity, a calculation
erroneously assumed that it could never be 0. When it did, a #DE was
raised. This changeset replaces the calculation with the Sign() function
from Math.c, which handles a zero argument correctly.
2012-12-17 02:11:03 +01:00
David Dormagen 94c85d8609 hopefully fixed a script error related to animation replacements
the shield replaced the animation "Walk" with an array of two animations. Then when GetWalkAnimationPosition was queried from FxIntWalkTimer:476 it threw an error at GetAnimationLength
2012-10-14 19:39:40 +02:00
Günther Brammer f41590d71f Merge branch 'movement' 2012-07-13 23:27:14 +02:00
Sven Eberhardt fec75aa79d Fix subsisting com dir if hangle animation is aborted (#418) 2012-07-13 22:55:44 +02:00
Günther Brammer 944ca60910 Tweak the "corner scale" behaviour
Instead of teleporting from sticking with the left/rightmost vertex to the
want to standing on the lowest one at the same position, the Clonk can now
climb using the lowest vertex alone. That means the teleport only needs to
cover only one pixel each in x and y direction to go from sticking to the
side of the landscape pixel to sticking on top of the same pixel.

Also remove some unnecessary x/ydir resets and make comdir in the direction
of the wall the Clonk is scaling keep the up/down direction instead of only
going up.
2012-06-08 16:17:42 +02:00
Bernhard Bonigl a3c0c85b1a Don't divejump during aiming 2012-04-29 18:12:04 +02:00
Bernhard Bonigl c576a7bd3f Allow turning while jumping during aiming 2012-04-29 18:09:37 +02:00
Felix Wagner 4bb8cebafc Fixed clonk getting stuck when falling off the bottom of (flying) liquid 2012-04-09 02:50:31 +01:00
Bernhard Bonigl 061a96e514 Standardized variable-names in Clonk-Animations and put them into a "Namespace"-Proplist.
More info in UpdateMenu-Implementation-Fail.
2012-04-07 23:32:57 +02:00
Charles Spurrill 4ce3b0d477 Clonk can't turn around whilst rolling 2011-10-25 15:01:27 -07:00
Julius Michaelis 0f12b3485e Find sounds with all extensions instead of only wav, so Sound() does no longer require .ogg extensions
Do not replace * with ? in sound name wildcards anymore, adjust scripts
2011-10-12 23:09:22 +02:00
Richard Gerum c0a1e343c6 clonk can turn while on grappler rope 2011-10-09 15:26:52 +02:00
Richard Gerum 6bc3f0a3d5 removed unnamed effect variables in clonks animationscript 2011-10-09 10:58:58 +02:00
Richard Gerum fcc41c54ba fixed turn rotation when swinging the grappler to the right 2011-10-09 10:52:28 +02:00
Felix Wagner d29a81646e Proper eating animation 2011-10-08 22:28:49 +01:00
Felix Wagner 99143276bc More dust when running, kneeling, rolling 2011-10-08 21:44:24 +01:00
Richard Gerum 166e898852 fixed some errors of the exported animation script 2011-10-08 19:46:22 +02:00
Richard Gerum 3cde4e3922 seperated animations from clonks script 2011-10-08 19:04:57 +02:00