Advertisement
Guest User

Untitled

a guest
May 30th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.56 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3.     File: fn_onPlayerRespawn.sqf
  4.     Author: Bryan "Tonic" Boardwine
  5.     Edit: Avanix Gaming Community
  6.    
  7.     Description:
  8.     Does something but I won't know till I write it...
  9. */
  10. private["_unit","_corpse"];
  11. _unit = _this select 0;
  12. _corpse = _this select 1;
  13. life_corpse = _corpse;
  14.  
  15. /*/Comment this code out if you want them to keep the weapon on the ground.
  16. private["_containers"];
  17. _containers = nearestObjects[getPosATL _corpse,["WeaponHolderSimulated"],5]; //Fetch list of containers (Simulated = weapons)
  18. {deleteVehicle _x;} foreach _containers; //Delete the containers.
  19. */
  20. //Set some vars on our new body.
  21. _unit setVariable["restrained",FALSE,TRUE];
  22. _unit setVariable["Escorting",FALSE,TRUE];
  23. _unit setVariable["transporting",FALSE,TRUE]; //Again why the fuck am I setting this? Can anyone tell me?
  24. _unit setVariable["steam64id",(getPlayerUID player),true]; //Reset the UID.
  25. _unit setVariable["realname",profileName,true]; //Reset the players name.
  26. _unit setVariable["missingOrgan",FALSE,TRUE];
  27. _unit setVariable["hasOrgan",FALSE,TRUE];
  28. _unit setVariable["hostage",FALSE,TRUE];
  29.  
  30. _unit addRating 9999999999999999; //Set our rating to a high value, this is for a ARMA engine thing.
  31. player playMoveNow "amovppnemstpsraswrfldnon";
  32.  
  33. [] call life_fnc_setupActions;
  34. [[_unit,life_sidechat,playerSide],"TON_fnc_managesc",false,false] spawn life_fnc_MP;
  35. player enableFatigue (__GETC__(life_enableFatigue));
  36.  
  37. if(playerSide == east) then {
  38.     [] spawn life_fnc_adacLoadout;
  39. };
  40.  
  41. //if (life_isGov) then {[[],"TON_fnc_clearGov",false,false] spawn life_fnc_mp;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement