The ACS array and the constant looks like this.
Code: Select all
global int 1:zombie_random;
str arrayZombie[16] = {"CyanZombieman2", "CyanZombieMarine", "CyanPistolZombie", "CyanNailBorg", "CyanCyberspectreDemon", "CyanDuneWarrior", "CyanExterminator", "CyanFemaleZombie", "CyanRapidFireTrooper", "CyanRifleGuy", "CyanJudgmentZombie", "CyanGothicZombie", "CyanGuard", "CyanShadowTrooper", "CyanAndroid", "CyanQuakeGrunt")
script "ZombiePicker" OPEN
{
zombie_random = Random(0, 15);
}
Code: Select all
class FatsoReplacer : SS_ScriptedSpawner replaces Fatso
{
override name SS_GetActorToSpawn ()
{
if(GetCVar("chaos_mode"))
{
return '';
}
// if chaos_mode is false
return '';
}
}
Code: Select all
class FatsoReplacer : SS_ScriptedSpawner replaces Fatso
{
override name SS_GetActorToSpawn ()
{
if(GetCVar("chaos_mode"))
{
return arrayZombie[Random(0, 15)];
}
// if chaos_mode is false
return arrayZombie[zombie_random];
}
}
Code: Select all
Script error, "SoD_v1,0,1_TEST.pk3:zscript/shades/replacers.txt" line 7:
Unknown identifier 'arrayZombie'
Script error, "SoD_v1,0,1_TEST.pk3:zscript/shades/replacers.txt" line 10:
Unknown identifier 'arrayZombie'
Thanks in advance.
