The final suggestion!

Discussion in 'Implemented' started by LordDz_2, Oct 18, 2012.

  1. LordDz_2

    LordDz_2 Strange things happens here

    Messages:
    2,956
    Likes Received:
    93
    Trophy Points:
    0
    Ahah! I've finally found it.
    In player.cpp, change this:
    void CBasePlayer::onDamagedByExplosion( const CTakeDamageInfo &info )
    {
    float lastDamage = info.GetDamage();

    float distanceFromPlayer = 9999.0f;

    CBaseEntity *inflictor = info.GetInflictor();
    if ( inflictor )
    {
    Vector delta = GetAbsOrigin() - inflictor->GetAbsOrigin();
    distanceFromPlayer = delta.Length();
    }

    bool ear_ringing = distanceFromPlayer < MIN_EAR_RINGING_DISTANCE ? true : false;
    bool shock = lastDamage >= MIN_SHOCK_AND_CONFUSION_DAMAGE;
    Comment the whole shit out!
    /*

    if ( !shock && !ear_ringing )
    return;

    int effect = shock ?
    random->RandomInt( 35, 37 ) :
    random->RandomInt( 32, 34 );

    CSingleUserRecipientFilter user( this );
    enginesound->SetPlayerDSP( user, effect, false );
    */

    }

    Thanks. :|ove:
     
    Last edited: Oct 18, 2012
  2. Jephir

    Jephir ALL GLORY TO THE JEPHIR

    Messages:
    1,409
    Likes Received:
    6
    Trophy Points:
    0
  3. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    you are a hero dz

    edit:
    also you could comment 2 more lines above aswell, but jephir probably saw that already.

    edit 2:
    actually you can strip the wohle if further above too, cant you?

    edit3:
    ok the whole fuction is quite redundant, so i assume there is code missing?!
     
    Last edited: Oct 18, 2012
  4. LordDz_2

    LordDz_2 Strange things happens here

    Messages:
    2,956
    Likes Received:
    93
    Trophy Points:
    0
    Can I get a dev title now? :D
     
  5. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    so thats what its all about and i thought your intention was to make the sound bearable :)
     
    Last edited: Oct 21, 2012
  6. w00kie

    w00kie Mustachioed Mexican

    Messages:
    3,863
    Likes Received:
    13
    Trophy Points:
    0
    :eek: HAIL JEPHIR!
    No more crusted blood in both ears after a night of empires.

    Will this maybe even fix the overall high pitch of most sounds ingame? Mootant bragged about that before he stopped being Mootant.
     
  7. complete_

    complete_ lamer

    Messages:
    6,438
    Likes Received:
    144
    Trophy Points:
    0
    fuck this game fixing all the bugs n shit
     
  8. Lawliet

    Lawliet Member

    Messages:
    869
    Likes Received:
    19
    Trophy Points:
    0
    +1. Dz for dev 2012-2013
     
  9. LordDz_2

    LordDz_2 Strange things happens here

    Messages:
    2,956
    Likes Received:
    93
    Trophy Points:
    0
    Hey, I also found the function for changing the rpg trail colour!
    Can I have the source code now? :)
     
  10. w00kie

    w00kie Mustachioed Mexican

    Messages:
    3,863
    Likes Received:
    13
    Trophy Points:
    0
    May I send you flowers?
     
  11. ViroMan

    ViroMan Black Hole (*sniff*) Bully

    Messages:
    8,382
    Likes Received:
    4
    Trophy Points:
    0
    did we want to change rpg smoke? I thought it was fine the way it is.
     
  12. w00kie

    w00kie Mustachioed Mexican

    Messages:
    3,863
    Likes Received:
    13
    Trophy Points:
    0
    AFAIR nobody knew how to change rpg smoke.
     
  13. Trickster

    Trickster Retired Developer

    Messages:
    16,576
    Likes Received:
    46
    Trophy Points:
    0
    No. It's an old joke about some guy who got to be a dev, but all he could do was change the RPG smoke to purple, and then he just leaked all the code.
     
  14. Paradox

    Paradox I am a gigantic asshole who loses people's hard wo

    Messages:
    6,926
    Likes Received:
    148
    Trophy Points:
    0
    genius.
     

Share This Page