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

trace hull is broken


  
 
 
Thread Tools Display Modes
Author Message
Charming
BANNED
Join Date: Nov 2005
Location: Canada
Old 01-14-2007 , 11:11   trace hull is broken
#1

trace hull is broken and i need it.
Charming is offline
Send a message via ICQ to Charming Send a message via AIM to Charming Send a message via MSN to Charming Send a message via Yahoo to Charming
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-14-2007 , 11:15   Re: trace hull is broken
#2

I've been experiencing this too. Here's the script I've been using:

Code:
public ForwardTraceHull(Float:Origin[3],Float:Target[3],NoMonsters,Hull,SkipEnt,Ptr) {     if(!is_user_alive(SkipEnt))         return FMRES_IGNORED         new Hit = get_tr2(Ptr,TR_pHit)     if(!Hit || !is_user_alive(Hit))         return FMRES_IGNORED         set_user_godmode(Hit)         return FMRES_IGNORED }

This crashes the server. I also tried using just get_tr and it does the same.

I tried hooking it post even though it's theoretically impossible that would do what I need, but it just had no response at all.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
VEN
Veteran Member
Join Date: Jan 2005
Old 01-14-2007 , 13:55   Re: trace hull is broken
#3

Last time i checked TraceHull engine/fakemeta natives/forwards there was no such issues. Can you provide your script?

Quote:
ForwardTraceHull
FM_TraceHull post hook work fine for me.
VEN is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-14-2007 , 13:57   Re: trace hull is broken
#4

Quote:
Originally Posted by VEN View Post
Last time i checked TraceHull engine/fakemeta natives/forwards there was no such issues. Can you provide your script?

FM_TraceHull post hook work fine for me.
Either way, I still need pre and to be able to relocate hits / stop them entirely.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
VEN
Veteran Member
Join Date: Jan 2005
Old 01-14-2007 , 14:05   Re: trace hull is broken
#5

You can't retrieve traceresult data in pre hook because trace isn't performed yet and data isn't stored to traceresult yet.

You have to "reexecute" TraceHull in pre hook, retrieve traceresult data and block the original trace.
VEN is offline
BAILOPAN
Join Date: Jan 2004
Old 01-14-2007 , 15:15   Re: trace hull is broken
#6

I think this is the third or fourth time we've had to clarify that issue by now ;\
__________________
egg
BAILOPAN is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-14-2007 , 17:00   Re: trace hull is broken
#7

Quote:
Originally Posted by VEN View Post
You can't retrieve traceresult data in pre hook because trace isn't performed yet and data isn't stored to traceresult yet.

You have to "reexecute" TraceHull in pre hook, retrieve traceresult data and block the original trace.
How would you do this? I'm guessing just blocking it would do bad stuff, so how do you return your own data instead?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 01-14-2007 , 17:05   Re: trace hull is broken
#8

They mean to force your own tracehull and supercede the original call.

Code:
public ForwardTraceHull(const Float:v1[3], const Float:v2[3], fNoMonsters, hullNumber, pentToSkip, Trace_Result) {     engfunc(EngFunc_TraceHull, v1, v2, fNoMonsters, hullNumber, pentToSkip, Trace_Result);         // more code ...         return FMRES_SUPERCEDE;    }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-14-2007 , 17:09   Re: trace hull is broken
#9

That crashes the server. I don't know if it would change anything, but I'm running TS.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-14-2007 , 17:59   Re: trace hull is broken
#10

http://forums.alliedmods.net/showpos...1&postcount=19
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
 



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 06:13.


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