Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Im a new Custom Story Maker. Any guidance?
CeftKuro Offline
Junior Member

Posts: 7
Threads: 1
Joined: Jan 2012
Reputation: 0
#11
RE: Im a new Custom Story Maker. Any guidance?

Cna't you just add "Force" to a specific part of the Corpses such as the arms to make them move independantly?
01-25-2012, 04:37 PM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#12
RE: Im a new Custom Story Maker. Any guidance?

(01-25-2012, 04:37 PM)CeftKuro Wrote: Cna't you just add "Force" to a specific part of the Corpses such as the arms to make them move independantly?
Yes that is possible. To create any precise movements would take a very long time though. Just to create a walk animation I'm guessing you would have to spend a year testing different loops of pushes.

To try this out for yourself:
1. Start ModelEditor.exe
2. Open the model you want to add forces to; lets take the corpse as an example;
Amnesia - The Dark Descent\redist\entities\organic\corpse_male\corpse_male.ent
3. Select a green shape; look at the name. Each of those green shapes are what gives the model gravity & physics.

To move the left hand for example:
AddBodyImpulse("Corpse_male_1_body_9", 3.0, 0.0, 0.0, "");
Will jerk the hand in positive x-direction. (Probably while the model lies on the ground in a mess).


To have the model stand up and raise both arms:
0. Important: Save as first; to not overwrite the old entity. Give it a new name --> "Corpse_Ceft" for example.
1. A. Select each green shape which shall not be moved and set mass = 0.
1. B. Select the chest green shape (Body_1) and set mass = 0.
---> Do either 1. A or 1. B. If you don't the model will simple fall onto the ground as the normal corpses do. 1. B. Allows for movement of the legs while 1. A. secures the legs in place (throwing stuff at the legs won't cause them to jerk around.)

2. Apply force or impulse to the arms in a Y-direction. You could also make the arms stiff by replacing the green shapes of the arms with 2 green shapes for each arm. One for the arm itself and one for the hand.

3. The forces/impulses can be given a more smooth movement by being applied by a repeating timer; pushing the arm a little each 0.1 second for example.

To give you a greater understanding of "rag-doll-entities", which is what the corpse is, look here:
http://wiki.frictionalgames.com/hpl2/tut...tutorial_2

This might seem confusing at start :>


[Image: mZiYnxe.png]


(This post was last modified: 01-25-2012, 05:18 PM by Acies.)
01-25-2012, 05:16 PM
Find
CeftKuro Offline
Junior Member

Posts: 7
Threads: 1
Joined: Jan 2012
Reputation: 0
#13
RE: Im a new Custom Story Maker. Any guidance?

I am determined to get this down. Thank you so much for dumbing it down for me lol this will make things a lot easier.
01-26-2012, 06:15 PM
Find




Users browsing this thread: 1 Guest(s)