FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Get rid of bodies going stiff and no longer being a ragdoll

 
Post new topic   Reply to topic    Call Of Juarez Forum Index -> Modding
View previous topic :: View next topic  
Author Message
Beef



Joined: 08 Aug 2006
Posts: 5

PostPosted: Wed Aug 09, 2006 3:54 am    Post subject: Get rid of bodies going stiff and no longer being a ragdoll Reply with quote

Follow this to make it so ragdolls stay ragdolls. I tried to make it as simple as possible... good luck.

1) Go to ...Ubisoft\Demo\Techland\Call of Juarez SP Demo
2) Create a folder Data in that Physics and in that create both a Ragdoll and Generic folder
3) Back in your COJ root directory open Data0.Pak with winrar or winzip
4) In there go to Data\Physics\Generic and copy ODEPhysicsRagdoll.scr to the Generic folder you just created
5) Back in Data0.Pak go to Data\Physics\Ragdoll and copy Human.Scr and HumanSimple.phx the Ragdoll folder you created

Now for the fun Rolling Eyes

Now you have to change things in the files. To do this create a text document on your desktop, open it, and drag the file you want to edit into the writing area.

1) Go to ...Data\Physics\Ragdoll and use the above method to edit Human.phx
2) Replace the ragdoll and physics params with this:

//-------------------------------------------------------------------------------------------------
PhysicsParams()
{
QuickStepNumIterations(10)
AllowContinuousCollisions(1)
SetWaterFloat(0.2)
SetAutoDisableVels(14, 4, 0.5)
SetAbsorbers(1, 1)
SetMaxWatchingTime(9999999)
MaxLifeTime(9999999)
}

RagdollParams()
{
Mass(120)
StiffenStartTime(999999999)
ApplyForceMod(3)
ApplyForceAddUp(400000)
}
//-------------------------------------------------------------------------------------------------

1) Next edit Human.Scr with:


//-------------------------------------------------------------------------------------------------
PhysicsParams()
{
QuickStepNumIterations(15)
AllowContinuousCollisions(1)
SetWaterFloat(0.2)
}

RagdollParams()
{
Mass(90)
StiffenStartTime(9999999999999999999999)
ApplyForceMod(4)
ApplyForceAddUp(400000)
}

//-------------------------------------------------------------------------------------------------

1) Finally go to ...Data\Physics\Generic and edit ODEPhysicsRagdoll.scr

//-------------------------------------------------------------------------------------------------
PhysicsParams()
{
SetPhysicsSurfaceID(SRF_FLESH)
SetMaxVels(5000, 50)
SetAutoDisableVels(10, 2, 0.5)
SetAbsorbers(0.3, 0.7)
SetWaterFloat(0.4)
SetMaxWatchingTime(9999999999)
SetVelsGate(0, 0)
MaxLifeTime(99999999999999)
AllowDepthCompression(1)

TerrainCacheParams(1, 1, 20, 2)
StaticMeshCacheParams(1, 1, 20, 2)
TreesCacheParams(1, 1, 20, 2)
}

//-------------------------------------------------------------------------------------------------
Back to top
View user's profile Send private message AIM Address
Soulman



Joined: 30 Jul 2006
Posts: 113
Location: Tombstone

PostPosted: Wed Aug 09, 2006 7:22 am    Post subject: Reply with quote

Ah great stuff.

Im going to try it out when I get home! Very Happy

EDIT: SO the first things are just to make backup of the files? Not to
edit them?
_________________
"So dark the con of man"
Back to top
View user's profile Send private message
Soulman



Joined: 30 Jul 2006
Posts: 113
Location: Tombstone

PostPosted: Wed Aug 09, 2006 7:57 am    Post subject: Reply with quote

Sad to say but this didn't have any real effect at all.

Sure the bodies stay ragdoll so you can kick them around alittle
but they can't be shot nor will the corpses stay any longer than before.

Well well ... better than nothing I guess. Thx!
_________________
"So dark the con of man"
Back to top
View user's profile Send private message
buzznjackal



Joined: 31 Jul 2006
Posts: 113

PostPosted: Wed Aug 09, 2006 10:49 am    Post subject: Reply with quote

Great work Beef. Can't wait to try it when I get home. This is only a start. Soon we'll be changing everything in the game. We have ourselves a modding community here. Maybe we'll get our own forum yet! Laughing
Back to top
View user's profile Send private message
GusGus2000



Joined: 29 Jul 2006
Posts: 17

PostPosted: Wed Aug 09, 2006 4:55 pm    Post subject: Reply with quote

Question, will the corpses with this changes also not disappear?
Back to top
View user's profile Send private message
Beef



Joined: 08 Aug 2006
Posts: 5

PostPosted: Wed Aug 09, 2006 10:45 pm    Post subject: Reply with quote

They still do... but that is probally in another file.

Soulman, quite your complaining. Laughing Find the file yourself to make it so you can shoot bodies or try aiming around the bodies edge to hit them. It is possible. Throw some dynamite at them.

And those first steps are so you can take the files out of the Data0.Cab to edit them... you can do it within it but its a pain.
Back to top
View user's profile Send private message AIM Address
buzznjackal



Joined: 31 Jul 2006
Posts: 113

PostPosted: Fri Aug 11, 2006 1:39 pm    Post subject: Reply with quote

Congratz Beef on making it to the TweakGuide! See page 10. You are mentioned there for your work.
Back to top
View user's profile Send private message
C.TheDuke



Joined: 20 Aug 2006
Posts: 2

PostPosted: Sun Aug 20, 2006 8:44 pm    Post subject: Reply with quote

Beef wrote:
They still do... but that is probally in another file.

Soulman, quite your complaining. Laughing Find the file yourself to make it so you can shoot bodies or try aiming around the bodies edge to hit them. It is possible. Throw some dynamite at them.

And those first steps are so you can take the files out of the Data0.Cab to edit them... you can do it within it but its a pain.


I havent found dynamite on thisy yet could some 1 please tell me where ??
Back to top
View user's profile Send private message
Pound



Joined: 03 Jul 2006
Posts: 45

PostPosted: Mon Aug 21, 2006 4:24 pm    Post subject: Reply with quote

I am definate when the full games coems out tehre will be very sueful modding tools, in which everyone will make your guys dreams of shootable bodies, that stay forvever.
_________________
Back to top
View user's profile Send private message
flagstone



Joined: 04 Sep 2006
Posts: 4

PostPosted: Tue Sep 05, 2006 4:03 am    Post subject: Reply with quote

I followed the instructions. I think I saw the changes in SP but not in MP. The ragdolls still look rather dodgey in MP. I'm not sure if anyone else can confirm this.
Back to top
View user's profile Send private message
Crow



Joined: 30 Aug 2006
Posts: 932
Location: United States

PostPosted: Tue Sep 05, 2006 3:44 pm    Post subject: Reply with quote

lol its funny when bodies fly up into the air Very Happy
_________________
-Mark "TheCrow" Bayless
SBD_TheCrow
www.paleface.net
www.theoutlawdad.com
google warzone for Outlaws multiplayer gaming!
-coj beta tester
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
GusGus2000



Joined: 29 Jul 2006
Posts: 17

PostPosted: Wed Sep 20, 2006 6:37 pm    Post subject: Reply with quote

@Beef Thx for this mod, really cool!

A question, did you find a way like this, to make the corpses longer stay? This parameter should be also included in one of these files.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Call Of Juarez Forum Index -> Modding All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Anti Bot Question MOD - phpBB MOD against Spam Bots
Blocked registrations / posts: 17020 / 0