Raised This Month: $ Target: $400
 0% 

hamdata.inc modifications


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 03-10-2009 , 11:38   hamdata.inc modifications
Reply With Quote #1

How can I currectly add more functions in this?
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-10-2009 , 16:13   Re: hamdata.inc modifications
Reply With Quote #2

Use your keyboard.
[ --<-@ ] Black Rose is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-10-2009 , 16:23   Re: hamdata.inc modifications
Reply With Quote #3

Not sure if it's possible directly and it would be weird that sawce has missed something ; but you have probably to find the virtual offset related to the function you want to add by decompiling.
Arkshine is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-10-2009 , 16:58   Re: hamdata.inc modifications
Reply With Quote #4

Or maby he is going to create stocks.
Notice it sais .inc and not module/.dll

As long as you don't intend to upload the new .inc file you can do whatever you want to it.
But it would be better if you would create your own .inc.

an .inc file is based on pawn and is read as this ( correct me if I'm wrong. ):

Quote:
Originally Posted by Plugin
// before including inc
#include <incfile>
// after including inc

public plugin_init() {
// ...
}


Quote:
Originally Posted by incfile.inc
// content of incfile
stock max(a, b) { return a > b ? a : b; }

Quote:
Originally Posted by Compiling the plugin
// before including inc
// content of incfile
stock max(a, b) { return a > b ? a : b; }
// after including inc

public plugin_init() {
// ...
}
I hope you understand.
[ --<-@ ] Black Rose is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-10-2009 , 17:03   Re: hamdata.inc modifications
Reply With Quote #5

It's a typo. MPNumB knows for sure how to create stocke lol.

He's talking about hamdata.ini file in configs/.
Arkshine is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 03-11-2009 , 07:21   Re: hamdata.inc modifications
Reply With Quote #6

I just want to hook when engine should scan some entity what movement scan I cannot/dunno how to hook (tryed every forward listed in ham_const and fakemeta_const, but had no success).

For example when weaponbox or func_door or func_train moves. Have tryed everything, but just cannot find a way how to hook pre-scan and post-scan.

Tryed Ham_Blocked with returning HAM_SUPERCEDE. But as I looked at hlsdk (and testings) understood that this is just a function what is called after scan is called, so it doesn't really help me much...

Also looking on hlsdk I think that LinearMove() and AngularMove() is what I need, but am not sure is it called only when objects are starting to move or when move every-frame-scan is going. Will be honest - I do not understand sdk as good as amxx codes.

Anyway, I'm searching for a function what is scaning entity position change every server frame and probably can be hooked by hamdata.ini modification (it's probably those two functions what I listed higher).

Help. =)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
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 08:54.


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