Advertisement
TheGamingChief

Untitled

Jun 10th, 2015
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. #define AT_SPAWN _nearNow=call _atSpawn;{if!(_x in _nearFinal)then{_nearFinal set [count _nearFinal,_x];};}count _nearNow;
  2. private ["_debug","_go","_holder","_isPZombie","_platform"];
  3.  
  4. _debug = getMarkerPos "respawn_west";
  5. if (isClass(configFile >> "CfgWeapons" >> "Chainsaw")) then {
  6. if (surfaceIsWater _debug) then {
  7. _debug set [2,2];
  8. _platform = "MetalFloor_DZ" createVehicleLocal _debug;
  9. _platform setPosASL _debug;
  10. _platform allowDamage false;
  11. _platform hideObject true;
  12. _platform enableSimulation false;
  13. };
  14. waitUntil {!isNil "PVDZE_plr_LoginRecord"};
  15. _isPZombie = player isKindOf "PZombie_VB";
  16. _go = dayzPlayerLogin2 select 2;
  17. } else {
  18. waitUntil {!isNil "PVDZ_plr_LoginRecord"};
  19. _isPZombie = false;
  20. _go = if (count PVCDZ_plr_Login2 > 3) then {PVCDZ_plr_Login2 select 3} else {PVCDZ_plr_Login2 select 2};
  21. };
  22.  
  23. if (_go) then {
  24. enableEnvironment false;
  25. 0 fadeSound 0;
  26. if ((player distance _debug) > 100) then {
  27. _debug = getPosATL player;
  28. if (surfaceIsWater _debug) then {_debug = getPosASL player;};
  29. };
  30. _holder = "Survivor1_DZ" createVehicleLocal _debug;
  31. if (surfaceIsWater _debug) then {_holder setPosASL _debug;};
  32. player attachTo [_holder,[0,0,0]];
  33. _nearFinal = [];
  34. _atSpawn = {
  35. private "_ret";_ret=[];
  36. dayz_temperatur = 36;
  37. DZE_InRadiationZone = false;
  38. fnc_usec_damageHandler = {};
  39. player hideObject true;
  40. player switchCamera "INTERNAL";
  41. player setVariable ["combattimeout",0,false];
  42. {if (!local _x) then {_x hideObject true;};_x allowDamage false;_ret set [count _ret,_x];} count (player nearEntities ["Man",100]);
  43. _ret
  44. };
  45.  
  46. #include "class.sqf"
  47. #include "spawn.sqf"
  48. #include "halo.sqf"
  49. #include "startSpawn.sqf"
  50.  
  51. {_x hideObject false;_x allowDamage true;player reveal _x;} count _nearFinal;
  52. deleteVehicle _holder;
  53. fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
  54. enableEnvironment true;
  55. 0 fadeSound 1;
  56. if (isNil "_halo") then {cutText ["","BLACK IN"];};
  57. profileNamespace setVariable["coinsRecentlyAdded",false];saveProfileNamespace;
  58. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement