GameEvent

From BF2 Technical Information Wiki
Jump to navigation Jump to search

Detailed information about the bf2.gameLogic.sendGameEvent(playerObject, event, data) method:


Game Event Table
Event # Data
Result
Notes
1
0
Sets GameStatus to zero. Status zero, however, doesn't exist. Appears to turn the current game mode off.
1
Sets GameStatus to Playing.
2
Sets GameStatus to EndGame. This ends the current round.
3
Sets GameStatus to PreGame.
4
Sets GameStatus to Paused. Causes many odd things to happen.
5
Sets GameStatus to RestartServer.
6
Sets GameStatus to NotConnected.
2
All
None Unknown function for the moment.
3
All
None Unknown function for the moment.
4
All
None Unknown function for the moment.
5
All
None Unknown function for the moment.
6
All
None Unknown function for the moment.
7
All
None Unknown function for the moment.
8
All
None Unknown function for the moment.
9
0
None Appears to do nothing.
1
"You got a targeting assist!"
2
"You got a kill damage assist!"
3
"You got a driver kill assist!"
10
0
"You got a healing point!"
1
"You got a repair point"
2
"You got an ammo giving point!"
3
"You got an driver ability assist!"
4
"You got a revive score!"
5
"You got points for destroying strategic object"
11
0
"Team damage! Don't hurt your teammates"
1
"Team vehicle damage!"
12
0
"You have received points for Flag Capture!"
1
"Defended flag!"
2
"You got a capture assist point!"
3
"You got a neutralize point!"
4
"You got a neutralize assist point!"
5
"You have destroyed strategic objective!"
13
0
None
1
Blurs the players screen for a short period. If player is in a jet, blur lasts much longer. Bug or intended?

NOTE: Although things like "You got a capture assist point!" give you points during normal gameplay, this is not the case when sending the same game event. Instead it only gives the player the message, but no points.


The above table was made possible through the efforts of =Mad=


Event #
Possible Name
1
ECGameLogicGLGameStatus
2
ECGameLogicGLControlPointChangedTeam
3
ECGameLogicGLKilledBy
4
ECGameLogicGLLowOnTickets
5
ECGameLogicGLFailedToChangePosition
6
ECGameLogicGLReset
7
ECGameLogicGLStartApplyForCommander
8
ECGameLogicGLChangedTeam
9
ECGameLogicGLAssistKill
10
ECGameLogicGLReplenish
11
ECGameLogicGLTeamDamage
12
ECGameLogicGLConquest
13
ECGameLogicGLTinnitus
14
ECGameLogicGLRevive
15
ECGameLogicGLGameEventLocal
16
Not Used
17
ECGameLogicGLUAV
18
ECGameLogicGLScan


To the left is a table that connects event numbers up to their internal name in the Battlefield 2 game engine. Hopefully knowing the names of these events will help us figure out what data needs to be sent to them. --King of Camelot 17:21, 7 Aug 2005 (MDT)