https://bf2tech.uturista.pt/index.php?title=GameEvent&feed=atom&action=historyGameEvent - Revision history2024-03-29T12:46:44ZRevision history for this page on the wikiMediaWiki 1.40.1https://bf2tech.uturista.pt/index.php?title=GameEvent&diff=33&oldid=prevUTurista: Created page with "Detailed information about the <code>bf2.gameLogic.sendGameEvent(playerObject, event, data)</code> method: {| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1..."2017-12-27T22:01:53Z<p>Created page with "Detailed information about the <code>bf2.gameLogic.sendGameEvent(playerObject, event, data)</code> method: {| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1..."</p>
<p><b>New page</b></p><div>Detailed information about the <code>bf2.gameLogic.sendGameEvent(playerObject, event, data)</code> method:<br />
<br />
<br />
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; width: 100%;".<br />
|+'''Game Event Table'''<br />
|'''Event #'''||'''Data'''||<center>'''Result'''</center>||<center>'''Notes'''</center><br />
|-<br />
|<center>1</center>||<center>0</center>||Sets GameStatus to zero.||Status zero, however, doesn't exist. Appears to turn the current game mode off.<br />
|-<br />
| ||<center>1</center>||Sets GameStatus to '''Playing'''.<br />
|-<br />
| ||<center>2</center>||Sets GameStatus to '''EndGame'''.||This ends the current round.<br />
|-<br />
| ||<center>3</center>||Sets GameStatus to '''PreGame'''.<br />
|-<br />
| ||<center>4</center>||Sets GameStatus to '''Paused'''.||Causes many odd things to happen.<br />
|-<br />
| ||<center>5</center>||Sets GameStatus to '''RestartServer'''.<br />
|-<br />
| ||<center>6</center>||Sets GameStatus to '''NotConnected'''.<br />
|-<br />
|<center>2</center>||<center>All</center>||None||Unknown function for the moment.<br />
|-<br />
|<center>3</center>||<center>All</center>||None||Unknown function for the moment.<br />
|-<br />
|<center>4</center>||<center>All</center>||None||Unknown function for the moment.<br />
|-<br />
|<center>5</center>||<center>All</center>||None||Unknown function for the moment.<br />
|-<br />
|<center>6</center>||<center>All</center>||None||Unknown function for the moment.<br />
|-<br />
|<center>7</center>||<center>All</center>||None||Unknown function for the moment.<br />
|-<br />
|<center>8</center>||<center>All</center>||None||Unknown function for the moment.<br />
|-<br />
|<center>9</center>||<center>0</center>||None||Appears to do nothing.<br />
|-<br />
| ||<center>1</center>||"You got a targeting assist!"<br />
|-<br />
| ||<center>2</center>||"You got a kill damage assist!"<br />
|-<br />
| ||<center>3</center>||"You got a driver kill assist!"<br />
|-<br />
|<center>10</center>||<center>0</center>||"You got a healing point!"||<br />
|-<br />
| ||<center>1</center>||"You got a repair point"<br />
|-<br />
| ||<center>2</center>||"You got an ammo giving point!"<br />
|-<br />
| ||<center>3</center>||"You got an driver ability assist!"<br />
|-<br />
| ||<center>4</center>||"You got a revive score!"<br />
|-<br />
| ||<center>5</center>||"You got points for destroying strategic object"<br />
|-<br />
|<center>11</center>||<center>0</center>||"Team damage! Don't hurt your teammates"||<br />
|-<br />
| ||<center>1</center>||"Team vehicle damage!"<br />
|-<br />
|<center>12</center>||<center>0</center>||"You have received points for Flag Capture!"||<br />
|-<br />
| ||<center>1</center>||"Defended flag!"<br />
|-<br />
| ||<center>2</center>||"You got a capture assist point!"<br />
|-<br />
| ||<center>3</center>||"You got a neutralize point!"<br />
|-<br />
| ||<center>4</center>||"You got a neutralize assist point!"<br />
|-<br />
| ||<center>5</center>||"You have destroyed strategic objective!"<br />
|-<br />
|<center>13</center>||<center>0</center>||None||<br />
|-<br />
| ||<center>1</center>||Blurs the players screen for a short period.||If player is in a jet, blur lasts much longer. Bug or intended?<br />
|-<br />
|}<br />
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.<br />
<br />
<br />
The above table was made possible through the efforts of [[User:=Mad=|=Mad=]]<br />
<br />
----<br />
<br />
{| border="2" align=left cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse;".<br />
|'''Event #'''||'''<center>Possible Name</center>'''<br />
|-<br />
|<center>1</center>||<center>ECGameLogicGLGameStatus</center><br />
|-<br />
|<center>2</center>||<center>ECGameLogicGLControlPointChangedTeam</center><br />
|-<br />
|<center>3</center>||<center>ECGameLogicGLKilledBy</center><br />
|-<br />
|<center>4</center>||<center>ECGameLogicGLLowOnTickets</center><br />
|-<br />
|<center>5</center>||<center>ECGameLogicGLFailedToChangePosition</center><br />
|-<br />
|<center>6</center>||<center>ECGameLogicGLReset</center><br />
|-<br />
|<center>7</center>||<center>ECGameLogicGLStartApplyForCommander</center><br />
|-<br />
|<center>8</center>||<center>ECGameLogicGLChangedTeam</center><br />
|-<br />
|<center>9</center>||<center>ECGameLogicGLAssistKill</center><br />
|-<br />
|<center>10</center>||<center>ECGameLogicGLReplenish</center><br />
|-<br />
|<center>11</center>||<center>ECGameLogicGLTeamDamage</center><br />
|-<br />
|<center>12</center>||<center>ECGameLogicGLConquest</center><br />
|-<br />
|<center>13</center>||<center>ECGameLogicGLTinnitus</center><br />
|-<br />
|<center>14</center>||<center>ECGameLogicGLRevive</center><br />
|-<br />
|<center>15</center>||<center>ECGameLogicGLGameEventLocal</center><br />
|-<br />
|<center>16</center>||<center>Not Used</center><br />
|-<br />
|<center>17</center>||<center>ECGameLogicGLUAV</center><br />
|-<br />
|<center>18</center>||<center>ECGameLogicGLScan</center><br />
|-<br />
|}<br />
<br />
<br />
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. --[[User:King of Camelot|King of Camelot]] 17:21, 7 Aug 2005 (MDT)</div>UTurista