The Cvar "Pink" works fine but the "int C" doesnt work. What am i doing wrong?
Code: Select all
[class rzombieman : RandomSpawner replaces ZombieMan
{
override Name ChooseSpawn()
{
int C = players[0].mo.countinv("vitaminC");
if (pink == 1)
{
if (C == 0)
{
return 'personas';
}
else if (C >= 0)
{
return 'pacos';
}
}
if (pink == 2)
return 'bipedo';
else
return 'doomImp';
}
}]
The Cvar "Pink" works fine but the "int C" doesnt work.