[SOLVED]Odd script failure
Posted: Thu Mar 21, 2013 7:27 pm
I was hoping someone on this forum might know what's going on here. I've been testing this map with Zandronum and made it in ZDoom (Doom in Hexen format).
It successfully gives the player the "SeekerSwitch," but not the "SeekerPistol." This only happens online. I've also noticed that bots seem to gain the gun, but not me. Here's the "SeekerPistol:"
Code: Select all
script 7 (void)
{
giveinventory("seekerswitch",1);
giveinventory("SeekerPistol",1);
}
Code: Select all
ACTOR SeekerPistol : DoomWeapon 5010
{
Game Doom
Weapon.SelectionOrder 1900
Weapon.AmmoUse 0
Weapon.AmmoGive 0
Weapon.AmmoType "Clip"
Obituary "%0 done got %pself found by %k!"
+WEAPON.WIMPY_WEAPON
Inventory.Pickupmessage "$PICKUP_PISTOL_DROPPED"
Tag "$TAG_PISTOL"
States
{
Ready:
PISG A 1 A_WeaponReady
Loop
Deselect:
PISG A 1 A_Lower
Loop
Select:
PISG A 1 A_Raise
Loop
Fire:
PISG A 4 A_JumpIfTargetInLOS(1)
Goto Ready // Can't fire, go back to ready
PISG B 6 A_FirecustomMissile ("SeekerBall")
PISG C 4
PISG B 5 A_ReFire
Goto Ready
Flash:
PISF A 7 Bright A_Light1
Goto LightDone
PISF A 7 Bright A_Light1
Goto LightDone
Spawn:
PIST A -1
Stop
}
}