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

Module: Ham Sandwich


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Fredd
Veteran Member
Join Date: Jul 2007
Old 08-16-2007 , 07:10   Re: Module: Ham Sandwich
#81

Awesome Module Sawce ! sexcellent. ^^
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 08-16-2007 , 11:06   Re: Module: Ham Sandwich
#82

Oh right. Sven only has support for 2 functions (takedamage & use), since there is no linux binary getting the vtable offsets is very, very difficult.
__________________
fyren sucks
sawce is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-16-2007 , 22:22   Re: Module: Ham Sandwich
#83

sawce, here is some information that I gathered for the TFC functions:

Code:
    /**      * Description:  Called when an engineer uses his spanner on a structure (by the structure).      *          Used by building_dispenser, building_sentrygun_base, and building_teleporter.      * Forward params:  function(this, iduser)      * Return type:  Integer.      * Execute params:  ExecuteHam(Ham_TFC_EngineerUse, this, iduser)      */     Ham_TFC_EngineerUse,         /**      * Description:  Called when an engineer structure finishes building (by the structure).      *          Used by building_dispenser, building_sentrygun_base, and building_teleporter.      * Forward params:  function(this)      * Return type:  None.      * Execute params:  ExecuteHam(Ham_TFC_Finished, this);      */     Ham_TFC_Finished, // ...     /**      * Description:  Knocks a player back, based on his direction from concid and magnitude.      * Forward params:  function(this, concid, Float:magnitude)      * Return type:  None.      * Execute params:  ExecuteHam(Ham_TFC_TakeConcussionBlast, this, concid, Float:magnitude);      */     Ham_TFC_TakeConcussionBlast,         /**      * Description:  Gives a player the concussive screen shake. Called by TakeConcussionBlast.      * Forward params:  function(this, concid)      * Return type:  None.      * Execute params:  ExecuteHam(Ham_TFC_Concuss, this, concid);      */     Ham_TFC_Concuss,

"concid" is the entity index of the concussion grenade that the player is getting hit by, used to determine which direction to throw him. You can name the parameters whatever you want.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
ts2do
Senior Member
Join Date: Mar 2004
Old 08-24-2007 , 02:59   Re: Module: Ham Sandwich
#84

Can someone make a hamdata entry for svencoop? I need access to giveammo.
__________________
ts2do is offline
Send a message via AIM to ts2do
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 08-24-2007 , 10:24   Re: Module: Ham Sandwich
#85

It's too hard to make one because of the lack of Linux binaries. It took about an hour and a half to disassemble the two entries I have in there.
__________________
fyren sucks
sawce is offline
ts2do
Senior Member
Join Date: Mar 2004
Old 08-24-2007 , 13:30   Re: Module: Ham Sandwich
#86

What do you get those numbers from anyways? Could you contact a SC coder for it?
__________________
ts2do is offline
Send a message via AIM to ts2do
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-24-2007 , 14:53   Re: Module: Ham Sandwich
#87

Sniper is the only SC coder left as far as I know, and he's an angry little bugger.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 08-24-2007 , 22:19   Re: Module: Ham Sandwich
#88

Either disassemble them, or some of them could be found with guesstimations (someone with a little experience would need to do this - like xxavalancheisstupidxx) using relative offset numbers.

I have no plans to do any more for sven via disassembly.

Or if a mod developer were to offer it, using the header files that list all virtual functions would work too. I have no plans to ask for any of this, as I know how irritable developers get.
__________________
fyren sucks
sawce is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 08-24-2007 , 22:51   Re: Module: Ham Sandwich
#89

Rawr?
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 09-07-2007 , 22:20   Re: Module: Ham Sandwich
#90

Unstickied & closed since this is available in nightly builds. Need less clutter in the module stickies.

Also post issues about it in the amxmodx bug reports section.
__________________
fyren sucks
sawce is offline
Closed Thread



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 01:05.


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