Hellstyrant

ExileClient_object_player_network_createPlayerResponse.sqf

May 19th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. /**
  2. * ExileClient_object_player_network_createPlayerResponse
  3. *
  4. * Exile Mod
  5. * www.exilemod.com
  6. * © 2015 Exile Mod Team
  7. *
  8. * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  9. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  10. */
  11.  
  12. private["_player","_chuteNetID","_spawnType","_chute"];
  13. _player = _this select 0;
  14. _chuteNetID = _this select 1;
  15. _spawnType = _this select 10;
  16. if !(_chuteNetID isEqualTo "") then
  17. {
  18. _chute = objectFromNetId _chuteNetID;
  19. }
  20. else
  21. {
  22. _chute = objNull;
  23. };
  24. if !(isNull _chute) then
  25. {
  26. _player disableCollisionWith _chute;
  27. };
  28. _player call ExileClient_object_player_initialize;
  29. ExileClientPlayerIsSpawned = true;
  30. ExileClientPlayerAttributesASecondAgo =
  31. [
  32. ExileClientPlayerAttributes select 0,
  33. ExileClientPlayerAttributes select 1,
  34. ExileClientPlayerAttributes select 2,
  35. ExileClientPlayerAttributes select 3,
  36. ExileClientPlayerAttributes select 4,
  37. ExileClientPlayerAttributes select 5,
  38. ExileClientPlayerAttributes select 6
  39. ];
  40. switch (_spawnType) do
  41. {
  42. case 0:
  43. {
  44. };
  45. case 1:
  46. {
  47. player action ["GetinDriver", _chute];
  48. ["InfoTitleAndText", ["Watch your landing speed!", "Going faster than 20km/h might kill you."]] call ExileClient_gui_toaster_addTemplateToast;
  49. playsound "Spawn";
  50. ExileJobParachuteFix = [0.25, ExileClient_object_player_parachuteFix, [], true] call ExileClient_system_thread_addtask;
  51. };
  52. case 2:
  53. {
  54. ["InfoTitleAndText", ["Watch your landing speed!", "Going faster than 20km/h might kill you."]] call ExileClient_gui_toaster_addTemplateToast;
  55. playsound "Spawn";
  56. player switchMove "";
  57. player playMoveNow "HaloFreeFall_non";
  58. player playMoveNow "HaloFreeFall_non";
  59. player playMoveNow "HaloFreeFall_non";
  60. player setVelocity [(sin (getDir player)) * 50, (cos (getDir player)) * 50, -5];
  61. ExileJobParachuteFix = [0.25, ExileClient_object_player_parachuteFix, [], true] call ExileClient_system_thread_addtask;
  62. };
  63. };
  64. call ExileClient_object_player_initStamina;
  65. false call ExileClient_gui_hud_showSurvivalInfo;
  66. call ExileClient_system_rating_balance;
  67. ExileClientPlayerScore = parseNumber (_this select 2);
  68. ExileClientPlayerKills = _this select 3;
  69. ExileClientPlayerDeaths = _this select 4;
  70. (_this select 9) call ExileClient_system_clan_network_updateClanInfoFull;
  71. if!((_this select 9) isEqualTo [])then
  72. {
  73. if!(isNull ((_this select 9) select 5))then
  74. {
  75. ExileClientPartyID = netid ((_this select 9) select 5);
  76. };
  77. };
  78. if !(ExileClientPartyID isEqualTo -1) then
  79. {
  80. [player] joinSilent (groupFromNetId ExileClientPartyID);
  81. };
  82. if !(isNull ExileClientLastDiedPlayerObject) then
  83. {
  84. [ExileClientLastDiedPlayerObject] joinSilent (createGroup independent);
  85. };
  86. (_this select 8) call ExileClient_object_player_bambiStateBegin;
  87. true
Advertisement
Add Comment
Please, Sign In to add comment