Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * ExileClient_object_player_network_createPlayerResponse
- *
- * Exile Mod
- * www.exilemod.com
- * © 2015 Exile Mod Team
- *
- * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
- * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
- */
- private["_player","_chuteNetID","_spawnType","_chute"];
- _player = _this select 0;
- _chuteNetID = _this select 1;
- _spawnType = _this select 10;
- if !(_chuteNetID isEqualTo "") then
- {
- _chute = objectFromNetId _chuteNetID;
- }
- else
- {
- _chute = objNull;
- };
- if !(isNull _chute) then
- {
- _player disableCollisionWith _chute;
- };
- _player call ExileClient_object_player_initialize;
- ExileClientPlayerIsSpawned = true;
- ExileClientPlayerAttributesASecondAgo =
- [
- ExileClientPlayerAttributes select 0,
- ExileClientPlayerAttributes select 1,
- ExileClientPlayerAttributes select 2,
- ExileClientPlayerAttributes select 3,
- ExileClientPlayerAttributes select 4,
- ExileClientPlayerAttributes select 5,
- ExileClientPlayerAttributes select 6
- ];
- switch (_spawnType) do
- {
- case 0:
- {
- };
- case 1:
- {
- player action ["GetinDriver", _chute];
- ["InfoTitleAndText", ["Watch your landing speed!", "Going faster than 20km/h might kill you."]] call ExileClient_gui_toaster_addTemplateToast;
- playsound "Spawn";
- ExileJobParachuteFix = [0.25, ExileClient_object_player_parachuteFix, [], true] call ExileClient_system_thread_addtask;
- };
- case 2:
- {
- ["InfoTitleAndText", ["Watch your landing speed!", "Going faster than 20km/h might kill you."]] call ExileClient_gui_toaster_addTemplateToast;
- playsound "Spawn";
- player switchMove "";
- player playMoveNow "HaloFreeFall_non";
- player playMoveNow "HaloFreeFall_non";
- player playMoveNow "HaloFreeFall_non";
- player setVelocity [(sin (getDir player)) * 50, (cos (getDir player)) * 50, -5];
- ExileJobParachuteFix = [0.25, ExileClient_object_player_parachuteFix, [], true] call ExileClient_system_thread_addtask;
- };
- };
- call ExileClient_object_player_initStamina;
- false call ExileClient_gui_hud_showSurvivalInfo;
- call ExileClient_system_rating_balance;
- ExileClientPlayerScore = parseNumber (_this select 2);
- ExileClientPlayerKills = _this select 3;
- ExileClientPlayerDeaths = _this select 4;
- (_this select 9) call ExileClient_system_clan_network_updateClanInfoFull;
- if!((_this select 9) isEqualTo [])then
- {
- if!(isNull ((_this select 9) select 5))then
- {
- ExileClientPartyID = netid ((_this select 9) select 5);
- };
- };
- if !(ExileClientPartyID isEqualTo -1) then
- {
- [player] joinSilent (groupFromNetId ExileClientPartyID);
- };
- if !(isNull ExileClientLastDiedPlayerObject) then
- {
- [ExileClientLastDiedPlayerObject] joinSilent (createGroup independent);
- };
- (_this select 8) call ExileClient_object_player_bambiStateBegin;
- true
Advertisement
Add Comment
Please, Sign In to add comment