Raised This Month: $51 Target: $400
 12% 

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 11-01-2010 , 12:11   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#941

Quote:
Originally Posted by Marcus101RR View Post
they even are planning to block sourcemod now.
citation needed
psychonic is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 11-01-2010 , 14:15   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#942

DJ Tsunami has done lots of great things, I wouldn't mind donating, but I haven't had my annoying TF2 questions answered it seems
Thraka is offline
HL-SDK
Member
Join Date: Jan 2009
Old 11-01-2010 , 21:25   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#943

Hi, I need (for secret reasons) to reverse engineer the physics calculations done on things like arrows and stunballs.

There is little info (that I have found) on source engine's physics system (or whatever I am looking for).

VPhysicsUpdate() seems like a likely candidate, but before I go further, I was hoping some people on these forums might know a bit more about it.

Basically I'd like to see the assembly that governs the huntsman's drop. I have functions that provide numbers for speed and gravity, but it is not immediately obvious what the gravity means. It is a value between 0.5 and 0.1
HL-SDK is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 11-02-2010 , 10:26   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#944

You may be interested on asherkin's VPhysics.

javalia's Build Mod and Gravity Gun are good places to see VPhysics in use, despite javalia's weird taste for naming
Seta00 is offline
HL-SDK
Member
Join Date: Jan 2009
Old 11-02-2010 , 14:42   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#945

I was thinking more along the lines where the game calculates the downward acceleration (and other physics) of certain projectiles in TF2.

They aren't props per se, they are CTFProjectileBase derived objects. Like I said, it wasn't immediately obvious which functions are used to calculate the next origin. Tracelines are used on the syringe and stunball but not things like the huntsman projectile.

Thx for your reply


---
EDIT

Might be PhysicsStep or physicschecksweep, oh my. I'd think pRed may have checked into some of these similar calculations during the development of sidewinder or other projectile steering systems.

Last edited by HL-SDK; 11-02-2010 at 14:46.
HL-SDK is offline
sof2er
Member
Join Date: Apr 2010
Old 11-03-2010 , 13:28   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#946

Here's the updated version for l4d1, I compiled it against sourcemod 1.4/metamod 1.9 so might not work on older versions.
Attached Files
File Type: zip sdkhooks.ext.zip (90.4 KB, 215 views)
sof2er is offline
matrixmark
Senior Member
Join Date: Jun 2010
Old 11-03-2010 , 17:32   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#947

Quote:
Originally Posted by sof2er View Post
Here's the updated version for l4d1, I compiled it against sourcemod 1.4/metamod 1.9 so might not work on older versions.
Dude thanks soooo much works great!!! no more errors !!!

woo
matrixmark is offline
comp_noob
Senior Member
Join Date: Nov 2010
Old 11-13-2010 , 10:01   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#948

hi, sorry for my noob question, but i would like to ask, how do you unhook a sdkhook on OnMapEnd()? i just want to make sure that every of the hook is correctly unhooked so that when i go to the next map, it doesn't hook the same event a second time... also, i do not want to unhook it twice, so can anyone gimme a tip on how to unhook the hooks correctly on OnMapEnd()? thanks in advance
comp_noob is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 11-13-2010 , 11:27   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#949

You don't need to do an unhook unless you're reloading the plugin (iirc), otherwise it does it for you.
__________________
thetwistedpanda is offline
psychonic

BAFFLED
Join Date: May 2008
Old 11-13-2010 , 11:29   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#950

Quote:
Originally Posted by thetwistedpanda View Post
You don't need to do an unhook unless you're reloading the plugin (iirc), otherwise it does it for you.
Reloading the plugin (which is just unload + load) will automatically remove the hooks on plugin unload.
psychonic 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 08:06.


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