Need Help Making Dogs Spawn with zombies at high rounds
Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: MyNameIsNobody Is there a way to make it like on Der Riese where Dogs start spawning with zombies at the high rounds? I wanted to add dogs starting around level 30, but can't find anywhere anyone has discussed this. TIA!
ModmeBot:
Reply By: WECoyote99
MyNameIsNobody Is there a way to make it like on Der Riese where Dogs start spawning with zombies at the high rounds? I wanted to add dogs starting around level 30, but can't find anywhere anyone has discussed this. TIA!
i have a function for it
ModmeBot:
Reply By: steviewonder87
WECoyote99 i have a function for it
How does telling him that help him?
ModmeBot:
Reply By: Kabe I hope this helps you
ModmeBot:
Reply By: MyNameIsNobody
WECoyote99 MyNameIsNobody Is there a way to make it like on Der Riese where Dogs start spawning with zombies at the high rounds? I wanted to add dogs starting around level 30, but can't find anywhere anyone has discussed this. TIA! i have a function for it
This seems to make my game crash in the middle of the round right before when the dogs should be spawning. Have you or anyone else tested this? Curious for anyones input. I will try it again on a blank test map and let everyone know.
EDIT: REMOVED FROM MAP, MAP STILL CRASHED. So issue might no have been kabe's code he put on here, instead I must have another issue...
ModmeBot:
Reply By: Harry Bo21 lol whys everyone suddenly want this
anyway i cleaned up that code a bit ( Devnotes at the bottom ), i don't see any reason it should cause a crash, unless maybe you haven't placed dog spawners / spawn points in the map
This is definitely not how this should be done, people are constantly asking for this lately however so I will take a look through the code and post a proper way in a while
Ill post to the wiki probably
EDIT : Ill see what i can do about the power switch lag too, I had already started a while back for Stevie, wrote out code, then got called away by modders and completely forgot about the code I wrote as usual lol.
ModmeBot:
Reply By: Kabe Thanks for optimizing the code ;) I updated it a little. Now start when the round starts. Now can detect if it is round of dogs and back to start. Added level.dognon_stop to start / stop the spawn of dogs, if we are going to create some EE that requires it or simply use a cinematic while it is being played, simply add " level.dognon_stop = true " or " level.dognon_stop = false " of your code. Now the zombie counter still has also the zombies that are alive and in turn can wake up zombie_ai_limit preventing the spawn of dogs.
MyNameIsNobody This seems to make my game crash in the middle of the round right before when the dogs should be spawning. Have you or anyone else tested this? Curious for anyones input. I will try it again on a blank test map and let everyone know. EDIT: REMOVED FROM MAP, MAP STILL CRASHED. So issue might no have been kabe's code he put on here, instead I must have another issue...
I always check it before I share it ;) Did you check it on a clean map? remember to put the dog spawn points and the dog actor
ModmeBot:
Reply By: Harry Bo21
this is not the correct way to do this. You have to structure it differently because you are using "or" and "and" ( || && )
need to force these two checks in to a single condition ->
otherwise you can potentially get either false positives or false negatives
<hr>
this is also a bad idea, your storing the value, not the reference "to" the value. if zombie total was say 10, even if zombies die, n_count_total_zombie will still be 10
just use level.zombie_total
<hr>
you can simplify this
if you wanted to check if its instead "false - or - undefined" then :
ModmeBot:
Reply By: Kabe Thanks for helping me and teaching me :)
I use it to get level.zombie_total and add it later with n_count_zombies_spawn preventing having up to some enemies and not spawn dogs, sorry for not commenting before
Update 2
I tried it and it worked perfectly I think it's finished, what do you think? I would like you to try it. Thanks again :)
ModmeBot:
Reply By: MyNameIsNobody Thanks Kabe & Harry both. I have been extremely ill and unable to test this until now. Thanks! P.s. the issue I had with the game crashing was unrelated and I fixed it.