Giter Site home page Giter Site logo

Comments (7)

CaptainPStar avatar CaptainPStar commented on June 24, 2024 1

No need, I already prepped a fix that will be published tomorrow.

from co10_escape.

aussie-battler avatar aussie-battler commented on June 24, 2024

II think this is the answer, it seems to work.

https://github.com/CaptainPStar/Revive/blob/908c5bcda6bc5c2e6873a23d259fb0817bd7c687/functions/Revive/fn_HandleDamage.sqf

params ["_unit","_bodyPart","_amountOfDamage","_killer","_projectile","_context"];

if (_context > 2) exitWith {};

//["HitFace","HitNeck","HitPelvis","HitAbdomen","HitDiaphragm","HitChest","HitArms","HitHead","HitBody","HitHands","HitLegs"]
//["face_hub","neck","pelvis","spine1","spine2","spine3","arms","head","body","hands","legs"]
if (alive _unit
	&& {_amountOfDamage >= 1}
	&& {!(_unit getVariable ["AT_Revive_isUnconscious",false])}
	&& {_bodyPart in ["","head","face_hub","head_hit","neck","spine1","spine2","spine3","pelvis","body"]}
) then {
	_unit setDamage 0;
	_unit allowDamage false;
	_amountOfDamage = 0;
	[_unit, _killer] spawn ATR_FNC_Unconscious;
};
_amountOfDamage;

Ill push a pull request on github if it doesnt have any bugs.

from co10_escape.

aussie-battler avatar aussie-battler commented on June 24, 2024

@UrstMcRedHead my fix doesnt work. When you get killed by explosions it bypasses the unconscious state & you become a default soldier.

from co10_escape.

benji91919 avatar benji91919 commented on June 24, 2024

I downloaded the new escape version but i still get the revive bug.

from co10_escape.

navelbarnet avatar navelbarnet commented on June 24, 2024

Hello!
First of all, thank you for this mission and the time you put into making it! Me and my friends play it regularly and it is the best mission we ever played!
Just wanted to post that we also tried the newest version of the mission Commit 9158b2c and still got the issue. Before we get the bugg, it seems like our characters spawn 2 or more ragdolls when we get unconsious. That is a givaway that the bug will happen if we revive that player. Just wanted to give that info IF it would help in any way.
Looking forward to a fix! Keep up the good work and thanks again!

from co10_escape.

CaptainPStar avatar CaptainPStar commented on June 24, 2024

Thanks @navelbarnet . Indeed the bug is not fixed yet. But I have a concept I need to implement that will fix it quite sure.
The double-ragdoll is not a bug. It is caused by a different timing in animation I tried to fix the problem.

from co10_escape.

CaptainPStar avatar CaptainPStar commented on June 24, 2024

Fixed in f0cc369

from co10_escape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.