My game seems to be crashing after unmorphing in a multiplayer match. The bug is rather odd. I don't crash if I play in Singleplayer, but I do crash if I play in Multiplayer. Even weirder is I am always the only player that crashes, as anyone else on the server unmorphs with no problems...
Here's my ACS, Decorate, and the Crash Report:
ACS:
Code: Select all
Script 2 (void)
{
SetActorAngle(0,0.25);
DoCodeClient[PlayerNumber()] = false;
SetFont("BIGFONT");
SpawnSpotForced("MapSpot",1337+PlayerNumber(),2337+PlayerNumber(),0);
thing_move(1337+PlayerNumber(),170+PlayerNumber(),false);
SetFont("BIGFONT");
SpawnSpotForced("KartTranslator",1337+PlayerNumber(),3337+PlayerNumber(),0);
Thing_SetTranslation(3337+PlayerNumber(),-1);
MorphActor(0,"KartPlayer",1,698-(35*SpeedupNum),0,"","");
Thing_ChangeTID(0, 1337+PlayerNumber()); // Morphing the player resets his TID ._.
//printBold(d:ActivatorTID());
hudmessage(s:"Finish a lap";HUDMSG_PLAIN,1,cR_ORANGE,0.5,0.3,1);
hudmessage(s:"\n\nShoot To Accelerate";HUDMSG_PLAIN,2,cR_RED,0.5,0.3,1);
setplayerproperty(1, 1, PROP_TOTALLYFROZEN);
delay(70);
setplayerproperty(1, 0, PROP_TOTALLYFROZEN);
delay(630-(35*SpeedupNum));
hudmessage(s:"";HUDMSG_PLAIN,2,cR_ORANGE,0.5,0.3,1);
Thing_ChangeTID(0, 1337+PlayerNumber());
thing_move(1337+PlayerNumber(),2337+PlayerNumber(),false);
thing_remove(2337+PlayerNumber());
Thing_ChangeTID(0, 1337+PlayerNumber());
}
Code: Select all
ACTOR KartPlayer : DoomPlayer
{
player.forwardmove 0
player.sidemove 0
player.viewheight 24
player.jumpz 0
Health 100
Radius 16
Height 30
Mass 100
Player.ColorRange 112, 127
PainSound ""
DeathSound ""
Player.MorphWeapon "KartWeapon"
+NOBLOOD
+pushable
+NOSKIN
States
{
Pain:
Melee:
Missile:
Goto See
See:
Spawn:
KART A 5
Loop
Death:
MISL B 5 bright A_Playsound("weapons/rocklx")
MISL C 5 bright
MISL D 5 bright
MISL D -1
Stop
Death:
goto Death
}
}
actor KartWeapon : DoomWeapon
{
Weapon.SelectionOrder 2000
+WEAPON.DONTBOB
Weapon.KickBack 20000
States
{
Ready:
KRTW A 1 A_WeaponReady
KRTW A 0 A_StopSound(6)
loop
Deselect:
KRTW A 0 A_StopSound(6)
KRTW A 1 A_Lower
loop
Select:
KRTW A 1 A_Raise
Loop
Fire:
KRTW A 2 A_Recoil(-4)
KRTW A 0 A_PlaySound("DoomWare/KartEngine", 6, 1)
KRTW A 0 A_ReFire
goto Ready
AltFire:
goto Ready
}
}
http://www.mediafire.com/file/bbc718c68 ... Report.zip