Raised This Month: $32 Target: $400
 8% 

[EXTENSION] Dukehacks


Post New Thread Reply   
 
Thread Tools Display Modes
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 06-14-2009 , 17:13   Re: [EXTENSION] Dukehacks
Reply With Quote #211

Quote:
Originally Posted by Dragonshadow View Post
Where?
As Wazz said, look into dhnofalldmg.sp.

Line 27 and and 34.
__________________
SWAT_88 is offline
tommy76
Junior Member
Join Date: Jun 2009
Old 06-25-2009 , 17:48   Re: [EXTENSION] Dukehacks
Reply With Quote #212

Quote:
Originally Posted by Shake View Post
I'm using dukehacks on my l4d server.

but I could not find the signature of TakeDamage..

Thanks for this.

I was able to get rid of fall damage on l4d with:
sm_cvar fall_speed_fatal 5000 //def 720
tommy76 is offline
Choucas
Member
Join Date: May 2009
Old 06-25-2009 , 20:20   Re: [EXTENSION] Dukehacks
Reply With Quote #213

Hi,
If I use the original gamedata file from the first page, it crashes both Windows & Linux TF2 servers.

If I use the gamedata from Flyflo, the Windows server's working fine but it still crashes on the Linux server.

Am I doing something wrong or the gamedata file is outdated ?
Choucas is offline
Sexual Harassment Panda
Veteran Member
Join Date: Dec 2008
Location: San Diego, CA
Old 06-26-2009 , 05:04   Re: [EXTENSION] Dukehacks
Reply With Quote #214

when was this last updated? I used to use it for the dh pipe bomb model changer and for stickes as well, but it was borked after one of the recent updates
__________________
Sexual Harassment Panda is offline
Choucas
Member
Join Date: May 2009
Old 06-26-2009 , 07:06   Re: [EXTENSION] Dukehacks
Reply With Quote #215

The last update is from the 25th of may.
See there : https://forums.alliedmods.net/showpo...&postcount=195
Choucas is offline
Choucas
Member
Join Date: May 2009
Old 06-27-2009 , 11:38   Re: [EXTENSION] Dukehacks
Reply With Quote #216

Sorry, I found that I have made an error.
The good news is that the gamedata file from Flyo is working fine
Choucas is offline
I play naked
New Member
Join Date: Jul 2009
Old 07-20-2009 , 20:43   Re: [EXTENSION] Dukehacks
Reply With Quote #217

I cant thank you enough for your work on this extension. I had been struggling for hours to figure out how to get a player index from the CBasePlayer pointer returned from GetAttacker() in my OnTakeDamage pre-hook. I literally read every post on this forum on the topic. Thank god you posted your source code. I would have never thought of overriding GetAttacker and having it return the index for me.
"this->m_hAttacker.GetEntryIndex()"
excellent work
I play naked is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-29-2009 , 17:49   Re: [EXTENSION] Dukehacks
Reply With Quote #218

LDuke, any idea why this extension is clashing with DukeHacks?

http://forums.alliedmods.net/attachm...8&d=1248555538
__________________
Greyscale is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 07-31-2009 , 22:08   Re: [EXTENSION] Dukehacks
Reply With Quote #219

Quote:
Originally Posted by Greyscale View Post
LDuke, any idea why this extension is clashing with DukeHacks?

http://forums.alliedmods.net/attachm...8&d=1248555538
Not without looking closer. If it's just hooking stuff with SH then everything should work fine. Dukehacks uses a detour on TakeDamage, which could cause problems if zrtools is doing that also. They would both be trying to rewrite the same portion of the binary in memory.
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 07-31-2009 , 23:10   Re: [EXTENSION] Dukehacks
Reply With Quote #220

Not sure what you mean by "detour." I'm looking at your source and I see CDetour I assume thats what you were referring to but I do not use that in ZR Tools.

I just thought about this now, is it possible that my little SDK tweak is causing this? The only thing I could come up with (after hours of research and begging for help on IRC) was to change some variables that were private to the CTakeDamageInfo class to be public (private: to public and this allowed me to directly use m_hAttacker and m_hInflictor.

I tried using GetAttacker and GetInflictor but I could not for the life of me get it to compile. (link-time errors) Looking at your source I see:

PHP Code:
/** "hack" code **/

int CTakeDamageInfoHack::GetAttacker() const {
    return 
this->m_hAttacker.GetEntryIndex();
}

int CTakeDamageInfoHack::GetInflictor() const {
    return 
this->m_hInflictor.GetEntryIndex();

I am totally a noob when it comes to the source SDK (and I still have some ways to go to learn about c++)

Is this "hack code" the equivalent to my SDK tweak, but better? I have a feeling modifying the SDK for my extension was a bad idea, am I right on this? (Although I did learn this from the Hacks extension)
__________________
Greyscale is offline
Reply


Thread Tools
Display Modes

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 07:40.


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