Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2009, 09:53 PM
eqemuross
Hill Giant
 
Join Date: Sep 2008
Location: South Florida
Posts: 100
Default Way to increase hit box? Or is that through the source?

Thank you...
Reply With Quote
  #2  
Old 09-07-2009, 10:32 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

I believe that hit box is controlled by the client.
The size of the mob does matter, but for some models the hit box can be either much larger that the mob or in some case much smaller.

New rat models introduced in OoW for example have hit box MUCH bigger than its model, which result in some ridiculous fight animation at times.

In other words, there is probably no way to control it, at least not yet.
Reply With Quote
  #3  
Old 09-08-2009, 12:09 AM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

The hitbox is calculated via Mob::CombatRange():

Code:
bool Mob::CombatRange(Mob* other)
{
        if(!other)
                return(false);

        float size_mod = GetSize();
        float other_size_mod = other->GetSize();

        if(GetRace() == 49 || GetRace() == 158 || GetRace() == 196) //For races with a fixed size
                size_mod = 60.0f;
        else if (size_mod < 6.0)
                size_mod = 8.0f;

        if(other->GetRace() == 49 || other->GetRace() == 158 || other->GetRace() == 196) //For races with a fixed size
                other_size_mod = 60.0f;
        else if (other_size_mod < 6.0)
                other_size_mod = 8.0f;

        if (other_size_mod > size_mod)
        {
                size_mod = other_size_mod;
        }

        // this could still use some work, but for now it's an improvement....

        if (size_mod > 29)
                size_mod *= size_mod;
        else if (size_mod > 19)
                size_mod *= size_mod * 2;
        else
                size_mod *= size_mod * 4;


        // prevention of ridiculously sized hit boxes
        if (size_mod > 10000)
                size_mod = size_mod / 7;
        
        if (DistNoRoot(*other) <= size_mod)
        {
                return true;
        }
        return false;
}
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #4  
Old 09-08-2009, 12:25 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

if it does- can we have those insane size hit box rats fixed/adjusted somehow?

I mean I am trying to make a giant rat (new model). I have to make it at least size 20 to bring it up to be at least man size, but it then gets a hit box like hill giant, and fights start to look very unrealistic, with me pounding in melee on a creature who stands like 10 feet away
Reply With Quote
  #5  
Old 09-08-2009, 12:47 AM
eqemuross
Hill Giant
 
Join Date: Sep 2008
Location: South Florida
Posts: 100
Default

What about PvP hitbox?
Reply With Quote
  #6  
Old 09-08-2009, 01:05 AM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Quote:
Originally Posted by eqemuross View Post
What about PvP hitbox?
It uses the same calculation.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #7  
Old 09-12-2009, 02:09 AM
eqemuross
Hill Giant
 
Join Date: Sep 2008
Location: South Florida
Posts: 100
Default

so i don't see this in the source at all, but i see it mentioned in the header file. should i just paste it in the mob.cpp and edit the values to my liking?
Reply With Quote
  #8  
Old 09-12-2009, 02:52 AM
eqemuross
Hill Giant
 
Join Date: Sep 2008
Location: South Florida
Posts: 100
Default

Quote:
Originally Posted by eqemuross View Post
so i don't see this in the source at all, but i see it mentioned in the header file. should i just paste it in the mob.cpp and edit the values to my liking?
nm... found it in aggro.cpp, should have clinked that link earlier!

sorry for the stupid questions :(
Reply With Quote
  #9  
Old 09-12-2009, 04:27 AM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,449
Default

Quote:
Originally Posted by eqemuross View Post
nm... found it in aggro.cpp, should have clinked that link earlier!

sorry for the stupid questions :(
Quick FYI, follow this presentation I made to see where a function is referenced. You can use ctrl f to find it:

click

And by the by, I just found a really great program called Wink for making presentations. It's by far the best thing i've come across in a while.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:17 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3