Re: Monster Match
Posted: Thu Nov 19, 2015 4:19 am
Thanks - could you please enable redirected downloads? Waiting 10 minutes for 6 MB is really annoying...^^
I was checking and almost to get late at job. Dude, if you don't have a redirect perhaps you will wanna try XC stuff for automated deal. It was nasty to wait a lot of minutes for a few MB, c'mon...Deepak O V wrote:Also you can check in server. Thank you!
Code: Select all
class Sp expands mutator;
var Pawn Birdie;
var bool bSpawned;
function PostBeginPlay()
{
settimer(2,True);
}
event Timer()
{
local float F[2], Time;
SpawnCrap();
class'XC_CoreStatics'.static.Clock( F);
if ( Birdie != None ){};
Time = class'XC_CoreStatics'.static.UnClock( F);
log ("Proximity type took "$Time);
if ( Birdie != None ) bSpawned = True;
class'XC_CoreStatics'.static.Clock( F);
if (bSPawned){};
Time = class'XC_CoreStatics'.static.UnClock( F);
log ("Bool type took "$Time);
class'XC_CoreStatics'.static.Clock( F);
if (Level.Game.IsA('DeathMatchPlus')){};
Time = class'XC_CoreStatics'.static.UnClock( F);
log ("Level Check Using ISA > "$Time);
class'XC_CoreStatics'.static.Clock( F);
if ( DeathMatchPlus(Level.Game) != None ){};
Time = class'XC_CoreStatics'.static.UnClock( F);
log ("Level Check Using Proximity > "$Time);
}
function SpawnCrap()
{
Birdie = Spawn(class'Bird1');
}
Code: Select all
ScriptLog: Proximity type took 0.000001
ScriptLog: Bool type took 0.000000
ScriptLog: Level Check Using ISA > 0.000001
ScriptLog: Level Check Using Proximity > 0.000001
ScriptLog: Proximity type took 0.000001
ScriptLog: Bool type took 0.000000
ScriptLog: Level Check Using ISA > 0.000001
ScriptLog: Level Check Using Proximity > 0.000000
ScriptLog: Proximity type took 0.000001
ScriptLog: Bool type took 0.000000
ScriptLog: Level Check Using ISA > 0.000001
ScriptLog: Level Check Using Proximity > 0.000001
ScriptLog: Proximity type took 0.000001
ScriptLog: Bool type took 0.000000
ScriptLog: Level Check Using ISA > 0.000001
ScriptLog: Level Check Using Proximity > 0.000001
ScriptLog: Proximity type took 0.000001
ScriptLog: Bool type took 0.000000
ScriptLog: Level Check Using ISA > 0.000001
ScriptLog: Level Check Using Proximity > 0.000001
ScriptLog: Proximity type took 0.000001
ScriptLog: Bool type took 0.000000
ScriptLog: Level Check Using ISA > 0.000001
ScriptLog: Level Check Using Proximity > 0.000000
Code: Select all
function Killed(pawn killer, pawn Other, name damageType)
{
local bool bKiller, bKillerPlayer;
bKiller = If (Killer != None) //set boolean a bit faster
bKillerPlayer = if ( Killer != None && Killer.PlayerReplicationInfo != None )
//Start with evil stuff
if (!bKiller)
{
DoStuff();
return;
}
else //All stuff which means Killer != None
{
//if (Other.IsA('MM_Fly')) changed to
if (MM_Fly(Other) != None)
{
if (bKillerPlayer)
Killer.PlayerReplicationInfo.Score += mm_fly(other).scorevalue;
}
if (MM_pupae(Other) != None)
{
if (bKillerPlayer)
killer.PlayerReplicationInfo.Score += mm_pupae(other).scorevalue;
}
.....
}
}
Code: Select all
if ( (Killer != None) && (Other.IsA('MM_pupae')) ) //Simple check
{
if (mm_pupae(other).bzombie)
{
killer.PlayerReplicationInfo.Score += -1; //But still wonder about PlayerReplicationInfo
}
else
{
killer.PlayerReplicationInfo.Score += mm_pupae(other).scorevalue;
}
}
//suicide//
if ( (Other != None) && ((Killer == other) && (other.IsA('MM_Pupae'))
|| (Killer == none)) ) //No Killer here
killer.PlayerReplicationInfo.Score -= 3; //But trying to setup Score at None + Still wander about PlayerReplicationInfo
//because MMScorePri is a ReplicationInfo spawned and seems to make deals with Player Connected...
// That I need to track and log it for seeing how much spawns for which Owner.
Not really, I gave examples and what I consider issues. You might check forward because that function is big, is not only about pupaes and fly, see the rest, try to understand conditions.Deepak O V wrote: I recompile your new edited code with old code?
Code: Select all
if ( bArenaMutator )
{
if ( Other.IsA('Inventory') && (Inventory(Other).MyMarker != None) && !Other.IsA('MM_Ammo')&& !Other.IsA('MMAmmo')&& !Other.IsA('MM_MonsterTool')&& !Other.IsA('MMBronzeMonsterTool')&& !Other.IsA('MMGoldMonsterTool')&& !Other.IsA('MMMonsterTool')&& !Other.IsA('MMSilverMonsterTool')&& !Other.IsA('TournamentHealth')&& !Other.IsA('ThighPads')&& !Other.IsA('UT_JumpBoots')&& !Other.IsA('UT_ShieldBelt')&& !Other.IsA('Seeds')&& !Other.IsA('SCUBAGear')&& !Other.IsA('JumpBoots')&& !Other.IsA('Health')&& !Other.IsA('Flare')&& !Other.IsA('Flare')&& !Other.IsA('BerserkerPickup')&& !Other.IsA('BoostPickup')&& !Other.IsA('LifePickup')&& !Other.IsA('MonsterPickup')&& !Other.IsA('NaliSpiritPickup')&& !Other.IsA('SavingPickup')&& !Other.IsA('SavingsPickup')&& !Other.IsA('SpeedPickup')&& !Other.IsA('TitanTool')&& !Other.IsA('UnHolyPickup')&& !Other.IsA('MMShieldBelt')&& !Other.IsA('MonsterInventory'))
////Rakiayn: determine what pickups are allowed in mm////
{
Inventory(Other).MyMarker.markedItem = None;
return false;
}
} else {
if ( Other.IsA('Inventory') && (Inventory(Other).MyMarker != None) && !Other.IsA('MM_Ammo')&& !Other.IsA('MMAmmo')&& !Other.IsA('MM_MonsterTool')&& !Other.IsA('MMBronzeMonsterTool')&& !Other.IsA('MMGoldMonsterTool')&& !Other.IsA('MMMonsterTool')&& !Other.IsA('MMSilverMonsterTool')&& !Other.IsA('TournamentHealth')&& !Other.IsA('ThighPads')&& !Other.IsA('UT_JumpBoots')&& !Other.IsA('UT_ShieldBelt')&& !Other.IsA('Seeds')&& !Other.IsA('SCUBAGear')&& !Other.IsA('JumpBoots')&& !Other.IsA('Health')&& !Other.IsA('Flare')&& !Other.IsA('Flare')&& !Other.IsA('BerserkerPickup')&& !Other.IsA('BoostPickup')&& !Other.IsA('LifePickup')&& !Other.IsA('MonsterPickup')&& !Other.IsA('NaliSpiritPickup')&& !Other.IsA('SavingPickup')&& !Other.IsA('SavingsPickup')&& !Other.IsA('SpeedPickup')&& !Other.IsA('TitanTool')&& !Other.IsA('UnHolyPickup')&& !Other.IsA('MMShieldBelt')&& !Other.IsA('MonsterInventory'))
////Rakiayn: determine what pickups are allowed in mm////
{
Inventory(Other).MyMarker.markedItem = None;
return false;
}
}
Code: Select all
if ( bArenaMutator )
{
if ( Other.IsA('Inventory') && (Inventory(Other).MyMarker != None) && !Other.IsA('MM_Ammo')&& !Other.IsA('MMAmmo')&& !Other.IsA('MM_MonsterTool')&& !Other.IsA('MMBronzeMonsterTool')&& !Other.IsA('MMGoldMonsterTool')&& !Other.IsA('MMMonsterTool')&& !Other.IsA('MMSilverMonsterTool')&& !Other.IsA('TournamentHealth')&& !Other.IsA('ThighPads')&& !Other.IsA('UT_JumpBoots')&& !Other.IsA('UT_ShieldBelt')&& !Other.IsA('Seeds')&& !Other.IsA('SCUBAGear')&& !Other.IsA('JumpBoots')&& !Other.IsA('Health')&& !Other.IsA('Flare')&& !Other.IsA('BerserkerPickup')&& !Other.IsA('BoostPickup')&& !Other.IsA('LifePickup')&& !Other.IsA('MonsterPickup')&& !Other.IsA('NaliSpiritPickup')&& !Other.IsA('SavingPickup')&& !Other.IsA('SavingsPickup')&& !Other.IsA('SpeedPickup')&& !Other.IsA('TitanTool')&& !Other.IsA('UnHolyPickup')&& !Other.IsA('MMShieldBelt')&& !Other.IsA('MonsterInventory'))
////Rakiayn: determine what pickups are allowed in mm////
{
Inventory(Other).MyMarker.markedItem = None;
return false;
}
}
return Super.IsRelevant(Other);
}