Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: alexisloic21
Someone could help me understand this line of code because i understand oas i am in my "start"
{% highlight php %}{% raw %} function WatchZombies() { level endon("allgrowsouls"); while(1) { zombies = GetAiSpeciesArray( "axis", "all" ); for(i=0;i<zombies.size;i++) {="" if(isdefined(zombies[i].grow_soul))="" {="" continue;="" }="" else="" {="" zombies[i]="" thread="" watchme();="" }="" }="" wait(.05);="" }="" }=""></zombies.size;i++)> {% endraw %}{% endhighlight %}ModmeBot:
Reply By: natesmithzombies
I dont really understand what you are confused on. This also appears to be only a small sample of a larger script as it is calling functions that are not listed
ModmeBot:
Reply By: alexisloic21
alexisloic21{% highlight php %}{% raw %} function WatchMe() { level endon("allgrowsouls"); if(isdefined(self)) { self.grow_soul = true; } else { return; } self waittill("death"); // start = self GetTagOrigin( "J_SpineLower" );//different for dog if(!isdefined(self)) { return; } start = self.origin+(0,0,60); if(!isdefined(start)) { return; } grow_souls =[]; keys = GetArrayKeys(level.grow_souls); foreach(soul in keys) { grow_souls = ArrayCombine(grow_souls, GetEntArray(soul,"targetname"),false,false); } closest = level.grow_souldistance; cgs = undefined; foreach(gs in grow_souls) { if(Distance(start,gs.origin)<closest &&="" bullettracepassed(="" start,="" gs.origin+(0,0,50),="" false,="" self="" ))="" {="" closest="Distance(start,gs.origin);" cgs="gs;" }="" }="" if(!isdefined(cgs)="" ||="" !isdefined(cgs.origin))="" {="" return;="" }="" cgs="" thread="" sendsoul(start);="" }="" function="" sendsoul(start)="" {="" if(isdefined(self))="" {="" end="self.origin;" }="" if(!isdefined(start)="" ||="" !isdefined(end))="" {="" return;="" }="" if(isdefined(self))="" {="" self="" playsound(level.grow_soulentersound);="" }="" if(isdefined(self))="" {="" if(isdefined(level.grow_soul_grow)="" &&="" level.grow_soul_grow)="" {="" self="" thread="" grow();="" }="" else="" {="" self.scale+="level.grow_soul_growth;" }="" }="" if(!isdefined(level.grow_soulfx_count))="" {="" level.grow_soulfx_count="0;" }="" if(level.grow_soulfx_count="" <="" level.grow_soulfx_limit)="" {="" level.grow_soulfx_count++;="" fxorg="util::spawn_model(" "tag_origin",="" start="" );="" fx="PlayFxOnTag(" level.grow_soulsoulfx,="" fxorg,="" "tag_origin"="" );="" time="Distance(start,end)/level.soul_speed_divider;" fxorg="" moveto(end+(0,0,50),time);="" wait(time="" -="" .05);="" fxorg="" moveto(end,="" .5);="" fxorg="" waittill("movedone");="" if(isdefined(self))="" {="" self="" playsound(level.grow_soulentersound);="" }="" playfx(level.grow_soulenterfx,end);="" fxorg="" delete();="" level.grow_soulfx_count--;="" }="" else="" {="" if(isdefined(self))="" {="" self="" playsound(level.grow_soulentersound);="" }="" playfx(level.grow_soulenterfx,end);="" }="" }=""></closest> {% endraw %}{% endhighlight %}Someone could help me understand this line of code because i understand oas i am in my "start"
{% highlight php %}{% raw %} function WatchZombies() { level endon("allgrowsouls"); while(1) { zombies = GetAiSpeciesArray( "axis", "all" ); for(i=0;i<zombies.size;i++) {="" if(isdefined(zombies[i].grow_soul))="" {="" continue;="" }="" else="" {="" zombies[i]="" thread="" watchme();="" }="" }="" wait(.05);="" }="" }=""></zombies.size;i++)> {% endraw %}{% endhighlight %}
ModmeBot:
Reply By: alexisloic21
Entirely I would like to create my own script of souls but I do not know how to do and I look in the script to believe the souls and so I would like somebody to help me an understanding;D
ModmeBot:
Reply By: alexisloic21
There are some code that I do not understand As the for(;;) and this plz help me
{% highlight php %}{% raw %} zombies = GetAiSpeciesArray( "axis", "all" ); for(i=0;i<zombies.size;i++) {="" if(isdefined(zombies[i].grow_soul))="" {="" continue;="" }=""></zombies.size;i++)> {% endraw %}{% endhighlight %}{% highlight php %}{% raw %} if(isdefined(self)) { end = self.origin; }
{% endraw %}{% endhighlight %}
ModmeBot:
Reply By: natesmithzombies
I suggest that you give this a read before you start trying to understand the souls script. You cannot learn if you don't have a foundation to learn on
ModmeBot:
Reply By: alexisloic21
thanks for the tutorial I understand better
ModmeBot:
Reply By: alexisloic21
This function is not located on the page
ModmeBot:
Reply By: natesmithzombies
alexisloic21This function is not located on the page
ModmeBot:
Reply By: alexisloic21
And what is the variable to save if a zombie die car I can not find
ModmeBot:
Reply By: natesmithzombies
alexisloic21And what is the variable to save if a zombie die car I can not find
ModmeBot:
Reply By: alexisloic21
Yes escusez moi I use google translation XD so I would like to know what the variable that detects as soon as a zombie die in an area?
ModmeBot:
Reply By: natesmithzombies
alexisloic21Yes escusez moi I use google translation XD so I would like to know what the variable that detects as soon as a zombie die in an area?
ModmeBot:
Reply By: alexisloic21
There is no varriable for me on zombie die how I have to do
ModmeBot:
Reply By: alexisloic21
natesmithzombiesalexisloic21Yes escusez moi I use google translation XD so I would like to know what the variable that detects as soon as a zombie die in an area?