Jump to content
Sign in to follow this  
Sennacherib

zombies questions

Recommended Posts

hi,

I play currently with the Tonal redux zombies; i use the spawner thing and the logical stuff (attack player and group). but is it possible that the zombies attack all the units (civilians and other groups of soldiers). I like killing these creatures but each time i'm the only survivor of my group and I'm attacked by tons of zombies. :p

Share this post


Link to post
Share on other sites

The Tonal Redux zombies are based on Farmland Horror Pack 3 and Unified Zombie Mod scripts. If you have those addOns, you should refer to their Readmes for instructions, or just do the following:

gblGroupList = [group1,group2,group3]

I think that simple code line should make the zombies attack all the members of groups named group1, 2 and 3.

Share this post


Link to post
Share on other sites

thx, i have only the Tonal redux zombies. is this a problem?

btw where I put this line? :p

Share this post


Link to post
Share on other sites

No, that's not a problem. Tonal Redux should come up with all the required scripts.

You can put the command, for example, into a game logic's initialization field, init.sqs, etc.

Share this post


Link to post
Share on other sites

thx mate, i'm going to try ;)

i have downloaded the horror pack, i'm going to take a look to the scripts.

btw: zombies + Itweas' wolf, a real horror film :p

edit:

i tried but that doesn't work. i put your line in the init line of the spawner, in the init line of the logical game, etc etc but nothing. btw there is nothing about my problem in the horror pack readme.

Edited by Sennacherib

Share this post


Link to post
Share on other sites

Hmm, I made a wrong guess. It seems like the correct variable is gblalltargets, not gblGroupList. So use this command instead:

gblalltargets = [group1,group2,group3]

I'm not sure if it works on whole groups though. The example provided used the command on individual units, but you could always give it a try.

Share this post


Link to post
Share on other sites

yes, I try with this line too (i found it in the MrBean's zombies). your line works too, but i must use a BIS game logic not the tonal zombie game logic. now it works but:

I'm not sure if it works on whole groups though. The example provided used the command on individual units

yes; they attack only the leader. is it possible to designate the whole group?

- and is it possible to make the attacks random, because the zombies follow the name of the group. they attack group1 and group2 etc.

thx for your help.;)

well i found that (quoted from a D@ve's reply)

Setting up an array is a bit complex, here's the code used by the "zombies attack player and group" prefab.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">gblalltargets = [player] + units (group player)

It can be put in the init line of any gamelogic or as the activation of a trigger. If can also be defined in a script.

Essentially the syntax is this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">gblalltargets = [unit1] + [unit2] + [unit3] + ... + units (group unitA) + units (group unitB) + units (group unitC) + ...

For example, if you wanted the zombies to target three units named Chuck, Barry and Sid, and all the units in Mary's group, you'd use:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">gblalltargets = [Chuck] + [barry] + [sid] + units (group Mary)

Or if you wanted to zombies to target all units in Chuck's group:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">gblalltargerts = [Chuck] + units (group Chuck)

One of the most important things to note, is before defining any groups you must define at least one soldier. If you don't, the scripts will not work.

For example:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">gblalltargets = units (group Player)

Will not work. This is why we've used "[player] + Units (group player)" for the prefab.

Finally, there's a good method found by Rellikki to get Zombies to target all units on one side in an area. Set up a trigger to cover the area activated by the side of your choice being present. Put in the "on activation" field:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">gblalltargets = thislist

As you can see it's a bit complex, which is why we included the prefab logics in HP3.

That's all I can help you with I'm afraid, I'm not a scripter, so if you want any more help with arrays you'll have to find someone with a bit more experience. There's a large documentations of all the arrays you can set with the UZM scripts, but I don't have it on hand, I'll see if I can dig it up sometime.

Edited by Sennacherib

Share this post


Link to post
Share on other sites

From what i see in their scripts, the following init should work :

gblalltargets = units group1 + units group2 + units group3

I don't understand your second question.

Share this post


Link to post
Share on other sites

the zombies attacks are not random; they follow the init line : group1 + group2 etc.:)

Share this post


Link to post
Share on other sites

I'm not sure what you mean by random there D@nte. From memory, the zombies should attack the closest target that is in the gblalltargets array (they evaluate this every 5 or 10 seconds). The order that groups/units are added to the array shouldn't matter.

Share this post


Link to post
Share on other sites

Okay, so from what you've posted, there must be at least one single unit in the gblalltargets, so for example :

gblalltargets = [player] + units group1 + units group2 + units group3

Edited by ProfTournesol
bullshit i wrote

Share this post


Link to post
Share on other sites

yes It should, but the zombies follow the goup list. ;)

thx Prof, i try immediately :)

edit:

it works, but the zombies attack only my group. And this line works only with the tonal game logic. and no random attacks.

Edited by Sennacherib

Share this post


Link to post
Share on other sites

thx but, i don't create a mission. this is just something to have a little bit of fun :p

whatever, I stop to play with the zombies, i don't want to spend hours to try and test init lines.

btw thx for your help. :)

Share this post


Link to post
Share on other sites

I found zombie website but where the zombie full mod available with all addons.yoh

Share this post


Link to post
Share on other sites

For those interested by the zombies, here is the quote from D@ve reply from the previous page but without the garbage created by the new forum transition :

Playing as a zombie isn't completely supported. I know Ryan_D has a version where it works in MP, but I'm not sure of particulars.

Setting up an array is a bit complex, here's the code used by the "zombies attack player and group" prefab.

gblalltargets = [player] + units (group player)

It can be put in the init line of any gamelogic or as the activation of a trigger. If can also be defined in a script.

Essentially the syntax is this:

gblalltargets = [unit1] + [unit2] + [unit3] + ... + units (group unitA) + units (group unitB) + units (group unitC) + ...

For example, if you wanted the zombies to target three units named Chuck, Barry and Sid, and all the units in Mary's group, you'd use:

gblalltargets = [Chuck] + [barry] + [sid] + units (group Mary)

Or if you wanted to zombies to target all units in Chuck's group:

gblalltargerts = [Chuck] + units (group Chuck)

One of the most important things to note, is before defining any groups you must define at least one soldier. If you don't, the scripts will not work.

For example:

gblalltargets = units (group Player)

Will not work. This is why we've used "[player] + Units (group player)" for the prefab.

Finally, there's a good method found by Rellikki to get Zombies to target all units on one side in an area. Set up a trigger to cover the area activated by the side of your choice being present. Put in the "on activation" field:

gblalltargets = thislist

As you can see it's a bit complex, which is why we included the prefab logics in HP3.

That's all I can help you with I'm afraid, I'm not a scripter, so if you want any more help with arrays you'll have to find someone with a bit more experience. There's a large documentations of all the arrays you can set with the UZM scripts, but I don't have it on hand, I'll see if I can dig it up sometime.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×