How to make my custom flesh fragments spawn

A refuge for those migrating from the fallen DXEditing.com and a place for general discussion relating to Deus Ex editing (coding, mapping, etc).
Post Reply
SkrillaX
NSF
Posts: 86
Joined: Sun Oct 02, 2016 4:43 am

How to make my custom flesh fragments spawn

Post by SkrillaX »

Ok, I've made separate classes for the fragments

FleshFragmentGib
FleshFragmentHead
FleshFragmentLeg
FleshFragmentFoot
FleshFragmentGuts
FleshFragmentForearm

Each of them were made under the fleshfragment class. They have a mesh etc. But how do I spawn them while a character dies. I know I have to edit the scriptedpawn class.Can someone, using my Flesh Fragment classes mentioned above, make a scripted pawn code pls pls pls thank you. I want each of them to spawn Each 6 of them separately. Pls help. Pls tell me the scriptedpawn edit
Hanfling
MJ12
Posts: 406
Joined: Sun Oct 04, 2009 6:54 pm

Re: How to make my custom flesh fragments spawn

Post by Hanfling »

You could use a SpawnNotify to hook them in.
I demand my DXE User ID back. Launcher for DeusEx, Rune, Nerf, Unreal & Botpack. HX on Mod DB. Revision on Steam.
SkrillaX
NSF
Posts: 86
Joined: Sun Oct 02, 2016 4:43 am

Re: How to make my custom flesh fragments spawn

Post by SkrillaX »

Yes, but how. What am i supposed to do ?
Hanfling
MJ12
Posts: 406
Joined: Sun Oct 04, 2009 6:54 pm

Re: How to make my custom flesh fragments spawn

Post by Hanfling »

I made you a sample package for how you would hook that in without modifying DeusEx.u: http://coding.hanfling.de/GreenFlesh.zip

After you build the package, you need to set in [Engine.Engine] section of your ini file DefaultGame to GreenFlesh.GreenFleshGame .

The GameInfo (GreenFleshGame) takes care of hookin in the SpawnNotify. Now the SpawnNotify gets notified each time a FleshFragment is spawned and allows you to replace it. Best to look at the sample code for details though.
I demand my DXE User ID back. Launcher for DeusEx, Rune, Nerf, Unreal & Botpack. HX on Mod DB. Revision on Steam.
SkrillaX
NSF
Posts: 86
Joined: Sun Oct 02, 2016 4:43 am

Re: How to make my custom flesh fragments spawn

Post by SkrillaX »

Can you make a change in the scriptedpawn class with replacing the normal fleshfragments with mine ? please
Post Reply