Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHS hitpoints for infantry #28

Open
Tachii opened this issue Feb 3, 2015 · 4 comments
Open

RHS hitpoints for infantry #28

Tachii opened this issue Feb 3, 2015 · 4 comments

Comments

@Tachii
Copy link

Tachii commented Feb 3, 2015

They have their own hitpoints values, which makes their units more fat. It takes more shots to kill RHS infantryman then any other inf. unit in the game

http://feedback.rhsmods.org/view.php?id=244

@Tachii Tachii changed the title RHS hitpoint of infantry RHS hitpoints armor of infantry Feb 3, 2015
@jonpas
Copy link
Contributor

jonpas commented Feb 3, 2015

Thanks for making a ticket on their feedback tracker. Not sure if we can do anything on this side, and it's probably also not worth it.

@Tachii
Copy link
Author

Tachii commented Feb 3, 2015

You can do something like this:

class CfgPatches
{
    class utg_hitpoints_fix
    {
        units[]={};
        weapons[]={};
        requiredVersion=0.1;
        requiredAddons[]=
        {
            "AGM_Core",
            "rhs_c_troops",
            "rhsusf_c_troops"
        };
        version=0.1;
        author[]=
        {
            "Tachi"
        };
        authorUrl="http://tacticalgaming.kiev.ua/";
    };
};
class HitPoints;
class HitHead;
class HitBody;
class HitHands;
class HitLegs;

class CfgVehicles
{
class SoldierEB;
    class rhs_infantry_msv_base : SoldierEB
    {
        class HitPoints: HitPoints
        {

            class HitHead : HitHead
            {
                armor=1;
                passThrough=1;
                radius=0.1;
                explosionShielding=0.5;
                minimalHit=0;
            };
            class HitBody : HitBody
            {
                armor=1;
                passThrough=1;
                radius=0.15000001;
                explosionShielding=10;
                minimalHit=0;
            };
            class HitHands : HitHands
            {
                armor=1;
                passThrough=1;
                radius=0.079999998;
                explosionShielding=1;
                minimalHit=0;
            };
            class HitLegs : HitLegs
            {
                armor=1;
                passThrough=1;
                radius=0.1;
                explosionShielding=1;
                minimalHit=0;
            };

        };
    };

    class rhs_infantry_vdv_base : rhs_infantry_msv_base
    {
        class HitPoints : HitPoints
        {
            class HitHead : HitHead
            {
                armor=1;
                passThrough=1;
                radius=0.1;
                explosionShielding=0.5;
                minimalHit=0;
            };
            class HitBody : HitBody
            {
                armor=1;
                passThrough=1;
                radius=0.15000001;
                explosionShielding=10;
                minimalHit=0;
            };
            class HitHands : HitHands
            {
                armor=1;
                passThrough=1;
                radius=0.079999998;
                explosionShielding=1;
                minimalHit=0;
            };
            class HitLegs : HitLegs
            {
                armor=1;
                passThrough=1;
                radius=0.1;
                explosionShielding=1;
                minimalHit=0;
            };
        };
    };

    class rhsusf_infantry_army_base : SoldierEB
    {
        class HitPoints : HitPoints
        {
            class HitHead : HitHead
            {
                armor=1;
                passThrough=1;
                radius=0.1;
                explosionShielding=0.5;
                minimalHit=0;
            };
            class HitBody : HitBody
            {
                armor=1;
                passThrough=1;
                radius=0.15000001;
                explosionShielding=10;
                minimalHit=0;
            };
            class HitHands : HitHands
            {
                armor=1;
                passThrough=1;
                radius=0.079999998;
                explosionShielding=1;
                minimalHit=0;
            };
            class HitLegs : HitLegs
            {
                armor=1;
                passThrough=1;
                radius=0.1;
                explosionShielding=1;
                minimalHit=0;
            };
        };
    };
};
class cfgMods
{
    author="76561198037478484";
    timepacked="1422990443";
};

@Tachii
Copy link
Author

Tachii commented Feb 3, 2015

But if you do this, AGM_Medical gives next error if RHS soldeir is getting hit.

19:24:29 File AGM_Medical\functions\fn_handleDamage.sqf, line 180
19:24:29 Error in expression <s getHitPointDamage "HitRightLeg");
if (_damagesum <= 0.06 and (damage _this) > >
19:24:29 Error position: <_damagesum <= 0.06 and (damage _this) > >
19:24:29 Error Undefined variable in expression: _damagesum

@Tachii Tachii changed the title RHS hitpoints armor of infantry RHS hitpoints for infantry Feb 3, 2015
@Tachii
Copy link
Author

Tachii commented Feb 3, 2015

Updated the config, should help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants