Let monsters use custom gibs Created 1 year ago2023-02-18 05:26:23 UTC by username7 username7

Created 1 year ago2023-02-18 05:26:23 UTC by username7 username7

Posted 1 year ago2023-02-18 05:26:24 UTC Post #347345
guys , I want zombies to use custom gibs like human gibs like They Hunger, what should I do?
User posted image
Posted 1 year ago2023-02-18 10:01:12 UTC Post #347346
Just FYI, They Hunger zombies didn't use human gibs. They actually reskinned the alien gib model and edited the yblood decals and the BLOOD_COLOR_GREEN code to be red. This will affect all creatures though.

I'm pretty sure if you wanted the zombies to use human blood and gibs, I figured it would just be a case of changing their bloodColor from BLOOD_COLOR_GREEN to BLOOD_COLOR_RED, as shown in your screenshot. I'm guessing that hasn't worked?
monster_urby monster_urbyGoldsourcerer
Posted 1 year ago2023-02-25 05:03:26 UTC Post #347370
It worked, but that just changed the color of the monster's blood
Posted 1 year ago2023-02-25 11:19:14 UTC Post #347371
The Gib type is determined by the return value of the HasHumanGibs and HasAlienGibs functions.
And the HasHumanGibs and HasAlienGibs functions are determined by the monster's classify by default.
User posted image
User posted image
If you want to manually change the gib type of certain monsters (without changing the classify value), add the following line to the monster's class:

virtual BOOL HasHumanGibs(void) { return TRUE; }
User posted image
You don't need to add the line "virtual BOOL HasAlienGibs(void) { return FALSE; }" as the HasHumanGibs function will be evaluated first.
[-TR-] 3mirG [-TR-] 3mirGThe Turkish Half-Life modder.
Posted 1 year ago2023-02-25 12:14:37 UTC Post #347372
Oh , thank you very much
You must be logged in to post a response.