Commit Graph
461 Commits
Author SHA1 Message Date
Giulio Camuffo fd8035ac24 GRIM: Implemented SetActorScale() 2011-04-28 22:07:36 +02:00
Giulio Camuffo 616cd8014c GRIM: Make sure to walk inside the sectors calculated for the path. Fixes #18 2011-04-28 21:48:36 +02:00
Giulio Camuffo 1b9261984b GRIM: Limit the movement caused by walkForward(). Fixes #40 for real. 2011-04-27 15:43:53 +02:00
Giulio Camuffo 1e56e01913 GRIM: Do not try to save shadow planes without a scene. Fixes #32 2011-04-26 17:59:43 +02:00
Giulio Camuffo e097925f91 GRIM: walkTo the walkable point nearest to the destination. Fixes #20 Fixes #19 2011-04-24 22:45:47 +02:00
Giulio Camuffo 924852e037 GRIM: Be more strict and follow all the points in the calculated path. Fixes #26 2011-04-24 22:32:03 +02:00
Giulio Camuffo c82daf1437 GRIM: Removed broken code. 2011-04-24 22:21:30 +02:00
Giulio Camuffo 5ba0641a0d GRIM: Fixed unexpected behaviour of last commit. 2011-04-24 18:53:45 +02:00
Giulio Camuffo a9dd875f56 GRIM: Use destination pos in GetActorSector, if walking. Fixes #27 2011-04-24 18:14:38 +02:00
Giulio Camuffo eb90d99210 GRIM: Save and restore the path the actor is walking through. 2011-04-24 15:43:45 +02:00
Giulio Camuffo 3cabc321c1 GRIM: Make the default walk rate 0.3f. 2011-04-24 12:02:33 +02:00
Giulio Camuffo 441a1eb27c GRIM: Don't call setChoreLooping again for an already running chore. 2011-04-24 10:45:54 +02:00
Giulio Camuffo fd390b6ed4 GRIM: Make sure to delete the text object if we finish talking.
Fixes #23
2011-04-23 22:09:09 +02:00
Giulio Camuffo 6d19fab8b3 GRIM: Set the visibility to true when Actor::putInSet is called with a non null set. 2011-04-23 21:38:40 +02:00
Giulio Camuffo c6044d197f GRIM: Make Actor::pos() return always the actual position.
This change must be tested thoroughly as it might introduce some
bugs.
Fixes #11
2011-04-21 12:33:21 +02:00
Giulio Camuffo 16e309861e GRIM: Fixed footsteps rate when running. 2011-04-20 16:36:25 +02:00
Giulio Camuffo af25655e44 GRIM: Implemented footsteps sfx when walking. 2011-04-20 16:29:31 +02:00
Giulio Camuffo 1854494425 GRIM: Added ".f" to some numerical constant. 2011-04-19 18:48:10 +02:00
Giulio Camuffo 319d14a0f5 GRIM: Stop walking when calling setPos() and stop turning when calling setRot(). 2011-04-19 17:01:35 +02:00
Giulio Camuffo f699a17c5b GRIM: Initialize the variable Actor::_toClean. 2011-04-19 15:34:29 +02:00
Giulio Camuffo 652367dc0a GRIM: Keep a copy of the sectors used for the shadow planes. 2011-04-18 23:17:22 +02:00
Giulio Camuffo d4921d04b7 Do not assume an actor is in the current scene when saving/loading. 2011-04-18 17:34:19 +02:00
Pawel Kolodziejski b18b857558 cleanup headers - grim part 2011-04-16 14:12:44 +02:00
Matthew Hoops 00ee0554be GRIM: Remove global constructor usage and silence warnings 2011-04-12 20:51:55 +08:00
Giulio Camuffo 886c17d130 Fixed a warning. 2011-04-11 11:57:00 +02:00
Giulio Camuffo f19188f250 Keep walking when turning.
With the much faster turn movement there is no more need to be still
while turning.
2011-04-08 19:06:42 +02:00
Giulio Camuffo 68f993c372 But delete the PathNodes anyway. 2011-04-08 18:55:16 +02:00
Giulio Camuffo ff0c0f069b If a path could not be found go straight to the destination. 2011-04-08 18:53:27 +02:00
Giulio Camuffo 5733c90ee0 Increase by hand the turn rate used by walkForward() and update().
This makes the turn speed match with the original one. I'm not sure
this is the right way to go though, it needs testing.
2011-04-08 18:49:11 +02:00
Giulio Camuffo b16e2e4aa3 Fix GetAngleBetweenActors.
This allows the daemon beavers puzzle to be completed.
BUG: 3276493
2011-04-08 18:01:05 +02:00
Einar Johan T. Sømåen f4aab8c1cb Silence a bunch of 64-bit float warnings. 2011-04-06 06:29:40 +08:00
Giulio Camuffo 42db5a962f Removed no longer valid comment. 2011-04-05 17:05:17 +02:00
Giulio Camuffo 3460c63580 New enum to describe the sector types, instead of the raw values. 2011-04-05 12:37:20 +02:00
Giulio Camuffo 7fcd05395c GRIM: Implemented a following boxes version of Actor::walkTo 2011-04-03 20:41:00 +02:00
Giulio Camuffo c39f8ac580 Implemented a stub of ActorToClean.
Also, added a workaround for the bug that caused manny to be unable
to go outside the sets where ActorToClean is called. A real fix would
be needed, though.
2011-03-30 20:15:29 +02:00
Giulio Camuffo 8c66b2e7a6 Do not cache the Costume instances.
Each Actor needs to own an instance of all its costumes. This was
also causing the NULL costume issues.
2011-03-27 22:26:14 +02:00
Giulio Camuffo 18a62c16f4 Don't delete a costume when popped.
It will be deleted by Object::dereference if/when needed.
2011-03-27 18:59:52 +02:00
Giulio Camuffo d150888c09 Fully working lookAt implementation. 2011-03-26 17:53:19 +01:00
Matthew Hoops 1554e1ab2f ALL: Silence a ton of warnings 2011-03-25 07:42:03 +08:00
Giulio Camuffo 754de9d4ac Remove any NULL costume from _costumeStack before updating or saving. 2011-03-24 19:33:40 +01:00
Giulio Camuffo 8e015fc941 Another NULL costume crash fix in Actor::draw(). 2011-03-24 17:51:29 +01:00
Giulio Camuffo ab84047670 Make sure a costume is not NULL before trying to use it. 2011-03-24 17:18:31 +01:00
Giulio Camuffo 3fec369b59 Do not try to save NULL costumes.
Some actors can have some NULL pointers in their _costumeStack.
2011-03-24 00:06:32 +01:00
Giulio Camuffo a105e912d7 Make sure the head orientation is applied after any animation.
This ensures the position and orientation of the head is composed
with the one set by an eventual animation.
2011-03-23 22:52:59 +01:00
Giulio Camuffo 35e9dafb1e Set the costumes' lookAt vector only if the actor is looking to something. 2011-03-23 17:37:12 +01:00
Giulio Camuffo fb1c8fe3f2 Use the lookAtRate to determine the speed of the head movement. 2011-03-23 17:10:29 +01:00
Giulio Camuffo 63298e5fe7 Delete the old costumes before restoring an actor.
This avoids the things manny is keeping in hand to survive after
loading a savegame.
2011-03-21 23:02:30 +01:00
Giulio Camuffo cff70f9fad Cleanings. Mostly indent fixes. 2011-03-21 17:18:04 +01:00
Giulio Camuffo 59dcece9ae Working savegame support.
Implemented also the movement of Manny's head when looking at usable items.
This commit also introduces a new Object class with a ObjectPtr used for
caching the resources loaded by ResourceLoader. This fixes also the lipsync
regression.
2011-03-21 05:41:30 +08:00
Torbjorn Andersson 20a5e580b7 Silenced a bunch of mostly harmless cppcheck warnings. 2010-02-04 19:43:50 +00:00