source question menu

User Tag List

Results 1 to 7 of 7
  1. #1
    houseplant2's Avatar Active Member
    Reputation
    50
    Join Date
    Feb 2007
    Posts
    195
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    source question

    i want to set the underwater damage to zero but im not sure how to go about it. i think its handled here:

    if(m_UnderwaterState & UNDERWATERSTATE_UNDERWATER)
    {
    // keep subtracting timer
    if(m_UnderwaterTime)
    {
    // not taking dmg yet
    if(p_time >= m_UnderwaterTime)
    m_UnderwaterTime = 0;
    else
    m_UnderwaterTime -= p_time;
    }

    if(!m_UnderwaterTime)
    {
    // check last damage dealt timestamp, and if enough time has elapsed deal damage
    if(mstime >= m_UnderwaterLastDmg)
    {
    uint32 damage = m_uint32Values[UNIT_FIELD_MAXHEALTH] / 10;
    WorldPacket data(SMSG_ENVIRONMENTALDAMAGELOG, 21);
    data << GetGUID() << uint8(DAMAGE_DROWNING) << damage << uint64(0);
    SendMessageToSet(&data, true);

    DealDamage(this, damage, 0, 0, 0);
    m_UnderwaterLastDmg = mstime + 1000;
    }
    }
    }
    else
    {
    // check if we're not on a full breath timer
    if(m_UnderwaterTime < m_UnderwaterMaxTime)
    {
    // regenning
    m_UnderwaterTime += (p_time * 10);
    if(m_UnderwaterTime >= m_UnderwaterMaxTime)
    {
    m_UnderwaterTime = m_UnderwaterMaxTime;
    StopMirrorTimer(1);
    }
    }
    }

    but im not sure what to change. can someone offer up some advise? hopefull i found the right spot that handles it. thanks for any help.

    source question
  2. #2
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you're using Aspire/Hearthstone, try checking your world config. There should be an entry for EnableBreathing. Set it to 0 to eliminate the breath meter.

  3. #3
    Bunster's Avatar Active Member
    Reputation
    19
    Join Date
    May 2008
    Posts
    553
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TheSpidey View Post
    If you're using Aspire/Hearthstone, try checking your world config. There should be an entry for EnableBreathing. Set it to 0 to eliminate the breath meter.
    confirmed works

  4. #4
    houseplant2's Avatar Active Member
    Reputation
    50
    Join Date
    Feb 2007
    Posts
    195
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no im using r2016 of ascent. i cant upgrade it. i tried disable breathing. it removes the breath bar but it still kills you after x ammount of time. sweird.

  5. #5
    CoolManBob's Avatar Active Member
    Reputation
    92
    Join Date
    Jul 2006
    Posts
    208
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    where it says
    Code:
    DealDamage(this, damage, 0, 0, 0);
    change it to
    Code:
    DealDamage(this, 0, 0, 0, 0);
    it will still give you a breath timer and it will still run out but when it does it will deal no damage

  6. #6
    Clain's Avatar Banned
    Reputation
    179
    Join Date
    Jan 2008
    Posts
    1,396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    r2016 of Ascent? Thats like patch 2.0. Anyways...

    EDIT: CoolManBob got it first

  7. #7
    houseplant2's Avatar Active Member
    Reputation
    50
    Join Date
    Feb 2007
    Posts
    195
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    awesome thanks! that will help allot. thanks for all the responses as well! apparently i have given out to much rep and have to wait. but i will not forget. thanks!
    Last edited by houseplant2; 01-17-2009 at 03:03 PM.

Similar Threads

  1. [Question]Why do i need the source account's SQ/A?
    By Bird Is The Word in forum World of Warcraft General
    Replies: 3
    Last Post: 07-21-2008, 11:19 PM
  2. [Question] How to compile WarpNPC source code?
    By Shaak in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 05-14-2008, 02:40 PM
  3. [QUESTION] Compiling An Existing Source
    By Rouslan in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 03-05-2008, 07:43 AM
  4. [Question] Moding Global NPC Source Code
    By vasko93 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-28-2007, 10:11 AM
  5. [QUESTION] Compiling NoggIt Source Code
    By DJRehab in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 12-03-2007, 02:42 AM
All times are GMT -5. The time now is 06:14 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search