Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: NaviLlicious on October 28, 2014, 02:07:00 am
Title: How to disable gibbing?
Post by: NaviLlicious on October 28, 2014, 02:07:00 am
I am trying to port a character model from BO2 and make It a zombie model and I am also trying to make some of the marine raider models zombies for my map, I got the models In and working as zombies but whenever you shoot off the limbs they revert back to the original zombie models, for the marine raiders I have setup the character file with the gibs and the xmodelaliases, not sure what I am doing wrong exactly under there, and for the BO2 model It didn't have any gibbed models so how do I disable gibbing for these character models?
Title: Re: How to disable gibbing?
Post by: Harry Bo21 on October 28, 2014, 06:49:11 am
I had this issue.
I made a seperate honorguard aliases for each type of zombie. As the array function seems to randomly pick, irrespective of what model was being used previously
Title: Re: How to disable gibbing?
Post by: MakeCents on October 28, 2014, 02:06:18 pm
I am trying to port a character model from BO2 and make It a zombie model and I am also trying to make some of the marine raider models zombies for my map, I got the models In and working as zombies but whenever you shoot off the limbs they revert back to the original zombie models, for the marine raiders I have setup the character file with the gibs and the xmodelaliases, not sure what I am doing wrong exactly under there, and for the BO2 model It didn't have any gibbed models so how do I disable gibbing for these character models?
there is gibbing is in zombiemode_spawner. Never tried to disable it but I did make things gib that normally don't, such as MOD_UNKNOWN for some of my traps. Not sure if that will help but there is a function it checks if the zombie should gib and returns true if it should, based on MOD, I think. You may be able to change them to false to stop gibbing?
P.S. This idea sounds cool. Good luck with it.
Title: Re: How to disable gibbing?
Post by: jei9363 on October 28, 2014, 03:42:36 pm
in _zombiemode_spawner.gsc
but people will probably complain
set self.dontGib to true in the character file.
Title: Re: How to disable gibbing?
Post by: Harry Bo21 on October 28, 2014, 09:04:31 pm
They might, but if he isnt using zombie models, it could make sense ;)
Title: Re: How to disable gibbing?
Post by: NaviLlicious on November 14, 2014, 05:40:59 am
Sorry for the late reply been busy, I tried putting that In zombiemode_spawner but the zombies are still being gibbed
To stop gibbing completely you only need to add return false; in the should gib function. What he was doing was trying to give you an option to make it that if self.dontGib was not defined and/or it was not true then gib the zombies, but otherwise don't gib. To test that you can simply add self.dontGib = true; before the self thread zombie_gib_on_damage(); like this:
With that you can define which zombies to gib if you can define "dontGib" for each zombie.
Title: Re: How to disable gibbing?
Post by: jei9363 on November 14, 2014, 03:01:36 pm
should just be
Title: Re: How to disable gibbing?
Post by: MakeCents on November 14, 2014, 03:13:58 pm
If he doesn't define dontGib for true and false conditions for each model, then yes. But if he defines it for all spawners then that will backfire. That is why I thought you did it the way you did it. Technically you could just put: which would gib on any dontGib atributes not defined and false.
Title: Re: How to disable gibbing?
Post by: NaviLlicious on November 14, 2014, 09:39:51 pm
Ah gotcha that got It working and when insta kill Is on only the heads pop off which Is perfect thanks guys! Now I just need to figure out how to get the BO perks working again Double Post Merge: November 15, 2014, 06:21:56 amMay have prematurely marked best answer D: so I put In _zombiemode_spawner and I put selt.dontGib = true; In my character file but the models under that character file still gib
Title: Re: How to disable gibbing?
Post by: MakeCents on November 16, 2014, 10:24:59 pm
In _zombiemode_spawner and I put selt.dontGib = true; In my character file but the models under that character file still gib
Did you only have the typo here? self, not selt... You can add a print statement to check, something like in the zombie_death_even(zombie) script you could put iprintlnbold(zombie.dontGib, " dont gib"); before the zombie waittill( "death" ); to see.
Title: Re: How to disable gibbing?
Post by: NaviLlicious on November 17, 2014, 03:30:21 am
Did you only have the typo here? self, not selt... You can add a print statement to check, something like in the zombie_death_even(zombie) script you could put iprintlnbold(zombie.dontGib, " dont gib"); before the zombie waittill( "death" ); to see.
Oh I typed that wrong on here It's self.dontGib = true; In my character file under and the script above In my zombiemode_spawner.gsc but I added the iprintinbold to see what It says In game
After putting In the iprintinbold I didn't see anything written In game so I figured I would put what I have down In here this Is what I have In my character.gsc before the precache part of course and this Is the small part of the zombiemode_spawner.gsc
Title: Re: How to disable gibbing?
Post by: MakeCents on November 17, 2014, 08:49:58 pm
I can look at a _zombiemode_spawner.gsc tonight.
P.S. I know a lot of people that write code that way but it is easier to trouble shoot, I think, if you use your brackets.