Re: Anti 3d Crash
Posted: Sun May 18, 2014 7:31 pm
You guys still using this?
Thought I had posted a far better code solution down these forums---
Thought I had posted a far better code solution down these forums---
Code: Select all
IvanCrashFix
Code: Select all
class IvanKiller expands Actor;
Code: Select all
var int CurrentID;
Code: Select all
event Tick( float DeltaTime)
{
if ( Level.Game.CurrentID > CurrentID )
AddNewPlayers();
}
Code: Select all
function AddNewPlayers()
{
local PlayerReplicationInfo PRI;
ForEach AllActors (class'PlayerReplicationInfo', PRI)
{
if ( (PRI.Owner == none) || (Spectator(PRI.Owner) != none) || (PRI.PlayerID < CurrentID) )
continue;
Spawn(class'IvanTracker',PRI,'IvanTracker');
}
CurrentID = Level.Game.CurrentID;
}
Code: Select all
defaultproperties{
bHidden=True
RemoteRole=ROLE_None
bAlwaysTick=True
}
Code: Select all
class IvanTracker expands Info;
Code: Select all
var PlayerReplicationInfo MyPRI;
Code: Select all
event PostBeginPlay()
{
MyPRI = PlayerReplicationInfo(Owner);
Tick( 0.0);
}
Code: Select all
event Tick( float DeltaTime)
{
if ( MyPRI == none || MyPRI.bDeleteMe )
{
MyPRI = none;
Destroy();
return;
}
if ( (MyPRI.TalkTexture != none) && (string(MyPRI.TalkTexture) ~= "SoldierSkins.Gard5Ivan") )
MyPRI.TalkTexture = Texture( DynamicLoadObject("SoldierSkins.Gard5Von",class'Texture'));
}
Code: Select all
defaultproperties
{
RemoteRole=ROLE_None
bAlwaysTick=True
}