Code: Select all
global int 4:shotgun_rand;
str arrayShotguns[2] = {"DoomShotgun", "DukeShotgun"};
script "WeaponPicker" OPEN
{
if(first_gun_roll == true)
{
terminate;
}
first_gun_roll = true;
shotgun_rand = Random(0, 1);
}
script "ShotgunRep" (void)
{
Delay(1);
SpawnSpotFacingForced(arrayShotguns[shotgun_rand], 0, 0);
}
Code: Select all
actor ShotgunReplaces replaces Shotgun
{
States
{
Spawn:
TNT1 A 1
TNT1 A 10 ACS_NAmedExecuteAlways("ShotgunRep")
Stop
}
}
Any ideas?
