Raised This Month: $ Target: $400
 0% 

special god mode (disable hitboxes)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Undisclosed
Junior Member
Join Date: Apr 2006
Old 01-01-2007 , 21:23   special god mode (disable hitboxes)
Reply With Quote #1

How do I disable hitboxes for players? I want the bullets to just go right through the players. If its a normal god mode, players will still be slow down for being hit by bullets.

Thank you for your help
Undisclosed is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 01-02-2007 , 11:08   Re: special god mode (disable hitboxes)
Reply With Quote #2

What do you mean by "normal" god mode?

One way is to change m_takedamage to DAMAGE_NO. The offset for m_takedamage can be obtained from the data description map.

Another way is to hook TraceAttack and supercede it if the player is in God mode.

What method are you currently using?
L. Duke is offline
Undisclosed
Junior Member
Join Date: Apr 2006
Old 01-03-2007 , 19:41   Re: special god mode (disable hitboxes)
Reply With Quote #3

i tried to disable hitboxes with "CCSPlayer.baseclass.baseclass.baseclass.base class.baseclass.m_nHitboxSet", but it crashes the server.
Undisclosed is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 01-04-2007 , 00:05   Re: special god mode (disable hitboxes)
Reply With Quote #4

In your first post: What did you mean by normal god mode? What's that?

In your second post: What's all that baseclass stuff?

Just intialize the offset to m_takedamage by searching the data desc map recursively and return the total offset. Then use that to change m_takedamage to DAMAGE_NO.

Code:
void UTIL_TakeDamage(CBaseEntity *pBase, bool takedamage)
{
    static int Offset = 0;

    if (Offset==0)
    {
        datamap_t *dmap = gVFuncs->CBE_GetDataDescMap(pBase);
        if (dmap)
        {
            Offset = FindOffsetDMap(dmap, "m_takedamage");
        }
    }

    if (Offset!=0)
    {
        char *m_takedamage = (char *)((char *)pBase + Offset );
        if (takedamage)
        {
            *m_takedamage = (char)DAMAGE_YES;
        }
        else
        {
            *m_takedamage = (char)DAMAGE_NO;
        }
    }
}

Last edited by L. Duke; 01-04-2007 at 00:07.
L. Duke is offline
Undisclosed
Junior Member
Join Date: Apr 2006
Old 01-04-2007 , 08:18   Re: special god mode (disable hitboxes)
Reply With Quote #5

normal godmode = when shot, no damage but u can still see blood and the player can still be slowed down by the bullet.

I have no idea what the baseless stuffs r, I searched for hitbox and thats the only thing i can find.
Undisclosed is offline
Keeper
Senior Member
Join Date: Nov 2006
Old 01-04-2007 , 08:24   Re: special god mode (disable hitboxes)
Reply With Quote #6

So you want the engine to ignore the "victim" all together when the attacker shoots his weapon (as in a ghost)?
Keeper is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 01-08-2007 , 08:42   Re: special god mode (disable hitboxes)
Reply With Quote #7

I told you how to do it, the thing is your using Event Shites so you can't hook.

LDuke: All that baseclass shite is how you access alot of the members using ES.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 01-08-2007 , 11:05   Re: special god mode (disable hitboxes)
Reply With Quote #8

Quote:
Originally Posted by Undisclosed View Post
normal godmode = when shot, no damage but u can still see blood and the player can still be slowed down by the bullet.
I understood the effect of what you were calling "normal" godmode. What I was trying to figure out was how you were creating a godmode that you called "normal" (i.e. hooking TraceAttack, adding health in player_hurt, changing m_takedamage to DAMAGE_NO, etc.).

With c0ldfyr3's explanation, the whole thing is a little more clear. We really can't help you with event scripts here. I would post on their forums if that's what you're using. All of our solutions are going to be for real plugins.
L. Duke is offline
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 01-11-2007 , 09:38   Re: special god mode (disable hitboxes)
Reply With Quote #9

I forgot to mention when I said "I told you how to do it" I meant on the ZombieMod forums about a month ago when he asked first. He didnt even reply after I answered.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
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 19:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode