Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <macro.h>
- /*
- File: fn_onPlayerRespawn.sqf
- Author: Bryan "Tonic" Boardwine
- Edit: Avanix Gaming Community
- Description:
- Does something but I won't know till I write it...
- */
- private["_unit","_corpse"];
- _unit = _this select 0;
- _corpse = _this select 1;
- life_corpse = _corpse;
- /*/Comment this code out if you want them to keep the weapon on the ground.
- private["_containers"];
- _containers = nearestObjects[getPosATL _corpse,["WeaponHolderSimulated"],5]; //Fetch list of containers (Simulated = weapons)
- {deleteVehicle _x;} foreach _containers; //Delete the containers.
- */
- //Set some vars on our new body.
- _unit setVariable["restrained",FALSE,TRUE];
- _unit setVariable["Escorting",FALSE,TRUE];
- _unit setVariable["transporting",FALSE,TRUE]; //Again why the fuck am I setting this? Can anyone tell me?
- _unit setVariable["steam64id",(getPlayerUID player),true]; //Reset the UID.
- _unit setVariable["realname",profileName,true]; //Reset the players name.
- _unit setVariable["missingOrgan",FALSE,TRUE];
- _unit setVariable["hasOrgan",FALSE,TRUE];
- _unit setVariable["hostage",FALSE,TRUE];
- _unit addRating 9999999999999999; //Set our rating to a high value, this is for a ARMA engine thing.
- player playMoveNow "amovppnemstpsraswrfldnon";
- [] call life_fnc_setupActions;
- [[_unit,life_sidechat,playerSide],"TON_fnc_managesc",false,false] spawn life_fnc_MP;
- player enableFatigue (__GETC__(life_enableFatigue));
- if(playerSide == east) then {
- [] spawn life_fnc_adacLoadout;
- };
- //if (life_isGov) then {[[],"TON_fnc_clearGov",false,false] spawn life_fnc_mp;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement