Page 1 of 1

How to make my custom flesh fragments spawn

Posted: Sun Oct 02, 2016 9:47 am
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

Re: How to make my custom flesh fragments spawn

Posted: Sun Oct 02, 2016 6:30 pm
by Hanfling
You could use a SpawnNotify to hook them in.

Re: How to make my custom flesh fragments spawn

Posted: Mon Oct 03, 2016 3:21 pm
by SkrillaX
Yes, but how. What am i supposed to do ?

Re: How to make my custom flesh fragments spawn

Posted: Sat Oct 08, 2016 5:42 am
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.

Re: How to make my custom flesh fragments spawn

Posted: Sat Oct 08, 2016 10:11 am
by SkrillaX
Can you make a change in the scriptedpawn class with replacing the normal fleshfragments with mine ? please