Hey NN Community,
welche Taser Animation nutzt ihr?
Ich benutze Tazer Radgoll (Realistic Tazer) bin aber damit unzufrieden, da die Funktion meist buggt.
Hey NN Community,
welche Taser Animation nutzt ihr?
Ich benutze Tazer Radgoll (Realistic Tazer) bin aber damit unzufrieden, da die Funktion meist buggt.
Wieso buggt die? dann machst du was falsch
Entweder es braucht ein bisschen bis die Person getasert wird oder wenn die Person läuft und ich ihn Taser bleibt er Stur stehen und bekommt die Radgoll animation nicht
habe das problem auch
#include "..\..\script_macros.hpp"
/*
File: fn_handleDamage.sqf
Author: Bryan "Tonic" Boardwine
Description:
Handles damage, specifically for handling the 'tazer' pistol and nothing else.
&& playerSide == civilian OR playerSide == west OR playerSide == east OR playerSide == indipendent
*/
params [
["_unit",objNull,[objNull]],
["_part","",[""]],
["_damage",0,[0]],
["_source",objNull,[objNull]],
["_projectile","",[""]],
["_index",0,[0]]
];
//Handle the tazer first (Top-Priority).
if (!isNull _source) then {
if (_source != _unit) then {
if (currentWeapon _source in ["hgun_P07_snds_F","arifle_SDAR_F","DDOPP_X26","DDOPP_X26_b"] && _projectile in ["B_9x21_Ball","B_556x45_dual","DDOPP_B_Taser"]) then {
if (side _source in [west, civilian, east, indipendent]) then {
_damage = 0;
if (alive player && !life_istazed && !life_isknocked && !(_unit getVariable ["restrained",false])) then {
private ["_distance"];
_distance = 35;
if (_projectile == "B_556x45_dual") then {_distance = 100;};
if (_unit distance _source < _distance) then {
if !(isNull objectParent player) then {
if (typeOf (vehicle player) == "B_Quadbike_01_F") then {
player action ["Eject",vehicle player];
[_unit,_source] spawn life_fnc_tazed;
};
} else {
[_unit,_source] spawn life_fnc_tazed;
};
};
};
};
//Temp fix for super tasers on cops.
if (side _source isEqualTo west && (playerSide isEqualTo west || playerSide isEqualTo independent)) then {
_damage = 0;
};
};
};
};
[] spawn life_fnc_hudUpdate;
_damage;
Alles anzeigen
der 2te Code is die fn_forceragdoll.sqf
///////////////////////////////////////////////
///////////////////////////////////////////////
if (!isNull objectParent player) exitWith {};
private "_rag";
_rag = "Land_Can_V3_F" createVehicleLocal [0,0,0];
_rag setMass 1e10;
_rag attachTo [player, [0,0,0], "Spine3"];
_rag setVelocity [0,0,6];
detach _rag;
0 = _rag spawn {
deleteVehicle _this;
};
Alles anzeigen
Eventuell kann mir jemand sagen ob und was ich falsch gemacht habe.
Ich verlink hier mal das Original Tut
habs bei mir immer noch nicht gelöst
ich hab auch das selbe Problem
Versucht mal setUnconscious .