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
How to make my custom flesh fragments spawn
Re: How to make my custom flesh fragments spawn
You could use a SpawnNotify to hook them in.
Re: How to make my custom flesh fragments spawn
Yes, but how. What am i supposed to do ?
Re: How to make my custom flesh fragments spawn
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.
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
Can you make a change in the scriptedpawn class with replacing the normal fleshfragments with mine ? please