HudEvent

From BF2 Technical Information Wiki
Revision as of 22:01, 27 December 2017 by UTurista (talk | contribs) (Created page with "Detailed information about the <code>bf2.gameLogic.sendHudEvent(player, event, data)</code> method: {| border=2 cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Detailed information about the bf2.gameLogic.sendHudEvent(player, event, data) method:


Hud Event Table
Event #
Event Name
Data
Data Name
Result/Notes
1
Close To Control Point
2
Hud State Changed
3
Hud Disable
4
Hud Enable
5
Init Loading Screen
6
Update Loading Screen
7
Set Loading Screen Debug
8
Remove Loading Screen
9
Map Zoom Changed
10
Map Static Changed
11
Squad Is Full
12
Squad Is Private
13
Squad Creation Failed
14
Squad Creation Success
15
Squad Invalid Name
16
Squad Invitation
17
Squad Join Request
18
Squad Join Request Denied
0 - 7
Squad ID
This event causes a "Your request to join #SQUADNAME# squad has been denied" message. The squad name changes depending on the supplied Squad ID.
19
Squad Join Request Accepted
0 - 7
Squad ID
This event causes a "Your request to join #SQUADNAME# squad has been accepted" message. The squad name changes depending on the supplied Squad ID.
20
Kicked From Squad 0 - 255
Player ID
This event causes a kicked from squad message, saying either "... has been kicked from your squad." or "You have been kicked from your squad", depending on the player ID.
21
Left Squad 0 - 255
Player ID
This event causes a player left squad message, saying "... has left your squad". This message will only work if the player it is sent to is in a squad. Nothing happens if the player ID is the player the message was sent to.
22
Joined Squad 0 - 255
Player ID
This event causes a player joined squad message, saying "... has joined your squad". This message will only work if the player it is sent to is in a squad. Nothing happens if the player ID is the player the message was sent to.
23
Squad Orders Received 0 - 255
Player ID
This event causes an order recieved message, saying "You have recieved a new order from your squadleader". Player ID seems to have no effect on the message. Does nothing if player message is sent to is the squad leader.
24
New Squad Leader 0 - 255
Player ID
This event causes a new squad leader message, saying either "... is your new squad leader" or "You are the new squad leader", depending on the player ID.
25
Squad Leader Request
26
Commander Orders Received
27
Commander Orders Sent
28
Squad Orders Sent
29
Request Recieved
30
Request Sent
31
Update Hud
32
Weapon Changed
33
Commander Accept
34
Commander Decline
35
Commander Invitation
36
Squad LeaderInvitation
37
Commander Resign
38
Rank Change
39
Medal Reward
40
UAV
41
Satellite
42
Artillery
43
Unit Spotted
44
Missile Lock
45
New Unlock
46
Call For Medic
47
Call For Ammo
48
Call For Repair
49
Call For Revive
50
Auto Call For Revive
51
Radio Call
52
Was Hit
53
Possibly Not Used
54
Possibly Not Used
55
Possibly Not Used
56
Possibly Not Used
57
Is Close To Mine
0-255
Player ID
58
Not Close To Mine
0-255
Player ID
59
Muted By Remote
60
Possibly Not Used
61
TK Option
62
TK Response
63
Possibly Not Used
64
Control Point Taken
65
Control Point Lost
66
Enable Help Message
49
Exit To Capture Flag
67
Enable Help
68
Possibly Not Used
69
Possibly Not Used
70
Ticket Bleed
71
Ticket State Changed
72
Begin Round
73
Possibly Not Used
74
Possibly Not Used
75
Map Change Complete
76
Map Zoom Complete

NOTE: Some hud events may cause informative messages to be sent to players ingame, but the hud event does not cause these events to happen, instead it only sends the message that would be sent if that event did happen.