first commit
This commit is contained in:
14
Classes/ICCME_EventBase.uc
Normal file
14
Classes/ICCME_EventBase.uc
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
class ICCME_EventBase extends Object
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
// time the event was created (relative to game start)
|
||||||
|
var float createdTime;
|
||||||
|
|
||||||
|
// Tell the engine this event must be treated in the current Tick() context and not the next one
|
||||||
|
var bool bUrgent;
|
||||||
|
|
||||||
|
// print Event relevent informations in the main UT log file
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
log("===== Event:"@Self.Class@"["$createdTime$"]"@"=====");
|
||||||
|
}
|
||||||
32
Classes/ICCME_EventListenerBase.uc
Normal file
32
Classes/ICCME_EventListenerBase.uc
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
class ICCME_EventListenerBase extends Object
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
var LevelInfo Level;
|
||||||
|
var ICCME_GameStateBase GameState;
|
||||||
|
|
||||||
|
// future Mutator ordering
|
||||||
|
var string UUID;
|
||||||
|
var array<string> ar_UUIDBefore;
|
||||||
|
var array<string> ar_UUIDAfter;
|
||||||
|
|
||||||
|
// Init function automatically called when Listener added
|
||||||
|
function Init();
|
||||||
|
|
||||||
|
// Main user function, to process incomming event.
|
||||||
|
function ProcessEvent(ICCME_EventBase Event);
|
||||||
|
|
||||||
|
// Optionnal user Tick() function
|
||||||
|
function Tick(float DeltaTime);
|
||||||
|
|
||||||
|
// Helper function to add new event in the process Queue
|
||||||
|
// => To be called from ProcessEvent()
|
||||||
|
function AddEvent(ICCME_Event_CustomBase Event)
|
||||||
|
{
|
||||||
|
GameState.API_AddCustomPostEvent(Event);
|
||||||
|
}
|
||||||
|
// Helper function to force check EndGame conditions (During OverTime)
|
||||||
|
// => To be called from ProcessEvent()
|
||||||
|
function CheckEndGame()
|
||||||
|
{
|
||||||
|
GameState.API_CheckEndGame();
|
||||||
|
}
|
||||||
2
Classes/ICCME_Event_CTFGameBase.uc
Normal file
2
Classes/ICCME_Event_CTFGameBase.uc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
class ICCME_Event_CTFGameBase extends ICCME_EventBase
|
||||||
|
abstract;
|
||||||
29
Classes/ICCME_Event_CTFGame_FlagBase.uc
Normal file
29
Classes/ICCME_Event_CTFGame_FlagBase.uc
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
class ICCME_Event_CTFGame_FlagBase extends ICCME_Event_CTFGameBase
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
var enum T_eType{
|
||||||
|
FLAG_CAPTURED,
|
||||||
|
FLAG_DROPPED,
|
||||||
|
FLAG_TAKEN,
|
||||||
|
FLAG_RETURNED,
|
||||||
|
}eType;
|
||||||
|
|
||||||
|
|
||||||
|
var FlagBase fb;
|
||||||
|
var CTFFlag flg;
|
||||||
|
var int FlagIdx;
|
||||||
|
var bool ReTaken;
|
||||||
|
|
||||||
|
var ICCME_Stats_Flag FlagStats;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("eType:"@eType);
|
||||||
|
log("fb:"@fb);
|
||||||
|
log("flg:"@flg);
|
||||||
|
log("FlagIdx:"@FlagIdx);
|
||||||
|
log("ReTaken:"@ReTaken);
|
||||||
|
log("FlagStats:"@FlagStats);
|
||||||
|
}
|
||||||
|
|
||||||
28
Classes/ICCME_Event_CTFGame_Flag_Captured.uc
Normal file
28
Classes/ICCME_Event_CTFGame_Flag_Captured.uc
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
class ICCME_Event_CTFGame_Flag_Captured extends ICCME_Event_CTFGame_FlagBase;
|
||||||
|
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
local int i;
|
||||||
|
|
||||||
|
super.doLog();
|
||||||
|
|
||||||
|
log("==== FLAG CAP RECORD ====");
|
||||||
|
for(i=0;i<FlagStats.ar_sHolderRecord.Length;i++)
|
||||||
|
{
|
||||||
|
log("** HOLDER N."@i@"**");
|
||||||
|
log("Holder: "@FlagStats.ar_sHolderRecord[i].Holder);
|
||||||
|
log("Killer: "@FlagStats.ar_sHolderRecord[i].Killer);
|
||||||
|
log("TimeTaken: "@ FlagStats.ar_sHolderRecord[i].TimeTaken);
|
||||||
|
log("TimeCaptured: "@ FlagStats.ar_sHolderRecord[i].TimeCaptured);
|
||||||
|
log("TimeReturned: "@ FlagStats.ar_sHolderRecord[i].TimeReturned);
|
||||||
|
log("TimeDropped: "@ FlagStats.ar_sHolderRecord[i].TimeDropped);
|
||||||
|
}
|
||||||
|
log("=========================");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
eType=FLAG_CAPTURED
|
||||||
|
}
|
||||||
6
Classes/ICCME_Event_CTFGame_Flag_Dropped.uc
Normal file
6
Classes/ICCME_Event_CTFGame_Flag_Dropped.uc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
class ICCME_Event_CTFGame_Flag_Dropped extends ICCME_Event_CTFGame_FlagBase;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
eType=FLAG_DROPPED
|
||||||
|
}
|
||||||
6
Classes/ICCME_Event_CTFGame_Flag_Returned.uc
Normal file
6
Classes/ICCME_Event_CTFGame_Flag_Returned.uc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
class ICCME_Event_CTFGame_Flag_Returned extends ICCME_Event_CTFGame_FlagBase;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
eType=FLAG_Returned
|
||||||
|
}
|
||||||
6
Classes/ICCME_Event_CTFGame_Flag_Taken.uc
Normal file
6
Classes/ICCME_Event_CTFGame_Flag_Taken.uc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
class ICCME_Event_CTFGame_Flag_Taken extends ICCME_Event_CTFGame_FlagBase;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
eType=FLAG_TAKEN
|
||||||
|
}
|
||||||
12
Classes/ICCME_Event_CTFGame_PlayerBase.uc
Normal file
12
Classes/ICCME_Event_CTFGame_PlayerBase.uc
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
class ICCME_Event_CTFGame_PlayerBase extends ICCME_Event_CTFGameBase
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
var ICCME_Stats_Player_CTFGame ReleventPlayerStats;
|
||||||
|
var ICCME_Event_CTFGame_FlagBase ReleventFlagEvent;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("ReleventPlayerStats:"@ReleventPlayerStats);
|
||||||
|
log("ReleventFlagEvent:"@ReleventFlagEvent);
|
||||||
|
}
|
||||||
10
Classes/ICCME_Event_CTFGame_PlayerKillBase.uc
Normal file
10
Classes/ICCME_Event_CTFGame_PlayerKillBase.uc
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
class ICCME_Event_CTFGame_PlayerKillBase extends ICCME_Event_CTFGameBase
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
var ICCME_Event_DeathMatch_Kill Revelent_KillEvent;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("Revelent_KillEvent:"@Revelent_KillEvent);
|
||||||
|
}
|
||||||
3
Classes/ICCME_Event_CTFGame_PlayerKill_Cover.uc
Normal file
3
Classes/ICCME_Event_CTFGame_PlayerKill_Cover.uc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
class ICCME_Event_CTFGame_PlayerKill_Cover extends ICCME_Event_CTFGame_PlayerKillBase;
|
||||||
|
|
||||||
|
var ICCME_Stats_Player_CTFGame Relevent_HolderStats;
|
||||||
8
Classes/ICCME_Event_CTFGame_PlayerKill_Defend.uc
Normal file
8
Classes/ICCME_Event_CTFGame_PlayerKill_Defend.uc
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
class ICCME_Event_CTFGame_PlayerKill_Defend extends ICCME_Event_CTFGame_PlayerKillBase;
|
||||||
|
|
||||||
|
var bool bisSeal;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
bisSeal=False
|
||||||
|
}
|
||||||
6
Classes/ICCME_Event_CTFGame_PlayerKill_Denied.uc
Normal file
6
Classes/ICCME_Event_CTFGame_PlayerKill_Denied.uc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
class ICCME_Event_CTFGame_PlayerKill_Denied extends ICCME_Event_CTFGame_PlayerKill_FlagKill;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
bisDenied=True
|
||||||
|
}
|
||||||
8
Classes/ICCME_Event_CTFGame_PlayerKill_FlagKill.uc
Normal file
8
Classes/ICCME_Event_CTFGame_PlayerKill_FlagKill.uc
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
class ICCME_Event_CTFGame_PlayerKill_FlagKill extends ICCME_Event_CTFGame_PlayerKillBase;
|
||||||
|
|
||||||
|
var bool bisDenied;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
bisDenied=False
|
||||||
|
}
|
||||||
6
Classes/ICCME_Event_CTFGame_PlayerKill_Seal.uc
Normal file
6
Classes/ICCME_Event_CTFGame_PlayerKill_Seal.uc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
class ICCME_Event_CTFGame_PlayerKill_Seal extends ICCME_Event_CTFGame_PlayerKill_Defend;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
bisSeal=True
|
||||||
|
}
|
||||||
1
Classes/ICCME_Event_CTFGame_Player_CapturedFlag.uc
Normal file
1
Classes/ICCME_Event_CTFGame_Player_CapturedFlag.uc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
class ICCME_Event_CTFGame_Player_CapturedFlag extends ICCME_Event_CTFGame_PlayerBase;
|
||||||
1
Classes/ICCME_Event_CTFGame_Player_DroppedFlag.uc
Normal file
1
Classes/ICCME_Event_CTFGame_Player_DroppedFlag.uc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
class ICCME_Event_CTFGame_Player_DroppedFlag extends ICCME_Event_CTFGame_PlayerBase;
|
||||||
1
Classes/ICCME_Event_CTFGame_Player_HasFlag.uc
Normal file
1
Classes/ICCME_Event_CTFGame_Player_HasFlag.uc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
class ICCME_Event_CTFGame_Player_HasFlag extends ICCME_Event_CTFGame_PlayerBase;
|
||||||
4
Classes/ICCME_Event_CTFGame_Player_ReturnedFlag.uc
Normal file
4
Classes/ICCME_Event_CTFGame_Player_ReturnedFlag.uc
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
class ICCME_Event_CTFGame_Player_ReturnedFlag extends ICCME_Event_CTFGame_PlayerBase;
|
||||||
|
|
||||||
|
var bool bInEnemyBase;
|
||||||
|
var bool bInOwnBase;
|
||||||
1
Classes/ICCME_Event_CTFGame_Player_Save.uc
Normal file
1
Classes/ICCME_Event_CTFGame_Player_Save.uc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
class ICCME_Event_CTFGame_Player_Save extends ICCME_Event_CTFGame_Player_ReturnedFlag;
|
||||||
2
Classes/ICCME_Event_CustomBase.uc
Normal file
2
Classes/ICCME_Event_CustomBase.uc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
class ICCME_Event_CustomBase extends ICCME_EventBase
|
||||||
|
abstract;
|
||||||
2
Classes/ICCME_Event_DeathMatchBase.uc
Normal file
2
Classes/ICCME_Event_DeathMatchBase.uc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
class ICCME_Event_DeathMatchBase extends ICCME_EventBase
|
||||||
|
abstract;
|
||||||
19
Classes/ICCME_Event_DeathMatch_Death.uc
Normal file
19
Classes/ICCME_Event_DeathMatch_Death.uc
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
class ICCME_Event_DeathMatch_Death extends ICCME_Event_DeathMatchBase;
|
||||||
|
|
||||||
|
var Pawn Victim;
|
||||||
|
var ICCME_Stats_Player_DeathMatch VictimStats;
|
||||||
|
var Pawn Killer;
|
||||||
|
var ICCME_Stats_Player_DeathMatch KillerStats;
|
||||||
|
var name DamageType;
|
||||||
|
var vector HitLocation;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("Victim:"@Victim);
|
||||||
|
log("VictimStats:"@VictimStats);
|
||||||
|
log("Killer:"@Killer);
|
||||||
|
log("KillerStats:"@KillerStats);
|
||||||
|
log("DamageType:"@DamageType);
|
||||||
|
log("HitLocation:"@HitLocation);
|
||||||
|
}
|
||||||
10
Classes/ICCME_Event_DeathMatch_GloryBase.uc
Normal file
10
Classes/ICCME_Event_DeathMatch_GloryBase.uc
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
class ICCME_Event_DeathMatch_GloryBase extends ICCME_Event_DeathMatchBase
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
var ICCME_Event_DeathMatch_Kill Relevent_KillEvent;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("Relevent_KillEvent:"@Relevent_KillEvent);
|
||||||
|
}
|
||||||
9
Classes/ICCME_Event_DeathMatch_Glory_HeadHunter.uc
Normal file
9
Classes/ICCME_Event_DeathMatch_Glory_HeadHunter.uc
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
class ICCME_Event_DeathMatch_Glory_HeadHunter extends ICCME_Event_DeathMatch_GloryBase;
|
||||||
|
|
||||||
|
var int HeadHunterLevel;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("HeadHunterLevel:"@HeadHunterLevel);
|
||||||
|
}
|
||||||
9
Classes/ICCME_Event_DeathMatch_Glory_KillSpree.uc
Normal file
9
Classes/ICCME_Event_DeathMatch_Glory_KillSpree.uc
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
class ICCME_Event_DeathMatch_Glory_KillSpree extends ICCME_Event_DeathMatch_GloryBase;
|
||||||
|
|
||||||
|
var int SpreeLevel;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("SpreeLevel:"@SpreeLevel);
|
||||||
|
}
|
||||||
3
Classes/ICCME_Event_DeathMatch_Glory_KillSpree_End.uc
Normal file
3
Classes/ICCME_Event_DeathMatch_Glory_KillSpree_End.uc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
class ICCME_Event_DeathMatch_Glory_KillSpree_End extends ICCME_Event_DeathMatch_GloryBase;
|
||||||
|
|
||||||
|
var ICCME_Event_DeathMatch_Death Relevent_DeathEvent; //In case Player end his own killspree
|
||||||
10
Classes/ICCME_Event_DeathMatch_Glory_MultiKill.uc
Normal file
10
Classes/ICCME_Event_DeathMatch_Glory_MultiKill.uc
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
class ICCME_Event_DeathMatch_Glory_MultiKill extends ICCME_Event_DeathMatch_GloryBase;
|
||||||
|
|
||||||
|
var int MultiKillLevel;
|
||||||
|
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("MultiKillLevel:"@MultiKillLevel);
|
||||||
|
}
|
||||||
28
Classes/ICCME_Event_DeathMatch_Kill.uc
Normal file
28
Classes/ICCME_Event_DeathMatch_Kill.uc
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
class ICCME_Event_DeathMatch_Kill extends ICCME_Event_DeathMatchBase;
|
||||||
|
|
||||||
|
var bool bIsFirstBlood;
|
||||||
|
var bool bIsFriendKill;
|
||||||
|
var bool bIsMutualKill;
|
||||||
|
var bool bIsVengeance;
|
||||||
|
var bool bIsHeadShot;
|
||||||
|
|
||||||
|
var ICCME_Event_DeathMatch_Death Relevent_DeathEvent;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("bIsFirstBlood:"@bIsFirstBlood);
|
||||||
|
log("bIsFriendKill:"@bIsFriendKill);
|
||||||
|
log("bIsMutualKill:"@bIsMutualKill);
|
||||||
|
log("bIsVengeance:"@bIsVengeance);
|
||||||
|
log("bIsHeadShot:"@bIsHeadShot);
|
||||||
|
log("Relevent_DeathEvent:"@Relevent_DeathEvent);
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultproperties{
|
||||||
|
bIsFirstBlood=False
|
||||||
|
bIsFriendKill=False
|
||||||
|
bIsMutualKill=False
|
||||||
|
bIsVengeance=False
|
||||||
|
bIsHeadShot=False
|
||||||
|
}
|
||||||
21
Classes/ICCME_Event_DeathMatch_PotentialDeath.uc
Normal file
21
Classes/ICCME_Event_DeathMatch_PotentialDeath.uc
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
class ICCME_Event_DeathMatch_PotentialDeath extends ICCME_Event_DeathMatchBase;
|
||||||
|
|
||||||
|
var Pawn Victim;
|
||||||
|
var ICCME_Stats_Player_DeathMatch VictimStats;
|
||||||
|
var Pawn Killer;
|
||||||
|
var ICCME_Stats_Player_DeathMatch KillerStats;
|
||||||
|
var name DamageType;
|
||||||
|
var vector HitLocation;
|
||||||
|
var bool bPreventDeath;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("Victim:"@Victim);
|
||||||
|
log("VictimStats:"@VictimStats);
|
||||||
|
log("Killer:"@Killer);
|
||||||
|
log("KillerStats:"@KillerStats);
|
||||||
|
log("DamageType:"@DamageType);
|
||||||
|
log("HitLocation:"@HitLocation);
|
||||||
|
log("bPreventDeath:"@bPreventDeath);
|
||||||
|
}
|
||||||
1
Classes/ICCME_Event_DeathMatch_Suicide.uc
Normal file
1
Classes/ICCME_Event_DeathMatch_Suicide.uc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
class ICCME_Event_DeathMatch_Suicide extends ICCME_Event_DeathMatch_Death;
|
||||||
23
Classes/ICCME_Event_DeathMatch_TakeDamage.uc
Normal file
23
Classes/ICCME_Event_DeathMatch_TakeDamage.uc
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
class ICCME_Event_DeathMatch_TakeDamage extends ICCME_Event_DeathMatchBase;
|
||||||
|
|
||||||
|
var int ActualDamage;
|
||||||
|
var Pawn Victim;
|
||||||
|
var ICCME_Stats_Player_DeathMatch VictimStats;
|
||||||
|
var Pawn InstigatedBy;
|
||||||
|
var ICCME_Stats_Player_DeathMatch InstigatorStats;
|
||||||
|
var Vector HitLocation;
|
||||||
|
var Vector Momentum;
|
||||||
|
var name DamageType;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("ActualDamage:"@ActualDamage);
|
||||||
|
log("Victim:"@Victim);
|
||||||
|
log("VictimStats:"@VictimStats);
|
||||||
|
log("InstigatedBy:"@InstigatedBy);
|
||||||
|
log("InstigatorStats:"@InstigatorStats);
|
||||||
|
log("HitLocation:"@HitLocation);
|
||||||
|
log("Momentum:"@Momentum);
|
||||||
|
log("DamageType:"@DamageType);
|
||||||
|
}
|
||||||
9
Classes/ICCME_Event_DeathMatch_Win.uc
Normal file
9
Classes/ICCME_Event_DeathMatch_Win.uc
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
class ICCME_Event_DeathMatch_Win extends ICCME_Event_DeathMatchBase;
|
||||||
|
|
||||||
|
var ICCME_Stats_Player_DeathMatch ReleventPlayerStats;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("ReleventPlayerStats:"@ReleventPlayerStats);
|
||||||
|
}
|
||||||
2
Classes/ICCME_Event_GameBase.uc
Normal file
2
Classes/ICCME_Event_GameBase.uc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
class ICCME_Event_GameBase extends ICCME_EventBase
|
||||||
|
abstract;
|
||||||
1
Classes/ICCME_Event_Game_GameEnded.uc
Normal file
1
Classes/ICCME_Event_Game_GameEnded.uc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
class ICCME_Event_Game_GameEnded extends ICCME_Event_GameBase;
|
||||||
1
Classes/ICCME_Event_Game_GameOverTime.uc
Normal file
1
Classes/ICCME_Event_Game_GameOverTime.uc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
class ICCME_Event_Game_GameOverTime extends ICCME_Event_GameBase;
|
||||||
1
Classes/ICCME_Event_Game_GameStarted.uc
Normal file
1
Classes/ICCME_Event_Game_GameStarted.uc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
class ICCME_Event_Game_GameStarted extends ICCME_Event_GameBase;
|
||||||
15
Classes/ICCME_Event_Game_PlayerJoin.uc
Normal file
15
Classes/ICCME_Event_Game_PlayerJoin.uc
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
class ICCME_Event_Game_PlayerJoin extends ICCME_Event_GameBase;
|
||||||
|
|
||||||
|
var ICCME_Stats_Player ReleventPlayerStats;
|
||||||
|
|
||||||
|
var bool bIsSpectating;
|
||||||
|
var bool bIsABot;
|
||||||
|
var bool bIsReconnect;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("bIsSpectating:"@bIsSpectating);
|
||||||
|
log("bIsABot:"@bIsABot);
|
||||||
|
log("bIsReconnect:"@bIsReconnect);
|
||||||
|
}
|
||||||
29
Classes/ICCME_Event_Game_PlayerLeft.uc
Normal file
29
Classes/ICCME_Event_Game_PlayerLeft.uc
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
class ICCME_Event_Game_PlayerLeft extends ICCME_Event_GameBase;
|
||||||
|
|
||||||
|
var ICCME_Stats_Player ReleventPlayerStats;
|
||||||
|
|
||||||
|
var bool bIsSpectating;
|
||||||
|
var bool bIsABot;
|
||||||
|
var string PlayerName;
|
||||||
|
var int PlayerID;
|
||||||
|
var string TeamName;
|
||||||
|
var byte Team;
|
||||||
|
var float Score;
|
||||||
|
var float Deaths;
|
||||||
|
var string Ip;
|
||||||
|
var bool bHasSpawned;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("bIsSpectating:"@bIsSpectating);
|
||||||
|
log("bIsABot:"@bIsABot);
|
||||||
|
log("PlayerName:"@PlayerName);
|
||||||
|
log("PlayerID:"@PlayerID);
|
||||||
|
log("TeamName:"@TeamName);
|
||||||
|
log("Team:"@Team);
|
||||||
|
log("Score:"@Score);
|
||||||
|
log("Deaths:"@Deaths);
|
||||||
|
log("Ip:"@Ip);
|
||||||
|
log("bHasSpawned:"@bHasSpawned);
|
||||||
|
}
|
||||||
14
Classes/ICCME_Event_Game_PlayerSpawned.uc
Normal file
14
Classes/ICCME_Event_Game_PlayerSpawned.uc
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
class ICCME_Event_Game_PlayerSpawned extends ICCME_Event_GameBase;
|
||||||
|
|
||||||
|
var ICCME_Stats_Player ReleventPlayerStats;
|
||||||
|
|
||||||
|
var bool bIsABot;
|
||||||
|
var bool bIsFirstSpawn;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("ReleventPlayerStats:"@ReleventPlayerStats);
|
||||||
|
log("bIsABot:"@bIsABot);
|
||||||
|
log("bIsFirstSpawn:"@bIsFirstSpawn);
|
||||||
|
}
|
||||||
59
Classes/ICCME_Event_Game_PotentialGameEnded.uc
Normal file
59
Classes/ICCME_Event_Game_PotentialGameEnded.uc
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
class ICCME_Event_Game_PotentialGameEnded extends ICCME_Event_GameBase;
|
||||||
|
|
||||||
|
// ============================================================================
|
||||||
|
// Arg Name: bManagedOverTime
|
||||||
|
// Type: Boolean
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// This variable indicate if the current event comes from a Managed OverTime
|
||||||
|
// detection.
|
||||||
|
// /!\ To use it user must have bEnableOvertimeControl set to true in
|
||||||
|
// ChaChaMutatorEngine.ini.
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
var bool bManagedOverTime;
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// ============================================================================
|
||||||
|
// Arg Name: bEndGame
|
||||||
|
// Type: Boolean
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// This variable is both an indicator and a control value. The initial value is
|
||||||
|
// what the Engine is going to do but Modder can change it in its own Mut.
|
||||||
|
//
|
||||||
|
// /!\ This variable has two close but different meanings
|
||||||
|
// de pending on bManagedOverTime:
|
||||||
|
//
|
||||||
|
// * If bManagedOverTime is True:
|
||||||
|
// Then bEndGame is controlling ChaChaMutEngine Own OverTime.
|
||||||
|
// => That mean you can set it to True to force not having OverTime, or False to
|
||||||
|
// not have one.
|
||||||
|
// /!\ CCME's OverTime can only be triggered once, Then at any Valid score
|
||||||
|
// encoutered, the engine will stop game / display score.
|
||||||
|
//
|
||||||
|
// * If bManagedOverTime is False:
|
||||||
|
// Then bEndGame is bind to the HandleEndGame() function from standard Mutator
|
||||||
|
// API. In such case, modders can use bManagedOverTime to fast-close a
|
||||||
|
// challenge. The main UT's engine calls this function at every end-Score
|
||||||
|
// (during normal gameplay, either when goal score reached, or if time limit
|
||||||
|
// reached), or at any score during overtime.
|
||||||
|
// This is the reason ManagedOverTime exists in CCME: The internal
|
||||||
|
// implementation does not let us choose when to refuse ac end-score and force
|
||||||
|
// to go in OverTime. It only let use the opportunity to fast quit The
|
||||||
|
// challenge.
|
||||||
|
// => That mean you can instant close game / no end score display,
|
||||||
|
// by setting this variable to True when you receive it.
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
var bool bEndGame;
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("bManagedOverTime:"@bManagedOverTime);
|
||||||
|
log("bEndGame:"@bEndGame);
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
bEndGame=True
|
||||||
|
}
|
||||||
14
Classes/ICCME_Event_Game_TimeLimit.uc
Normal file
14
Classes/ICCME_Event_Game_TimeLimit.uc
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
class ICCME_Event_Game_TimeLimit extends ICCME_Event_GameBase;
|
||||||
|
|
||||||
|
var int RemainingTime;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("RemainingTime:"@RemainingTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
RemainingTime=300
|
||||||
|
}
|
||||||
6
Classes/ICCME_Event_Game_TimeLimit_Reached.uc
Normal file
6
Classes/ICCME_Event_Game_TimeLimit_Reached.uc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
class ICCME_Event_Game_TimeLimit_Reached extends ICCME_Event_Game_TimeLimit;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
RemainingTime=0
|
||||||
|
}
|
||||||
10
Classes/ICCME_Event_TeamGameBase.uc
Normal file
10
Classes/ICCME_Event_TeamGameBase.uc
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
class ICCME_Event_TeamGameBase extends ICCME_EventBase
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
var TeamInfo ti;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("ti:"@ti);
|
||||||
|
}
|
||||||
9
Classes/ICCME_Event_TeamGame_Dominating.uc
Normal file
9
Classes/ICCME_Event_TeamGame_Dominating.uc
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
class ICCME_Event_TeamGame_Dominating extends ICCME_Event_TeamGameBase;
|
||||||
|
|
||||||
|
var ICCME_Event_TeamGame_Score RelatedScore;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("RelatedScore:"@RelatedScore);
|
||||||
|
}
|
||||||
9
Classes/ICCME_Event_TeamGame_Lead.uc
Normal file
9
Classes/ICCME_Event_TeamGame_Lead.uc
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
class ICCME_Event_TeamGame_Lead extends ICCME_Event_TeamGameBase;
|
||||||
|
|
||||||
|
var ICCME_Event_TeamGame_Score RelatedScore;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("RelatedScore:"@RelatedScore);
|
||||||
|
}
|
||||||
16
Classes/ICCME_Event_TeamGame_PlayerJoinTeam.uc
Normal file
16
Classes/ICCME_Event_TeamGame_PlayerJoinTeam.uc
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
class ICCME_Event_TeamGame_PlayerJoinTeam extends ICCME_Event_TeamGameBase;
|
||||||
|
|
||||||
|
var Pawn Player;
|
||||||
|
var bool bReJoin;
|
||||||
|
var bool bIsSwitch;
|
||||||
|
var ICCME_Event_Game_PlayerJoin Related_PlayerJoin;
|
||||||
|
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("Player:"@Player);
|
||||||
|
log("bReJoin:"@bReJoin);
|
||||||
|
log("bIsSwitch:"@bIsSwitch);
|
||||||
|
log("Related_PlayerJoin:"@Related_PlayerJoin);
|
||||||
|
}
|
||||||
13
Classes/ICCME_Event_TeamGame_PlayerLeftTeam.uc
Normal file
13
Classes/ICCME_Event_TeamGame_PlayerLeftTeam.uc
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
class ICCME_Event_TeamGame_PlayerLeftTeam extends ICCME_Event_TeamGameBase;
|
||||||
|
|
||||||
|
var Pawn Player;
|
||||||
|
var bool bIsSwitch;
|
||||||
|
var ICCME_Event_Game_PlayerLeft Related_PlayerLeft;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("Player:"@Player);
|
||||||
|
log("bIsSwitch:"@bIsSwitch);
|
||||||
|
log("Related_PlayerLeft:"@Related_PlayerLeft);
|
||||||
|
}
|
||||||
11
Classes/ICCME_Event_TeamGame_PlayerSwitchTeam.uc
Normal file
11
Classes/ICCME_Event_TeamGame_PlayerSwitchTeam.uc
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
class ICCME_Event_TeamGame_PlayerSwitchTeam extends ICCME_Event_TeamGameBase;
|
||||||
|
|
||||||
|
var ICCME_Event_TeamGame_PlayerJoinTeam Relevent_PlayerJoinTeam;
|
||||||
|
var ICCME_Event_TeamGame_PlayerLeftTeam Relevent_PlayerLeftTeam;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("Relevent_PlayerJoinTeam:"@Relevent_PlayerJoinTeam);
|
||||||
|
log("Relevent_PlayerLeftTeam:"@Relevent_PlayerLeftTeam);
|
||||||
|
}
|
||||||
11
Classes/ICCME_Event_TeamGame_Score.uc
Normal file
11
Classes/ICCME_Event_TeamGame_Score.uc
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
class ICCME_Event_TeamGame_Score extends ICCME_Event_TeamGameBase;
|
||||||
|
|
||||||
|
var bool bLeading;
|
||||||
|
var bool bDominating;
|
||||||
|
|
||||||
|
function doLog()
|
||||||
|
{
|
||||||
|
super.doLog();
|
||||||
|
log("bLeading:"@bLeading);
|
||||||
|
log("bDominating:"@bDominating);
|
||||||
|
}
|
||||||
1
Classes/ICCME_Event_TeamGame_Win.uc
Normal file
1
Classes/ICCME_Event_TeamGame_Win.uc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
class ICCME_Event_TeamGame_Win extends ICCME_Event_TeamGameBase;
|
||||||
64
Classes/ICCME_GameStateBase.uc
Normal file
64
Classes/ICCME_GameStateBase.uc
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
class ICCME_GameStateBase extends Object
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
// Interface definition
|
||||||
|
function ICCME_EventListenerBase API_AddEventListeners(class<ICCME_EventListenerBase> TEventListener);
|
||||||
|
function API_AddCustomPostEvent(ICCME_Event_CustomBase Event);
|
||||||
|
function API_CheckEndGame();
|
||||||
|
|
||||||
|
// Static helpers libs
|
||||||
|
static function ICCME_GameStateBase GetInstance(LevelInfo BaseLevel)
|
||||||
|
{
|
||||||
|
local ICCME_MutBase A_ICCME_Mut;
|
||||||
|
local Mutator MNext;
|
||||||
|
local int nBInstances;
|
||||||
|
|
||||||
|
nBInstances = 0;
|
||||||
|
MNext=BaseLevel.Game.BaseMutator;
|
||||||
|
while(MNext!=None)
|
||||||
|
{
|
||||||
|
if(ICCME_MutBase(MNext)!=None)
|
||||||
|
{
|
||||||
|
A_ICCME_Mut=ICCME_MutBase(MNext);
|
||||||
|
nBInstances++;
|
||||||
|
}
|
||||||
|
MNext=MNext.NextMutator;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(nBInstances>1)
|
||||||
|
{
|
||||||
|
Warn("===========================================================");
|
||||||
|
Warn("Found Multiple instance of CCME_Mut...");
|
||||||
|
Warn("This is not supported, Check your installation / config");
|
||||||
|
Warn("Loading Aborded");
|
||||||
|
Warn("===========================================================");
|
||||||
|
DisplayHelp();
|
||||||
|
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(A_ICCME_Mut!=None)
|
||||||
|
{
|
||||||
|
return A_ICCME_Mut.GetInstance();
|
||||||
|
}
|
||||||
|
|
||||||
|
Warn("===========================================================");
|
||||||
|
Warn("!! Can not found CCME_Mut :-/ !!");
|
||||||
|
Warn("Loading Aborded");
|
||||||
|
Warn("===========================================================");
|
||||||
|
DisplayHelp();
|
||||||
|
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
|
||||||
|
static function DisplayHelp()
|
||||||
|
{
|
||||||
|
Warn("===========================================================");
|
||||||
|
Warn("!! ChaChaMutEngine Installation Reminder");
|
||||||
|
Warn("IChaChaMutEngineVx in ServerPackages");
|
||||||
|
Warn("ChaChaMutEngineV<x>_<y>_<z> in ServerPackages");
|
||||||
|
Warn("ChaChaMutEngineV<x>_<y>_<z>.CCME_Mut in Mutator list");
|
||||||
|
Warn("<x> must match on both IChaChaMutEngine and ChaChaMutEngine");
|
||||||
|
Warn("=> DO NOT load ChaChaMutEngineVx_y_z.CCME_Mut as an Actor !");
|
||||||
|
Warn("===========================================================");
|
||||||
|
}
|
||||||
10
Classes/ICCME_MutBase.uc
Normal file
10
Classes/ICCME_MutBase.uc
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
class ICCME_MutBase extends Mutator
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
function ICCME_GameStateBase GetInstance();
|
||||||
|
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
RemoteRole=ROLE_None
|
||||||
|
}
|
||||||
14
Classes/ICCME_Stats_Flag.uc
Normal file
14
Classes/ICCME_Stats_Flag.uc
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
class ICCME_Stats_Flag extends Object;
|
||||||
|
|
||||||
|
struct T_sHolderRecord{
|
||||||
|
var Pawn Holder;
|
||||||
|
var Pawn Killer;
|
||||||
|
var float TimeTaken;
|
||||||
|
var float TimeDropped;
|
||||||
|
var float TimeCaptured;
|
||||||
|
var float TimeReturned;
|
||||||
|
var array<Pawn> ar_PawnCoverRecord;
|
||||||
|
var array<Pawn> ar_PawnSealRecord;
|
||||||
|
};
|
||||||
|
|
||||||
|
var array<T_sHolderRecord> ar_sHolderRecord;
|
||||||
7
Classes/ICCME_Stats_Player.uc
Normal file
7
Classes/ICCME_Stats_Player.uc
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
class ICCME_Stats_Player extends Object;
|
||||||
|
|
||||||
|
var Pawn P;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
}
|
||||||
18
Classes/ICCME_Stats_Player_CTFGame.uc
Normal file
18
Classes/ICCME_Stats_Player_CTFGame.uc
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
class ICCME_Stats_Player_CTFGame extends ICCME_Stats_Player_TeamGame;
|
||||||
|
|
||||||
|
var int NbFlagCaptured;
|
||||||
|
var int NbFlagTaken;
|
||||||
|
var int NbFlagReturned;
|
||||||
|
var int NbFlagDropped;
|
||||||
|
|
||||||
|
var int NbFlagKill;
|
||||||
|
var int NbDenied;
|
||||||
|
var int NbCover;
|
||||||
|
var int NbDefense;
|
||||||
|
var int NbSeal;
|
||||||
|
var int NbSave;
|
||||||
|
var int NbAssit;
|
||||||
|
|
||||||
|
var int CoverSpreeLevel;
|
||||||
|
var int DefenseSpreeLevel;
|
||||||
|
var int SealSpreeLevel;
|
||||||
34
Classes/ICCME_Stats_Player_DeathMatch.uc
Normal file
34
Classes/ICCME_Stats_Player_DeathMatch.uc
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
class ICCME_Stats_Player_DeathMatch extends ICCME_Stats_Player;
|
||||||
|
|
||||||
|
var int MultiKillLevel;
|
||||||
|
var int KillSpreeLevel;
|
||||||
|
var int HeadShotSpreeLevel;
|
||||||
|
var int SuicideNum;
|
||||||
|
var int KillNum;
|
||||||
|
var int FriendKillNum;
|
||||||
|
var int DeathNum;
|
||||||
|
var int HeadShotNum;
|
||||||
|
|
||||||
|
var float LastKillTime;
|
||||||
|
var float LastKilledTime;
|
||||||
|
var Pawn LastKiller;
|
||||||
|
var Pawn LastVictim;
|
||||||
|
|
||||||
|
var array<ICCME_Event_DeathMatch_TakeDamage> ar_Event_TakeDamage;
|
||||||
|
var array<ICCME_Event_DeathMatch_PotentialDeath> ar_Event_PotentialDeath;
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
MultiKillLevel=0
|
||||||
|
KillSpreeLevel=0
|
||||||
|
HeadShotSpreeLevel=0
|
||||||
|
SuicideNum=0
|
||||||
|
KillNum=0
|
||||||
|
FriendKillNum=0
|
||||||
|
DeathNum=0
|
||||||
|
HeadShotNum=0
|
||||||
|
LastKillTime=-1.f
|
||||||
|
LastKilledTime=-1.f
|
||||||
|
LastKiller=None
|
||||||
|
LastVictim=None
|
||||||
|
}
|
||||||
1
Classes/ICCME_Stats_Player_TeamGame.uc
Normal file
1
Classes/ICCME_Stats_Player_TeamGame.uc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
class ICCME_Stats_Player_TeamGame extends ICCME_Stats_Player_DeathMatch;
|
||||||
Reference in New Issue
Block a user