-
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/argh.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/beQuiet.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/defend.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/help.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/iGottaPee.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/iMoveForNoMan.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/invincible.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/knightsWhoSay.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/loony.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/ni.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/niAgain.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/noneShallPass1.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/noneShallPass2.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/runAway.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/shruberry.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/soBeIt.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/someCallMeTim.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/strangePerson.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/tatada.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/thenYouShallDie.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/weightRatio.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/argh.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/beQuiet.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/defend.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/help.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/iGottaPee.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/iMoveForNoMan.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/invincible.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/knightsWhoSay.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/loony.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/ni.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/niAgain.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/noneShallPass1.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/noneShallPass2.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/runAway.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/shruberry.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/soBeIt.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/someCallMeTim.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/strangePerson.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/tatada.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/thenYouShallDie.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
-
Property changes on: binaries/data/mods/public/audio/taunts/weightRatio.ogg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
|
|
|
10 | 10 | var notifications = []; |
11 | 11 | var notificationsTimers = []; |
12 | 12 | var cheats = getCheatsData(); |
| 13 | var taunts = getTauntsData(); |
13 | 14 | |
| 15 | var maxTaunt=20; //length of the taunts database |
| 16 | |
14 | 17 | function getCheatsData() |
15 | 18 | { |
16 | 19 | var cheats = {}; |
… |
… |
|
26 | 29 | return cheats; |
27 | 30 | } |
28 | 31 | |
| 32 | function getTauntsData() |
| 33 | { |
| 34 | var taunts = {}; |
| 35 | var tauntFileList = getJSONFileList("simulation/data/taunts/"); |
| 36 | for each (var fileName in tauntFileList) |
| 37 | { |
| 38 | var currentTaunt = parseJSONData("simulation/data/taunts/"+fileName+".json"); |
| 39 | if (Object.keys(taunts).indexOf(currentTaunt.Name) !== -1) |
| 40 | warn("Taunt name '"+currentTaunt.Name+"' is already present"); |
| 41 | else |
| 42 | taunts[currentTaunt.Name] = currentTaunt.File; |
| 43 | } |
| 44 | return taunts; |
| 45 | } |
| 46 | |
29 | 47 | // Notifications |
30 | 48 | function handleNotifications() |
31 | 49 | { |
… |
… |
|
263 | 281 | var input = getGUIObjectByName("chatInput"); |
264 | 282 | var text = input.caption; |
265 | 283 | var isCheat = false; |
| 284 | var isTaunt = false; |
266 | 285 | if (text.length) |
267 | 286 | { |
268 | | if (g_Players[Engine.GetPlayerID()].cheatsEnabled) |
| 287 | for each (var taunt in Object.keys(taunts)) |
269 | 288 | { |
| 289 | // Line must start with the cheat. |
| 290 | if (taunt !== text) |
| 291 | continue; |
| 292 | |
| 293 | text="/taunt "+text; |
| 294 | isTaunt = true; |
| 295 | break; |
| 296 | } |
| 297 | |
| 298 | if (!isTaunt && g_Players[Engine.GetPlayerID()].cheatsEnabled) |
| 299 | { |
270 | 300 | for each (var cheat in Object.keys(cheats)) |
271 | 301 | { |
272 | 302 | // Line must start with the cheat. |
… |
… |
|
522 | 552 | else |
523 | 553 | msg.hide = true; |
524 | 554 | break; |
| 555 | case "/taunt": |
| 556 | //TODO: if (tauntsEnabled) // boolean set by checkbox in settings for example, so that individual players can decide not to play taunts (they can still read "(taunt #)") |
| 557 | var index=split[1]; |
| 558 | if (taunts[index]) |
| 559 | { |
| 560 | Engine.PlayUISound("audio/taunts/"+taunts[index]); |
| 561 | msg.text="/taunt (taunt"+split[1]+")"; |
| 562 | } |
| 563 | break; |
525 | 564 | default: |
526 | 565 | return; |
527 | 566 | } |
-
|
|
|
| 1 | { |
| 2 | "Name": "8", |
| 3 | "File": "argh.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "5", |
| 3 | "File": "beQuiet.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "3", |
| 3 | "File": "help.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | {"Name": "1", "File": "iGottaPee.ogg"} |
| 2 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "12", |
| 3 | "File": "iMoveForNoMan.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "20", |
| 3 | "File": "invincible.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "16", |
| 3 | "File": "knightsWhoSay.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "6", |
| 3 | "File": "loony.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "17", |
| 3 | "File": "ni.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "18", |
| 3 | "File": "niAgain.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "10", |
| 3 | "File": "noneShallPass1.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "11", |
| 3 | "File": "noneShallPass2.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "2", |
| 3 | "File": "runAway.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "15", |
| 3 | "File": "shruberry.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "14", |
| 3 | "File": "soBeIt.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "19", |
| 3 | "File": "someCallMeTim.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "7", |
| 3 | "File": "strangePerson.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "9", |
| 3 | "File": "tatada.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "13", |
| 3 | "File": "thenYouShallDie.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "4", |
| 3 | "File": "weightRatio.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "8", |
| 3 | "File": "argh.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "5", |
| 3 | "File": "beQuiet.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "3", |
| 3 | "File": "help.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | {"Name": "1", "File": "iGottaPee.ogg"} |
| 2 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "12", |
| 3 | "File": "iMoveForNoMan.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "20", |
| 3 | "File": "invincible.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "16", |
| 3 | "File": "knightsWhoSay.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "6", |
| 3 | "File": "loony.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "17", |
| 3 | "File": "ni.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "18", |
| 3 | "File": "niAgain.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "10", |
| 3 | "File": "noneShallPass1.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "11", |
| 3 | "File": "noneShallPass2.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "2", |
| 3 | "File": "runAway.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "15", |
| 3 | "File": "shruberry.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "14", |
| 3 | "File": "soBeIt.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "19", |
| 3 | "File": "someCallMeTim.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "7", |
| 3 | "File": "strangePerson.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "9", |
| 3 | "File": "tatada.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "13", |
| 3 | "File": "thenYouShallDie.ogg"} |
| 4 | No newline at end of file |
-
|
|
|
| 1 | { |
| 2 | "Name": "4", |
| 3 | "File": "weightRatio.ogg"} |
| 4 | No newline at end of file |