Project:
conqueredcastles
Code Location:
http://conqueredcastles.googlecode.com/svn/trunk//trunk
conqueredcastles --username virance/
ConMessage.uc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
class ConMessage extends UTLocalMessage; var string MessageText[10]; static function string GetString( optional int Switch, optional bool bPRI1HUD, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject ) { local string N1, N2; if (RelatedPRI_1 == None) N1 = "someone"; else N1 = RelatedPRI_1.GetPlayerAlias(); if (RelatedPRI_2 == None) N2 = "someone"; else N2 = RelatedPRI_2.GetPlayerAlias(); return Repl(Repl(Default.MessageText[Switch],"`1",N1),"`2",N2); } static simulated function ClientReceive( PlayerController P, optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject ) { local UTHUD HUD; Super.ClientReceive(P, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject); HUD = UTHUD(P.myHUD); if ((HUD != None) && HUD.bIsSplitScreen && !HUD.bIsFirstPlayer) { return; } UTPlayerController(P).PlayAnnouncement(default.class, Switch); } // BattleTeamArena.uc // function ServerBroadcastMessage (int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2) // BattlePlayerController.uc // reliable server function ServerShowMessage (int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2) // reliable client function ClientShowMessage (int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2) static function bool ShouldBeRemoved(UTQueuedAnnouncement MyAnnouncement, class<UTLocalMessage> NewAnnouncementClass, int NewMessageIndex) { return true; } static function SoundNodeWave AnnouncementSound(int MessageIndex, Object OptionalObject, PlayerController PC) { // if (MessageIndex == 1) { // BattlePlayerController.uc - spec // return SoundNodeWave'A_interface.Menu.UT3MenuWeaponSelect01'; // } if (MessageIndex == 2 || MessageIndex == 3) { // BattlePawn.uc - getting thawed return SoundNodeWave'A_Ambient_NonLoops.HiTech.spark_large04'; // 0.73s } if (MessageIndex == 8 || MessageIndex == 9) { // BattlePawn.uc - thawing someone return SoundNodeWave'A_Ambient_NonLoops.HiTech.spark_large04'; // 0.73s } if (MessageIndex == 4) { // BattlePawn.uc - camp warning return SoundNodeWave'A_Pickups_Powerups.PowerUps.A_Powerup_UDamage_Warning'; // 1.17s } if (MessageIndex == 5) { // BattlePawn.uc - camp final warning return SoundNodeWave'A_Pickups_Powerups.PowerUps.A_Powerup_UDamage_Warning'; // 1.17s } if (MessageIndex == 6) { // BattlePawn.uc - back in the game return SoundNodeWave'A_interface.Menu.UT3ServerSignIn01'; } if (MessageIndex == 7) { // BattleTeamArena.uc - last one standing return SoundNodeWave'A_Gameplay.CTF.WAV.A_Gameplay_CTF_FlagAlarm01'; // 1.27s } return SoundNodeWave'A_Gameplay.Gameplay.MessageBeep'; // return SoundNodeWave'A_Vehicle_Generic.Vehicle.VehicleHorn'; // 1.04s // return SoundNodeWave'A_Vehicle_Cicada.Sounds.A_Vehicle_Cicada_TargetLock01'; // return SoundNodeWave'A_Character_BodyImpacts.BodyImpacts.A_Character_RobotImpact_GibMedium02'; // 0.67s // return SoundNodeWave'A_interface.Menu.UT3MenuWeaponSelect01'; // 0.15s // return SoundNodeWave'A_Gameplay.CTF.WAV.A_Gameplay_CTF_FlagAlarm03'; // 1.03s // return SoundNodeWave'A_Pickups.Generic.WAV.A_Pickups_Generic_ItemRespawn01'; // 1.06s // return SoundNodeWave'A_Pickups_Powerups.PowerUps.A_Powerup_Invulnerability_Warning'; // 1.08s // return SoundNodeWave'A_Pickups_Powerups.PowerUps.A_Powerup_Invisibility_Warning'; // 1.42s } defaultproperties { Name="ConMessage" }
